Permalink
Browse files

Fixing ordering of commands in integration, thanks to Jiajia Zhou.

  • Loading branch information...
1 parent 8e05d75 commit 48fb34ce14ac2efbe1f80d396e081cc04724f80a @olenz olenz committed Oct 11, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/integrate.c
View
@@ -553,6 +553,10 @@ ghost_communicator(&cell_structure.collect_ghost_force_comm);
correct_vel_shake();
#endif
+#ifdef ROTATION
+ convert_torques_propagate_omega();
+#endif
+
//VIRTUAL_SITES update vel
#ifdef VIRTUAL_SITES
ghost_communicator(&cell_structure.update_ghost_pos_comm);
@@ -566,9 +570,6 @@ ghost_communicator(&cell_structure.collect_ghost_force_comm);
}
#endif
-#ifdef ROTATION
- convert_torques_propagate_omega();
-#endif
#ifdef NPT
if((this_node==0) && (integ_switch == INTEG_METHOD_NPT_ISO))
nptiso.p_inst_av += nptiso.p_inst;

0 comments on commit 48fb34c

Please sign in to comment.