fix bug when reporting fix wall energies
This commit is contained in:
@ -307,8 +307,10 @@ void FixWall::post_force(int vflag)
|
|||||||
|
|
||||||
v_init(vflag);
|
v_init(vflag);
|
||||||
|
|
||||||
// energy intialize
|
// energy intialize.
|
||||||
|
// eflag is used to track whether wall energies have been communitcated.
|
||||||
|
|
||||||
|
eflag = 0;
|
||||||
for (int m = 0; m <= nwall; m++) ewall[m] = 0.0;
|
for (int m = 0; m <= nwall; m++) ewall[m] = 0.0;
|
||||||
|
|
||||||
// coord = current position of wall
|
// coord = current position of wall
|
||||||
|
|||||||
Reference in New Issue
Block a user