Skip to content

Commit

Permalink
initialize *vel_old to zero to avoid math on unitialized data
Browse files Browse the repository at this point in the history
  • Loading branch information
hklion committed Sep 6, 2024
1 parent 54fef6d commit 3accc1c
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 3accc1c

Please sign in to comment.