Last version. All traces of wrong prob_vl are removed. This is the basic copy for following prepare_profiles_1D.cpp and prepare_profiles_2D.cpp