Skip to content

Commit

Permalink
Merge pull request #264 from hklion/init_old_vels
Browse files Browse the repository at this point in the history
initialize *vel_old to zero to avoid math on unitialized data
  • Loading branch information
hklion authored Sep 6, 2024
2 parents 54fef6d + 3accc1c commit e9aba33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/REMORA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,10 @@ REMORA::init_only (int lev, Real time)
yvel_new[lev]->setVal(0.0_rt);
zvel_new[lev]->setVal(0.0_rt);

xvel_old[lev]->setVal(0.0_rt);
yvel_old[lev]->setVal(0.0_rt);
zvel_old[lev]->setVal(0.0_rt);

vec_ru[lev]->setVal(0.0_rt);
vec_rv[lev]->setVal(0.0_rt);

Expand Down

0 comments on commit e9aba33

Please sign in to comment.