Fixed PN force adjustment before PN parameters set

This commit is contained in:
Yohai Meiron 2022-01-14 17:54:38 -05:00
parent 1fe119fdb2
commit fcdafd94a6

View file

@ -449,11 +449,11 @@ int main(int argc, char *argv[])
black_hole_physics.set_softening(eps, config.live_smbh_custom_eps);
black_hole_physics.adjust_softening(pot[0], pot[1], a[0], a[1], adot[0], adot[1]);
}
if (config.binary_smbh_pn) black_hole_physics.adjust_post_newtonian(dt_min, a[0], a[1], adot[0], adot[1]);
}
if (config.binary_smbh_pn) {
black_hole_physics.set_post_newtonian(config.pn_c, config.pn_usage.data());
if (config.pn_usage[6]) black_hole_physics.set_spins(config.smbh1_spin.data(), config.smbh2_spin.data());
black_hole_physics.adjust_post_newtonian(dt_min, a[0], a[1], adot[0], adot[1]);
}
std::vector<double> pot_ext(N, 0.);