void thermo_cool_down() { if(thermo_switch & THERMO_LANGEVIN) { langevin_pref2 = langevin_pref2_buffer; langevin_pref2_rotation = langevin_pref2_rotation_buffer; #ifdef MULTI_TIMESTEP langevin_pref2_small = langevin_pref2_small_buffer; #endif } #ifdef DPD else if (thermo_switch & THERMO_DPD){dpd_cool_down();} #endif #ifdef INTER_DPD else if (thermo_switch & THERMO_INTER_DPD) inter_dpd_cool_down(); #endif }
void thermo_cool_down() { int j; if(thermo_switch & THERMO_LANGEVIN) { langevin_pref2 = langevin_pref2_buffer; #ifndef ROTATIONAL_INERTIA langevin_pref2_rotation = langevin_pref2_rotation_buffer; #else for ( j = 0 ; j < 3 ; j++) { langevin_pref2_rotation[j] = langevin_pref2_rotation_buffer[j]; } #endif #ifdef MULTI_TIMESTEP langevin_pref2_small = langevin_pref2_small_buffer; #endif } #ifdef DPD else if (thermo_switch & THERMO_DPD){dpd_cool_down();} #endif #ifdef INTER_DPD else if (thermo_switch & THERMO_INTER_DPD) inter_dpd_cool_down(); #endif }