deleted printfs
[physik/posic.git] / mdrun.c
diff --git a/mdrun.c b/mdrun.c
index eff1ee5..e5feda3 100644 (file)
--- a/mdrun.c
+++ b/mdrun.c
@@ -332,7 +332,7 @@ int mdrun_parse_config(t_mdrun *mdrun) {
                                        csp.type|=CHSATTR_TCTRL;
                                }
                                if(!strncmp(word[i],"prelax",6)) {
-                                       csp.dp=atof(word[++i]);
+                                       csp.dp=atof(word[++i])*BAR;
                                        csp.type|=CHSATTR_PRELAX;
                                }
                                if(!strncmp(word[i],"trelax",6)) {
@@ -451,8 +451,9 @@ int check_pressure(t_moldyn *moldyn,t_mdrun *mdrun) {
 
        double delta;
 
-       if(!(mdrun->sattr&SATTR_PRELAX))
+       if(!(mdrun->sattr&SATTR_PRELAX)) {
                return TRUE;
+       }
 
        delta=moldyn->p_avg-moldyn->p_ref;
 
@@ -682,8 +683,8 @@ int mdrun_hook(void *ptr1,void *ptr2) {
        tau=mdrun->timestep;
 
        /* check whether relaxation steps are necessary */
-       if(!((check_pressure(moldyn,mdrun)==FALSE)|\
-            (check_temperature(moldyn,mdrun)==FALSE))) {
+       if((check_pressure(moldyn,mdrun)==TRUE)&\
+          (check_temperature(moldyn,mdrun)==TRUE)) {
        
                /* be verbose */
                stage_print("\n###########################\n");