s=moldyn->swrite;
v=moldyn->vwrite;
- if(!(moldyn->lvstat&MOLDYN_LVSTAT_INITIALIZED)) {
- printf("[moldyn] warning, lv system not initialized\n");
- return -1;
- }
-
/* sqaure of some variables */
moldyn->tau_square=moldyn->tau*moldyn->tau;
moldyn->cutoff_square=moldyn->cutoff*moldyn->cutoff;
if(schedule->hook)
schedule->hook(moldyn,schedule->hook_params);
+ }
+
return 0;
}