more code formatting consistency changes for loops and conditionals
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user