| 66 |
|
#define G_MIN_LSMAXITER 45 |
| 67 |
|
#define G_ZCONSGAP 46 |
| 68 |
|
#define G_ZCONSFIXTIME 47 |
| 69 |
+ |
#define G_ZCONSUSINGSMD 48 |
| 70 |
+ |
#define G_USEMOLECULARCUTOFFS 49 |
| 71 |
|
|
| 72 |
|
Globals::Globals(){ |
| 73 |
|
|
| 130 |
|
addHash( "minLSMaxIter", G_MIN_LSMAXITER); |
| 131 |
|
addHash( "zconsGap", G_ZCONSGAP); |
| 132 |
|
addHash( "zconsFixtime", G_ZCONSFIXTIME); |
| 133 |
+ |
addHash( "zconsUsingSMD", G_ZCONSUSINGSMD); |
| 134 |
+ |
addHash( "useMolecularCutoffs", G_USEMOLECULARCUTOFFS); |
| 135 |
|
|
| 136 |
|
strcpy( mixingRule,"standard"); //default mixing rules to standard. |
| 137 |
|
usePBC = 1; //default periodic boundry conditions to on |
| 138 |
|
useRF = 0; |
| 139 |
< |
useInitTime = 1; // default to pull init time from the init file |
| 140 |
< |
useInitXSstate = 1; // default to pull the extended state from the init file |
| 139 |
> |
useMolecularCutoffs = 0; |
| 140 |
> |
useInitTime = 0; // default to pull init time from the init file |
| 141 |
> |
useInitXSstate = 0; // default to pull the extended state from the init file |
| 142 |
|
orthoBoxTolerance = 1E-6; |
| 143 |
|
|
| 144 |
|
have_force_field = 0; |
| 173 |
|
have_n_zConstraints = 0; |
| 174 |
|
have_zConstraints = 0; |
| 175 |
|
have_zcons_tol = 0; |
| 176 |
+ |
have_zcons_gap = 0; |
| 177 |
+ |
have_zcons_fixtime = 0; |
| 178 |
+ |
have_zcons_using_smd = 0; |
| 179 |
|
have_seed = 0; |
| 180 |
|
have_ljrcut = 0; |
| 181 |
+ |
have_minimizer = 0; |
| 182 |
+ |
have_minimizer_maxiteration = 0; |
| 183 |
+ |
have_minimizer_writefrq = 0; |
| 184 |
+ |
have_minimizer_stepsize = 0; |
| 185 |
+ |
have_minimizer_ftol = 0; |
| 186 |
+ |
have_minimizer_gtol = 0; |
| 187 |
+ |
have_minimizer_ls_tol = 0; |
| 188 |
+ |
have_minimizer_ls_maxiteration = 0; |
| 189 |
+ |
have_use_molecular_cutoffs = 0; |
| 190 |
|
|
| 191 |
|
} |
| 192 |
|
|
| 1074 |
|
return 0; |
| 1075 |
|
break; |
| 1076 |
|
|
| 1077 |
+ |
case G_USEMOLECULARCUTOFFS: |
| 1078 |
+ |
if( the_type == STRING ){ |
| 1079 |
+ |
|
| 1080 |
+ |
if( !strcasecmp( "true", the_event->evt.asmt.rhs.sval )) useMolecularCutoffs = 1; |
| 1081 |
+ |
else if( !strcasecmp( "false", the_event->evt.asmt.rhs.sval )) useMolecularCutoffs = 0; |
| 1082 |
+ |
else{ |
| 1083 |
+ |
the_event->err_msg = |
| 1084 |
+ |
strdup( "Global error. useMolecularCutoffs was not \"true\" or \"false\".\n" ); |
| 1085 |
+ |
return 0; |
| 1086 |
+ |
} |
| 1087 |
+ |
return 1; |
| 1088 |
+ |
} |
| 1089 |
+ |
|
| 1090 |
+ |
the_event->err_msg = |
| 1091 |
+ |
strdup( "Global error. useMolecularCutoffs was not \"true\" or \"false\".\n" ); |
| 1092 |
+ |
return 0; |
| 1093 |
+ |
break; |
| 1094 |
+ |
|
| 1095 |
|
case G_TARGETPRESSURE: |
| 1096 |
|
switch( the_type ){ |
| 1097 |
|
|
| 1324 |
|
default: |
| 1325 |
|
the_event->err_msg = |
| 1326 |
|
strdup( "Global error. zcons_fixtime unrecognized.\n" ); |
| 1327 |
+ |
return 0; |
| 1328 |
+ |
break; |
| 1329 |
+ |
} |
| 1330 |
+ |
break; |
| 1331 |
+ |
|
| 1332 |
+ |
case G_ZCONSUSINGSMD: |
| 1333 |
+ |
switch( the_type ){ |
| 1334 |
+ |
|
| 1335 |
+ |
case STRING: |
| 1336 |
+ |
the_event->err_msg = |
| 1337 |
+ |
strdup( "Global error. zcons_fixtime is not an int.\n" ); |
| 1338 |
+ |
return 0; |
| 1339 |
+ |
break; |
| 1340 |
+ |
|
| 1341 |
+ |
case DOUBLE: |
| 1342 |
+ |
the_event->err_msg = |
| 1343 |
+ |
strdup( "Global error. zcons_fixtime is not an int.\n" ); |
| 1344 |
+ |
return 0; |
| 1345 |
+ |
break; |
| 1346 |
+ |
|
| 1347 |
+ |
case INT: |
| 1348 |
+ |
zcons_using_smd= the_event->evt.asmt.rhs.ival; |
| 1349 |
+ |
have_zcons_using_smd= 1; |
| 1350 |
+ |
return 1; |
| 1351 |
+ |
break; |
| 1352 |
+ |
|
| 1353 |
+ |
default: |
| 1354 |
+ |
the_event->err_msg = |
| 1355 |
+ |
strdup( "Global error. zcons_usingsmd unrecognized.\n" ); |
| 1356 |
|
return 0; |
| 1357 |
|
break; |
| 1358 |
|
} |
| 1685 |
|
strcat( err, "\t->targetTemp\n" ); |
| 1686 |
|
have_err= 1; |
| 1687 |
|
} |
| 1624 |
– |
|
| 1688 |
|
|
| 1689 |
|
if(!have_minimizer) |
| 1690 |
|
if( !have_ensemble ){ |