more code formatting consistency changes for loops and conditionals

This commit is contained in:
Axel Kohlmeyer
2020-12-30 09:27:47 -05:00
parent 28de7e351a
commit 51a20175c9
171 changed files with 744 additions and 747 deletions

View File

@ -222,12 +222,12 @@ void FixTISpring::initial_integrate(int /*vflag*/)
const bigint t = update->ntimestep - (t0+t_equil);
const double r_switch = 1.0/t_switch;
if ( (t >= 0) && (t <= t_switch) ) {
if ((t >= 0) && (t <= t_switch)) {
lambda = switch_func(t*r_switch);
dlambda = dswitch_func(t*r_switch);
}
if ( (t >= t_equil+t_switch) && (t <= (t_equil+2*t_switch)) ) {
if ((t >= t_equil+t_switch) && (t <= (t_equil+2*t_switch))) {
lambda = switch_func(1.0 - (t - t_switch - t_equil)*r_switch);
dlambda = - dswitch_func(1.0 - (t - t_switch - t_equil)*r_switch);
}