Merge pull request #3953 from jibril-b-coulibaly/fix_wall_region_eflag
Fix wall region eflag
This commit is contained in:
@ -541,10 +541,10 @@ Restrictions
|
||||
Related commands
|
||||
""""""""""""""""
|
||||
|
||||
:doc:`compute <compute>`, :doc:`fix ave/atom <fix_ave_atom>`, `fix
|
||||
:doc:ave/histo <fix_ave_histo>`, :doc:`fix ave/time <fix_ave_time>`,
|
||||
:doc:`variable <variable>`, :doc:`fix ave/correlate
|
||||
:doc:<fix_ave_correlate>`, `fix ave/atogrid <fix_ave_grid>`
|
||||
:doc:`compute <compute>`, :doc:`fix ave/atom <fix_ave_atom>`,
|
||||
:doc:`fix ave/histo <fix_ave_histo>`, :doc:`fix ave/time <fix_ave_time>`,
|
||||
:doc:`variable <variable>`, :doc:`fix ave/correlate <fix_ave_correlate>`,
|
||||
:doc:`fix ave/grid <fix_ave_grid>`
|
||||
|
||||
|
||||
Default
|
||||
|
||||
@ -344,7 +344,7 @@ void FixWall::post_force(int vflag)
|
||||
v_init(vflag);
|
||||
|
||||
// energy intialize.
|
||||
// eflag is used to track whether wall energies have been communitcated.
|
||||
// eflag is used to track whether wall energies have been communicated.
|
||||
|
||||
eflag = 0;
|
||||
for (int m = 0; m <= nwall; m++) ewall[m] = 0.0;
|
||||
|
||||
@ -244,6 +244,7 @@ void FixWallRegion::post_force(int vflag)
|
||||
// initilize ewall after region->prematch(),
|
||||
// so a dynamic region can access last timestep values
|
||||
|
||||
eflag = 0;
|
||||
ewall[0] = ewall[1] = ewall[2] = ewall[3] = 0.0;
|
||||
|
||||
for (i = 0; i < nlocal; i++)
|
||||
|
||||
Reference in New Issue
Block a user