Skip to content

Commit

Permalink
Fix mesh mover rotate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Azrael3000 committed Jan 8, 2020
1 parent 8151093 commit 230fbcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mesh_mover_rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ MeshMoverRotateVariable::MeshMoverRotateVariable(LAMMPS *lmp,AbstractMesh *_mesh
myvar1_ = input->variable->find(var1str_);
if (myvar1_ < 0)
error->all(FLERR,"Variable name 1 for fix move/mesh rotate/variable does not exist");

omega_ = input->variable->compute_equal(myvar1_);
omega_ = 0.;
totalPhi_ = 0.;

add_reference_point(point_);
Expand Down Expand Up @@ -202,6 +201,7 @@ void MeshMoverRotateVariable::setup()
myvar1_ = input->variable->find(var1str_);
if (myvar1_ < 0)
error->all(FLERR,"Variable name 1 for fix move/mesh rotate dynamic does not exist");
omega_ = input->variable->compute_equal(myvar1_);
}

/* ---------------------------------------------------------------------- */
Expand Down

0 comments on commit 230fbcb

Please sign in to comment.