NAMD
SimParameters.h
Go to the documentation of this file.
1 
7 /*****************************************************************************
8  * $Source: /home/cvs/namd/cvsroot/namd2/src/SimParameters.h,v $
9  * $Author: jim $
10  * $Date: 2017/03/30 20:06:17 $
11  * $Revision: 1.1248 $
12  *****************************************************************************/
13 
14 #ifndef SIMPARAMETERS_H
15 #define SIMPARAMETERS_H
16 
17 #include "common.h"
18 #include "Vector.h"
19 #include "Lattice.h"
20 #include "imd.h"
21 
22 #include "MGridforceParams.h"
23 #include "GroupRestraintsParam.h"
24 
25 class ParseOptions;
26 class Communicate;
27 class ConfigList;
28 class MIStream;
29 class MOStream;
30 
31 // The class SimParameters is really just a glorified structure used to
32 // maintain the global simulation parameters. The only functions
33 // associated with the class are used to get the parameters from the
34 // ConfigList object, to send that Parameters from the master node
35 // to the other nodes, and to receive the Parameters on the other nodes.
36 
37 
38 // The following definitions are used to distinguish between possible
39 // bonded exclusion settings
40 typedef int ExclusionSettings;
41 
42 #define NONE 0
43 #define ONETWO 1
44 #define ONETHREE 2
45 #define ONEFOUR 3
46 #define SCALED14 4
47 
48 // The following definitions are used to distinguish between multiple
49 // timestep integration schemes
50 typedef int MTSChoices;
51 
52 #define NAIVE 0
53 #define VERLETI 1
54 
55 // The following definitions are used to distinuish between multiple
56 // long-short range force splittings
57 #define SHARP 0
58 #define XPLOR 1
59 #define C1 2
60 #define C2 3
61 
62 // The following definitions are used to distinguish among load
63 // balancers and their strategies
64 #define LDBAL_NONE 0
65 #define LDBAL_CENTRALIZED 1 // default
66 #define LDBAL_HYBRID 2
67 
68 #define LDBSTRAT_DEFAULT 10 // default
69 #define LDBSTRAT_COMPREHENSIVE 11
70 #define LDBSTRAT_REFINEONLY 12
71 #define LDBSTRAT_OLD 13
72 
73 // The following definitions are used to distinguish between patch-splitting
74 // strategies
75 #define SPLIT_PATCH_POSITION 0 // atom position determines patch
76 #define SPLIT_PATCH_HYDROGEN 1 // hydrogen groups are not broken up
77 
78 // The following definitions are used to distinguish the range of rigid
79 // bond calculations: none, all bonds to hydrogen, or only water
80 #define RIGID_NONE 0
81 #define RIGID_ALL 1
82 #define RIGID_WATER 2
83 
84 // Added by JLai -- The following definitions are used to distinguish
85 // the different GoMethodologies available to the Go program
86 // -- 6.3.11
87 typedef int GoChoices;
88 #define GO_MATRIX 1
89 #define GO_SPARSE 2
90 #define GO_LOWMEM 3
91 
92 // Used for controlling PME parallelization with ckloop
93 // The higher level will include all parallelization for lower ones
94 // E.g. If setting useCkLoop to 3, then xpencil's kspace, all
95 // backward ffts and send_untrans/ungrid routines will be parallelized
96 #define CKLOOP_CTRL_PME_UNGRIDCALC 6
97 #define CKLOOP_CTRL_PME_FORWARDFFT 5
98 #define CKLOOP_CTRL_PME_SENDTRANS 4
99 #define CKLOOP_CTRL_PME_KSPACE 3
100 #define CKLOOP_CTRL_PME_BACKWARDFFT 2
101 #define CKLOOP_CTRL_PME_SENDUNTRANS 1
102 
103 // These macros are used for routines of writing atom positions and velocities
104 // when NAMD crashes. To determine if we need to write the atoms to files, we
105 // can use code like the following example:
106 // if (simParams->crashOutputFlag & NAMD_CRASH_ATOM_TOO_FAST) {
107 // write_atoms_to_file();
108 // }
109 // Currently only the routine for errors like "atoms are moving too fast" is
110 // implemented, so there is only one macro. We may add more macros in the future
111 // to handle different type of errors.
112 #define NAMD_CRASH_ATOM_TOO_FAST 0x1
113 // In the future if more macros like NAMD_CRASH_XXX are added, then
114 // the follwing line should be changed to
115 // #define NAMD_CRASH_ALL (NAMD_CRASH_ATOM_TOO_FAST + NAMD_CRASH_XXX)
116 #define NAMD_CRASH_ALL NAMD_CRASH_ATOM_TOO_FAST
117 
118 // Bitmask for calculating bonded interactions on GPU.
119 #define NAMD_BONDEDGPU_BONDS (1 << 0)
120 #define NAMD_BONDEDGPU_ANGLES (1 << 1)
121 #define NAMD_BONDEDGPU_DIHEDRALS (1 << 2)
122 #define NAMD_BONDEDGPU_IMPROPERS (1 << 3)
123 #define NAMD_BONDEDGPU_EXCLS (1 << 4)
124 #define NAMD_BONDEDGPU_CROSSTERMS (1 << 5)
125 #define NAMD_BONDEDGPU_THOLES (1 << 6)
126 #define NAMD_BONDEDGPU_ANISOS (1 << 7)
127 #define NAMD_BONDEDGPU_ONEFOURENBTHOLES (1 << 8)
128 #define NAMD_BONDEDGPU_ALL ( \
129  NAMD_BONDEDGPU_BONDS +\
130  NAMD_BONDEDGPU_ANGLES +\
131  NAMD_BONDEDGPU_DIHEDRALS +\
132  NAMD_BONDEDGPU_IMPROPERS +\
133  NAMD_BONDEDGPU_EXCLS +\
134  NAMD_BONDEDGPU_CROSSTERMS +\
135  NAMD_BONDEDGPU_THOLES +\
136  NAMD_BONDEDGPU_ANISOS +\
137  NAMD_BONDEDGPU_ONEFOURENBTHOLES)
138 
140 {
141 private:
142 public:
143 
144 // MAKE SURE THAT THIS CLASS CAN BE BIT COPIED OR YOU WILL HAVE TO
145 // ADD SPECIAL CODE TO send_SimParameters() and receive_SimParameters()
146 
147  int mshakeOn;
148  int lincsOn;
149 
150 #if defined(NAMD_NVTX_ENABLED) || defined(NAMD_CMK_TRACE_ENABLED) || defined(NAMD_ROCTX_ENABLED)
151  int beginEventPatchID;
152  int endEventPatchID;
153  int beginEventStep;
154  int endEventStep;
155 #endif
156 
157 #ifdef TIMER_COLLECTION
158  double timerBinWidth; // default 1
159 #endif
160 
161  Bool SOAintegrateOn; // use SOA integration routine for higher performance
162 
174  // this is set true to indicate dynamics is being performed
175 
177  // window size for moving averages of reductions for GPU-resident mode
178 
179  Bool nsPerDayOn; // prints ns/day instead of days/ns
180 
181 
182  Bool lonepairs; // enable lone pairs
183  WaterModel watmodel; // integer code for the water model in use
184  // choices are defined in common.h
185  Bool LJcorrection; // flag for whether water tail corrections should be used
186  Bool LJcorrectionAlt; // flag for whether alternative tail corrections should be used
187  BigReal dt; // Timestep size
188  int N; // Number of steps to be performed
189  int stepsPerCycle; // Number of timesteps per cycle
190 
191  zVector cellBasisVector1; // Basis vector for periodic cell
192  zVector cellBasisVector2; // Basis vector for periodic cell
193  zVector cellBasisVector3; // Basis vector for periodic cell
194  zVector cellOrigin; // Fixed center of periodic cell
195  Lattice lattice; // All data for periodic cell
196 
197  int nonbondedFrequency; // Number of timesteps between
198  // nonbonded evaluation
199  int fullElectFrequency; // Number of timesteps between
200  // full electrostatic evaluation
201  int fullDispersionFrequency; // Number of timesteps between
202  // full LJ dispersion evaluation
203  BigReal fmaTheta; // DPMTA theta value
204  int ldBalancer; // None, Centralized or Hybrid
205  int ldbStrategy; // What load balancing strategy to use
206  int ldbPeriod; // How often to do load balancing
207  int firstLdbStep; // What step to do the first
208  // load-balance on.
209  int lastLdbStep; // What step to do the last
210  // load-balance on.
211  int hybridGroupSize; // hybrid group size
212  BigReal ldbBackgroundScaling; // scaling factor for background load
213  BigReal ldbPMEBackgroundScaling;// scaling factor for PME background
214  BigReal ldbHomeBackgroundScaling;// scaling factor for home background
215  BigReal ldbRelativeGrainsize; // fraction of average load per compute
216 
217  int traceStartStep; //the timestep when trace is turned on, default to 3*firstLdbStep;
218  int numTraceSteps; //the number of timesteps that are traced, default to 2*ldbPeriod;
219 
220 #ifdef MEASURE_NAMD_WITH_PAPI
221  Bool papiMeasure; //default to false
222  int papiMeasureStartStep; //the timestep when to measure using PAPI, default to 3*firstLdbStep;
223  int numPapiMeasureSteps; //the number of timesteps when performance are measured with PAPI, default to 40;
224 #endif
225 
226  Bool outputMaps; //control whether to dump compute/patch map before load balancing
227  Bool simulateInitialMapping; //if true, the initial mapping during startup is dumped and exit
230  Bool disableTopology; // ignore torus information during patch placement
231  Bool verboseTopology; // print torus information during patch placement
232 
233  Bool benchTimestep; //only cares about benchmarking the timestep, so no file output to save SUs for large-scale benchmarking
234 
235  //whether to use CkLoop library to parallelize a loop in a function like OpenMP.
236  //It has multiple control levels. The higher the value is (must be positive), the more parallelization will be performed
237  //Currently, it is mainly used for PME computation. The default value is 0, meaning it is disabled
238  //Refer to macros CKLOOP_CTRL_* in this file for the ordering of different levels
239  int useCkLoop;
240 
241  int twoAwayX; // half-size patches in X dimension
242  int twoAwayY; // half-size patches in Y dimension
243  int twoAwayZ; // half-size patches in Z dimension
244  int maxPatches; // maximum patch count
245  Bool ldbUnloadPME; // unload processors doing PME
246  Bool ldbUnloadZero; // unload processor 0
247  Bool ldbUnloadOne; // unload processor 1
248  Bool ldbUnloadOutputPEs; // unload output processors
249  Bool noPatchesOnZero; // no patches on processor 0
250  Bool noPatchesOnOutputPEs; // no patches on output PEs
251  Bool noPatchesOnOne; // no patches on processor 1
252 
253  BigReal initialTemp; // Initial temperature for the
254  // simulation
255  Bool comMove; // Should the center of mass be
256  // able to move
257  Bool zeroMomentum; // remove momentum drift from PME
258  Bool zeroMomentumAlt; // alternate method for testing
259  Bool wrapWater; // Wrap water around on output
260  Bool wrapAll; // Wrap clusters around on output
261  Bool wrapNearest; // Wrap to closest image to origin
262  BigReal dielectric; // Dielectric constant
263  ExclusionSettings exclude; // What electrostatic exclusions should
264  // be made
265 
266  // scale14alt will override if scale14 is not set
267  BigReal scale14; // Scaling factor "1-4scaling"
268  // for 1-4 electrostatics
269  BigReal scale14alt; // Alternatively named sim parameter
270  // "oneFourScaling" so that this can
271  // be set using scripting language
272 
273  BigReal nonbondedScaling; // Scaling factor for nonbonded forces
274  int dcdFrequency; // How often (in timesteps) should
275  // a DCD trajectory file be updated
276  int dcdUnitCell; // Whether to write unit cell information in the DCD
277  int velDcdFrequency; // How often (in timesteps) should
278  // a velocity DCD file be updated
279  int forceDcdFrequency; // How often (in timesteps) should
280  // a force DCD file be updated
281  int xstFrequency; // How often (in timesteps) should
282  // a XST trajectory file be updated
283  int dcdSelectionOn; // enable dcd selection options
284  char auxFilename[NAMD_FILENAME_BUFFER_SIZE]; // auxilary output filename
285  char dcdFilename[NAMD_FILENAME_BUFFER_SIZE]; // DCD filename
286  char velDcdFilename[NAMD_FILENAME_BUFFER_SIZE]; // Velocity DCD filename
287  char forceDcdFilename[NAMD_FILENAME_BUFFER_SIZE]; // Force DCD filename
288  char xstFilename[NAMD_FILENAME_BUFFER_SIZE]; // Extended system trajectory filename
289  char outputFilename[NAMD_FILENAME_BUFFER_SIZE]; // Output file name. This name will
290  // have .coor appended to it
291  // for the coordinates and
292  // .vel appended to
293  // it for the velocities
294  char restartFilename[NAMD_FILENAME_BUFFER_SIZE]; // Base name of the restart file
295  char crashFilename[NAMD_FILENAME_BUFFER_SIZE]; // Base name of the crash CSV file containing atom positions and velocities
296  int crashOutputFlag; // Bitfield to control the crash output
297  // std::vector <DCDParams> dcdUserDefined; //parameters for user defined DCD lists
298  int restartFrequency; // How often (in timesteps) shoud the
299  // restart files be updated
300  Bool restartSave; // unique filenames for restart files
301  Bool restartSaveDcd; // unique filenames for DCD files
302  Bool binaryRestart; // should restart files be
303  // binary format rather than PDB
304  Bool binaryOutput; // should output files be
305  // binary format rather than PDB
306  BigReal cutoff; // Cutoff distance
307  BigReal margin; // Fudge factor on patch size
308  BigReal patchDimension; // Dimension of each side of a patch
309  // This is either cutoff+margin or
310  // pairlistDist+margin depending on
311  // whether or not switching is on
312  // or not
313  BigReal limitDist; // Distance below which nonbonded
314  // forces between atoms are limited
315  Bool switchingActive; // Flag TRUE->using switching function
316  // for electrostatics and vdw
317  Bool vdwForceSwitching; // Flag TRUE->using force switching
318  // function for vdw
319  BigReal switchingDist; // Distance at which switching
320  // becomes active
321  Bool martiniSwitching; // Flag TRUE->use Martini residue-based
322  // coarse-grain switching function
323  Bool martiniDielAllow; // Allow non-standard dielectric constant
324  // for use with Martini when dielectric != 15.0
325  BigReal pairlistDist; // Distance within which atom pairs
326  // should be added to pairlist
327  int pairlistMinProcs; // Minimum number of processors
328  // to enable pairlists
329  int usePairlists; // Derived from pairlistMinProcs
330 
331  int pairlistsPerCycle; // regenerate x times per cycle
332  BigReal pairlistShrink; // tol *= (1 - x) on regeneration
333  BigReal pairlistGrow; // tol *= (1 + x) on trigger
334  BigReal pairlistTrigger; // trigger is atom > (1 - x) * tol
335  int outputPairlists; // print pairlist warnings this often
336 
337  Bool constraintsOn; // Flag TRUE-> harmonic constraints
338  // active
339  int constraintExp; // Exponent for harmonic constraints
340 
341  /* BEGIN gf */
342  Bool gridforceOn; // Flag TRUE -> gridforce active
343  Bool gridforceVolts; // Flag TRUE -> gridforce using volts as units
344  zVector gridforceScale; // Gridforce scale factor
345  Bool gridforceContA1; // Flag TRUE -> grid continuous in A1 direction
346  Bool gridforceContA2; // Flag TRUE -> grid continuous in A2 direction
347  Bool gridforceContA3; // Flag TRUE -> grid continuous in A3 direction
348  zVector gridforceVOffset; // Gridforce potential offsets
349  Bool gridforceLite; // Flag TRUE -> use lightweight, fast, feature-poor gridforce
350  Bool gridforcechecksize; //Flag TRUE -> check if grid is larger than PBC cell dimensions
351  /* END gf */
354 
355  /* Begin Group restraints */
356  Bool groupRestraintsOn; // Turn on the group restraints
357  GroupRestraintList groupRestraints; // To store restraints parameters for each group
358  int groupRestraintsCount; // count of how many groups
359  /* End Group restraints */
360 
361  //****** BEGIN selective restraints (X,Y,Z) changes
362  Bool selectConstraintsOn; // Flag TRUE-> selective restraints
363  // active
365  constrZOn; // Flag TRUE-> select which Cartesian
366  // component to restrain
367  //****** END selective restraints (X,Y,Z) changes
368 
369  // spherical constraints
372 
373  BigReal constraintScaling; // Scaling factor for constraint forces
374 
375  //****** BEGIN CHARMM/XPLOR type changes
376  Bool paraTypeXplorOn; // FLAG TRUE-> parametrs are XPLOR format (default)
377  Bool paraTypeCharmmOn; // FLAG TRUE-> parametrs are CHARMM format
378  //****** END CHARMM/XPLOR type changes
379 
380  // Ported by JLai -- JE - Go
381  Bool goGroPair; // FLAG FALSE->Explicit Gromacs pairs will be calculated
382  Bool goForcesOn; // FLAG TRUE-> Go forces will be calculated
383  char goParameters[NAMD_FILENAME_BUFFER_SIZE]; // File for Go parameters
384  char goCoordinates[NAMD_FILENAME_BUFFER_SIZE]; // File for Go structure and atom chain types
385  //JLai 6.3.11
386  GoChoices goMethod; // Integer for Go method -- 1) Matrix-Go, 3) Low-mem-Go
387  // End of port -- JL
388 
389  //****** BEGIN moving constraints changes
390  Bool movingConstraintsOn; // Flag TRUE-> moving constraints
391  // active
392  zVector movingConsVel; // Velocity of the movement, A/timestep
393  //****** END moving constraints changes
394  //****** BEGIN rotating constraints changes
395  Bool rotConstraintsOn; // Flag TRUE-> rotating constraints
396  // active
397  zVector rotConsAxis; // Axis of rotation
398  zVector rotConsPivot; // Pivot point of rotation
399  BigReal rotConsVel; // Velocity of rotation, Deg/timestep
400  //****** END rotating constraints changes
401 
402  //****** BEGIN moving drag changes
403  Bool movDragOn; // Flag TRUE-> moving drag active
404  char movDragFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file defining dragged atoms
405  // by non-zero value in the column
406  BigReal movDragGlobVel; // global drag velocity (A/step)
407  char movDragVelFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; XYZ scale moving drag
408  // velocity for each atom
409  //****** END moving drag changes
410  //****** BEGIN rotating drag changes
411  Bool rotDragOn; // Flag TRUE-> rotating drag active
412  char rotDragFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file defining dragged atoms
413  // by non-zero value in the column
414  char rotDragAxisFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; XYZ define axes for atoms;
415  char rotDragPivotFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; XYZ define pivots for atoms
416  BigReal rotDragGlobVel; // global drag velocity (deg/step)
417  char rotDragVelFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; B or O scales angular
418  // velocity for each atom
419  //****** END rotating drag changes
420  //****** BEGIN "constant" torque changes
421  Bool consTorqueOn; // Flag TRUE-> "constant" torque active
422  char consTorqueFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file defining torqued atoms
423  // by non-zero value in the column
424  char consTorqueAxisFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; XYZ define axes for atoms;
425  char consTorquePivotFile[NAMD_FILENAME_BUFFER_SIZE];// PDB file; XYZ define pivots for atoms
426  BigReal consTorqueGlobVal; // global "torque" (Kcal/(mol*A^2))
427  char consTorqueValFile[NAMD_FILENAME_BUFFER_SIZE]; // PDB file; B or O scales "torque"
428  // for each atom
429  //****** END "constant" torque changes
430 
431  //****** BEGIN SMD constraints changes
432  Bool SMDOn; // Flag TRUE-> SMD constraints active
433  BigReal SMDVel; // Velocity of the movement, A/timestep
434  zVector SMDDir; // Direction of the movement
435  BigReal SMDk; // Elastic constant for SMD
436  BigReal SMDk2; // Transverse elastic constant for SMD
437  char SMDFile[NAMD_FILENAME_BUFFER_SIZE]; // File for SMD information
438  int SMDOutputFreq; // Output frequency for SMD constr.
439  //****** END SMD constraints changes
440 
441  //****** BEGIN tabulated energy section
445  char tableInterpType[128];
448  //****** END tabulated energy section
449 
450  // TMD
457 
458  //Symmetry restraints
465 
466 
467 //fepb
468  Bool alchOnAtStartup; // Ensure that alchemy is set up properly
471  Bool alchOn; // Doing alchemical simulation?
472  Bool alchFepOn; // Doing alchemical simulation?
473  Bool singleTopology; // Using single topology setup?
474  Bool sdScaling; // Scaling S-D bond terms in single topology?
475  Bool alchThermIntOn; // Doing thermodynamic integration?
476  Bool alchWCAOn; // Using WCA decomposition for vdWs?
477  int alchMethod; // Which alchemical method to use? fep or ti
478  BigReal alchLambda; // lambda for dynamics
479  BigReal alchLambda2; // lambda for comparison
480  BigReal alchLambdaIDWS; // alternate lambda for interleaved double-wide sampling
481  int alchIDWSFreq; // freq with which lambda2 changes to lambdaIDWS
482  int alchLambdaFreq; // freq. (in steps) with which lambda changes
483  // from alchLambda to alchLambda2
484  BigReal getCurrentLambda(const int) const; // getter for changing lambda
485  BigReal getCurrentLambda2(const int) const; // getter for alternating lambda2 in IDWS
486  int setupIDWS(); // activates IDWS and sets alchIDWSFreq
487  BigReal getLambdaDelta(void) const; // getter for lambda increment
488  BigReal alchTemp; // temperature for alchemical calculation
489  int alchOutFreq; // freq. of alchemical output
490  Bool alchEnsembleAvg; //if do ensemble average for the net free energy difference
491  char alchOutFile[NAMD_FILENAME_BUFFER_SIZE]; // alchemical output filename
492  int alchEquilSteps; // # of equil. steps in the window
493  BigReal alchVdwShiftCoeff; // r2 shift coeff used for generating
494  // the alchemical altered vdW interactions
495  BigReal alchElecLambdaStart; // lambda value for starting point of
496  // electrostatic interactions of
497  // exnihilated particles. For annihilated
498  // particles the starting point is
499  // (1-alchElecLambdaStart)
500  BigReal getElecLambda(const BigReal) const; // return min[0,x/(1-elecStart)]
501  BigReal alchVdwLambdaEnd; // lambda value for endpoint of vdW
502  // interactions of exnihilated particles.
503  // For annihilated particles the endpoint is
504  // (1-alchVdwLambdaEnd)
505  BigReal getVdwLambda(const BigReal) const; // return max[1,x/vdwEnd]
506  BigReal alchRepLambdaEnd; // lambda value for endpoint of repulsive vdW
507  // interactions of exnihilated particles.
508  // For annihilated particles the endpoint is
509  // (1-alchRepLambdaEnd). This also implies the
510  // START for attractive vdW interactions.
511  BigReal getRepLambda(const BigReal) const; // return max[1,x/repEnd]
512  BigReal alchBondLambdaEnd; // lambda value for endpoint of bonded
513  // interactions involving exnihilated particles.
514  // For annihilated particles the endpoint is
515  // (1-alchBondLambdaEnd)
516  BigReal getBondLambda(const BigReal) const; // return max[1,x/bondEnd]
517  Bool alchDecouple; // alchemical decoupling rather than annihilation
518  Bool alchBondDecouple; // decouple purely alchemical bonds
519  size_t alchGetNumOfPMEGrids() const; // get the number of PME grids required by alchemy
520 //fepe
521 
522 
523  Bool lesOn; // Locally enhanced sampling?
524  int lesFactor; // local enhancement factor
525  Bool lesReduceTemp; // Reduce enhanced atom temperature?
526  Bool lesReduceMass; // Reduce enhanced atom mass?
527 
528  // REST2
542  Bool extForcesOn; // Are ext command forces present?
546 
547 
548  // Defines variables for QM/MM calculations
549  Bool qmForcesOn; // Are QM/MM command forces present?
554  char qmSoftware[128];
555  char qmChrgModeS[16];
557  char qmColumn[16];
563  int qmFormat ;
566 
568  char qmBondColumn[16];
574  char qmBondSchemeS[16] ;
577  char qmPCSwitchTypeS[16];
579  char qmPCSchemeS[16];
582 
588 
590  int qmLSSFreq ;
591  char qmLSSResname[5] ;
592  char qmLSSModeS[16];
594 
597 
599  int qmOutFreq ;
601 
602  Bool printBadContacts; //print indices of bad contacts being moved downhill
603 
604  //gbis implicit solvent parameters
605  Bool GBISOn; //do generalized born implicit solvent
607  Bool GBISserOn; //do generalized born implicit solvent serial
610  BigReal kappa; //debye screening length; k = sqrt(ion concentration mol/L ) / 0.304
612  BigReal gbis_delta; //three parameters for born radius calc
615  BigReal alpha_cutoff; //pairwise cutoff for integrating born radius
616  BigReal alpha_max; //maximum allowable born radius
617  Bool LCPOOn; //do LCPO SASA for GBSA
618  BigReal surface_tension; //surface tension (kcal/mol/Ang^2) for LCPO
619 
620  Bool drudeOn; // Perform integration of Drude oscillators?
621  Bool drudeHardWallOn; // Apply maximum Drude bond length restriction?
622  BigReal drudeTemp; // (low) temperature for freezing Drude oscillators
623  BigReal drudeDamping; // Langevin damping coefficient (1/ps)
624  // defaults to langevinDamping
625  BigReal drudeBondLen; // Length beyond which to apply quartic
626  // restraining potential to Drude bond
627  BigReal drudeBondConst; // Force constant for restraining potential
628  BigReal drudeNbtholeCut; // Radius of thole pair interaction
629 
630  Bool pairInteractionOn; // Calculate pair interactions?
631  int pairInteractionGroup1; // Interaction group 1.
632  int pairInteractionGroup2; // Interaction group 2.
633  Bool pairInteractionSelf; // Compute just within group.
634 
635  Bool cosAngles; // Can some angles be cos-based
636  Bool globalForcesOn; // Are global forces present?
637  Bool tclForcesOn; // Are Tcl forces present?
645 #ifdef NAMD_TCL
646  Bool tclIsThreaded; // Is Tcl library thread-safe?
647 #endif
648  Bool tclBCOn; // Are Tcl boundary forces present
649  char *tclBCScript; // Script defining tclBC calcforces
650  char tclBCArgs[NAMD_FILENAME_BUFFER_SIZE]; // Extra args for calcforces command
651  Bool freeEnergyOn; // Doing free energy perturbation?
652  Bool miscForcesOn; // Using misc forces?
653  Bool colvarsOn; // Using the colvars module?
654 
655  Bool fixedAtomsOn; // Are there fixed atoms?
656  Bool fixedAtomsForces; // Calculate forces anyway?
657  Bool fixedAtomsForceOutput; // Output fixed forces?
658 
659  Bool langevinOnAtStartup; // Ensure that langevin is set up properly
660  Bool langevinOn; // Flag TRUE-> langevin dynamics active
661  BigReal langevinTemp; // Temperature for Langevin dynamics
662  BigReal langevinDamping; // Damping coefficient (1/ps)
663  Bool langevinHydrogen; // Flag TRUE-> apply to hydrogens
668  Bool langevin_useBAOAB; // Flag TRUE-> use the experimental BAOAB integrator for NVT instead of the BBK one
669  // See Leimkuhler and Matthews (AMRX 2012); implemented in NAMD by CM June2012
670 
671  // BEGIN LA
672  Bool loweAndersenOn; // Flag TRUE-> Lowe-Andersen dynamics active
673  BigReal loweAndersenTemp; // Temperature for Lowe-Andersen dynamics
674  BigReal loweAndersenRate; // Collision frequency for Lowe-Andersen dynamics (1/ps)
675  BigReal loweAndersenCutoff; // Cutoff radius for Lowe-Andersen dynamics
676  // END LA
677 
678  Bool globalOn; // Flag TRUE-> use global integrator
679  Bool dihedralOn; // Flag TRUE-> dihedral dynamics active
680  Bool COLDOn; // Flag TRUE-> constrained overdamped
681  // langevin dynamics active
682  BigReal COLDRate; // Damping coefficient for COLD.
683  BigReal COLDTemp; // Temperature for COLD.
684 
685  Bool tCoupleOn; // Flag TRUE-> Temperature coupling
686  // active
687  BigReal tCoupleTemp; // Temperature for temp coupling
688 
710  int rescaleFreq; // Velocity rescale frequency
711  BigReal rescaleTemp; // Temperature to rescale to
712 
713  Bool accelMDOn; // Perform accelerated MD
714  Bool accelMDdihe; // Apply boost to the dihedral potential
715  Bool accelMDdual; // dual boost mode
716  Bool accelMDDebugOn; // Debugging accelerated MD
717  BigReal accelMDFirstStep; // First aMD step
718  BigReal accelMDLastStep; // Last aMD step
719  int accelMDOutFreq; // aMD output frequency
720  BigReal accelMDE; // aMD E
721  BigReal accelMDalpha; // aMD alpha
722  BigReal accelMDTE; // E for total potential in the dual boost mode
723  BigReal accelMDTalpha; // alpha for total potential in the dual boost mode
724 
725  Bool accelMDG; // Perform Gaussian accelMD calculation
726  int accelMDGiE; // Flag to set the mode iE in Gaussian accelMD
727  int accelMDGcMDSteps; // Number of cMD steps
728  int accelMDGEquiSteps; // Number of quilibration steps after adding boost potential
729  int accelMDGcMDPrepSteps; // Number of preparation cMD steps
730  int accelMDGEquiPrepSteps; // Number of preparation equilibration steps
731  int accelMDGStatWindow; // Number of steps to calc avg and std
732  BigReal accelMDGSigma0P; // upper limit of std of total potential
733  BigReal accelMDGSigma0D; // upper limit of std of dihedral potential
734  Bool accelMDGRestart; // Flag to set use restart file in Gaussian accelMD
735  char accelMDGRestartFile[NAMD_FILENAME_BUFFER_SIZE]; // restart file name
736  Bool accelMDGresetVaftercmd; // Flag to reset potential after first accelMDGcMDSteps steps
737 
738  /* Begin Adaptive Temperature Sampling */
739  Bool adaptTempOn; // is adaptTempOn
740  Bool adaptTempDebug; // Debuggin adaptive temperature sampling
741  int adaptTempFirstStep; // First adaptTemp step
742  int adaptTempLastStep; // Last adaptTemp step
743  int adaptTempOutFreq; // adaptTemp output frequency
744  int adaptTempFreq; // Steps between adaptTemp updates
745  BigReal adaptTempTmin; // Lower temperature bound
746  BigReal adaptTempTmax; // Upper temperature bound
747  BigReal adaptTempAutoDt; // Auto jump size. Value determines upper bound, adaotTempDt determines lower bound
748  int adaptTempBins; // Number of bins to store average energy values
749  BigReal adaptTempDt; // timestep for adaptTemp updates - only affects Temperature random walk
750  BigReal adaptTempCgamma; // Cgamma variable for adaptive bin averaging Cgamma = 0 is normal Averaging. 1 > Cgamma >= 0
751  Bool adaptTempLangevin; // Couple to Langevin Thermostat
752  Bool adaptTempRescale; // Couple to Vel. Rescaling
753  char adaptTempInFile[NAMD_FILENAME_BUFFER_SIZE]; // Restart information for adaptTemp to read
754  char adaptTempRestartFile[NAMD_FILENAME_BUFFER_SIZE]; // File to write restart information
755  int adaptTempRestartFreq; // Frequency of writing restart output
756  Bool adaptTempRandom; // Do we assign random temperatures when we step out of [Tmin,Tmax]?
757  /* End Adaptive Temperature Sampling */
758 
759  int reassignFreq; // Velocity reassignment frequency
760  BigReal reassignTemp; // Temperature to reassign to
761  BigReal reassignIncr; // Added to reassignTemp each time
762  BigReal reassignHold; // Hold reassignTemp at this value
763 
764  Bool useGroupPressure; // Use group rather than atomic
765  // quantities for pressure calc
766 
767  Bool excludeFromPressure; // Flag TRUE-> some atoms not rescaled
768 
769  Bool useFlexibleCell; // Use anisotropic cell fluctuations
770  Bool useConstantArea; // x,y dimensions fixed.
771  Bool useConstantRatio; // x,y ratio fixed.
772 
773  Bool fixCellDims; // fix the cell dimensions
777 
778  Bool berendsenPressureOn; // Berendsen pressure bath
783 
784  Bool langevinPistonOn; // Langevin piston pressure control
785  Bool langevinPistonBarrier; // Turn off to extrapolate cell
790 
791  Bool monteCarloPressureOnAtStartup; // Ensure that MC pressure is set up properly
792  Bool monteCarloPressureOn; // MonteCarlo pressure control
793  BigReal monteCarloPressureTarget; // target pressure
794  BigReal monteCarloTemp; // Temperature used in Monte Carlo acceptance critiria
795  BigReal monteCarloAcceptanceRate; // target acceptance rate
796  zVector monteCarloMaxVolume; // initial maximum volume change for each dimension
797  int monteCarloAdjustmentFreq; // frequency of adjusting maximum scaling factor
798  int monteCarloPressureFreq; // frequency of applying MC pressure
799 
800  Bool multigratorOn; // Multigrator temperature and/or pressure control
808 
810 
811  Bool pressureProfileOn; // Compute lateral pressure profile?
812  int pressureProfileSlabs; // Number of slabs
813  int pressureProfileFreq; // How often to store profile data
815  Bool pressureProfileEwaldOn; // Compute Ewald contribution?
819 
821  zVector strainRate2; // off diagonal elements (xy, xz, yz)
822 
823  unsigned int randomSeed; // Seed for random number generator
824 
825  Bool FMAOn; // Flag TRUE-> FMA active
826  int FMALevels; // Number of Levels for FMA
827  int FMAMp; // Number of multipole terms for FMA
828  Bool FMAFFTOn; // FFT on/off flag for FMA
829  int FMAFFTBlock; // FFT blocking factor for FMA
830 
831  Bool fullDirectOn; // Should direct calculations of
832  // full electrostatics be performed?
833 
834  Bool MSMOn; // enable MSM (multilevel summation method)
835  // for long-range electrostatics
836 
837  int MSMQuality; // choose MSM quality 0 (low) - 3 (high), using
838  // optimal combination of approximation and splitting
839  // defaults to "low" for fastest performance
840 
841  int MSMApprox; // choose MSM approximation
842  // defaults to "cubic" (low) for fastest performance
843 
844  int MSMSplit; // choose MSM splitting function
845  // defaults to "Taylor2" (low) for fastest performance
846 
847  int MSMLevels; // select number of MSM levels
848  // default (0) adapts number of levels to the
849  // system for fastest performance
850 
851  int MSMBlockSizeX; // controls size of parallel work decomposition
852  int MSMBlockSizeY; // controls size of parallel work decomposition
853  int MSMBlockSizeZ; // controls size of parallel work decomposition
854 
855  BigReal MSMGridSpacing; // defaults to 2.5 A, best for atomic systems
856 
857  BigReal MSMPadding; // pad grid along non-periodic boundaries
858  // defaults to 2.5 A
859  // increase if atoms are drifting beyond
860  // edge of grid, which will terminate
861  // simulation prematurely
862 
863  BigReal MSMxmin; // define extent of non-periodic boundaries
869 
870  Bool MsmSerialOn; // use serial MSM solver for testing
871 
875 
876  // LJ-PME parameters
877  Bool LJPMEOn; // Flag TRUE -> LJ-PME active
878  BigReal LJPMETolerance; // LJ Direct space tolerance
879  BigReal LJPMEEwaldCoefficient; // From tolerance and cutoff
880  int LJPMEInterpOrder; // LJ-PME Order of interpolation
881  int LJPMEGridSizeX; // No. of grid points in x dim
882  int LJPMEGridSizeY; // No. of grid points in y dim
883  int LJPMEGridSizeZ; // No. of grid points in z dim
884  BigReal LJPMEGridSpacing; // Maximum spacing between points
885  //Bool LJFFTWUseWisdom; // Read/save wisdom file for FFTW
886  //char LJFFTWWisdomFile[NAMD_FILENAME_BUFFER_SIZE]; // Wisdom file name for FFTW
887  //char *LJFFTWWisdomString;
888  Bool LJPMESerial; // Use serial implementation only
889 
890  // PME Parameters
891  Bool PMEOn; // Flag TRUE -> PME active
892  BigReal PMETolerance; // Direct space tolerance
893  BigReal PMEEwaldCoefficient; // From tolerance and cutoff
894  int PMEInterpOrder; // Order of interpolation
895  int PMEGridSizeX; // No. of grid points in x dim
896  int PMEGridSizeY; // No. of grid points in y dim
897  int PMEGridSizeZ; // No. of grid points in z dim
898  BigReal PMEGridSpacing; // Maximum spacing between points
899  int PMEProcessors; // No. of processors to use
900  int PMEMinSlices; // Min slices per PME slab
901  int PMEMinPoints; // Min points per PME pencil
902  Bool PMEBarrier; // Use barrier before sendTrans
903  int PMEPencils; // Size of pencil grid in each dim
904  int PMEPencilsX; // Size of pencil grid in X dim
905  int PMEPencilsY; // Size of pencil grid in Y dim
906  int PMEPencilsZ; // Size of pencil grid in Z dim
907  int PMEPencilsYLayout; // Y pencil layout strategy
908  int PMEPencilsXLayout; // X pencil layout strategy
909  int PMESendOrder; // Message ordering strategy
910  Bool PMEOffload; // Offload reciprocal sum to accelerator
911 
912  Bool useDPME; // Flag TRUE -> old DPME code
913 
942 
943  #ifdef OPENATOM_VERSION
944  Bool openatom; // Flag TRUE -> OpenAtom QM/MM active
945  #endif // OPENATOM_VERSION
946 
947  Bool minimizeCGOn; // Flag TRUE-> CG minimization active
948  Bool minVerbose; // Flag TRUE-> print extra minimization data
949  BigReal minTinyStep; // Minimization parameter
950  BigReal minBabyStep; // Minimization parameter
951  BigReal minLineGoal; // Minimization parameter
952  Bool minimizeOn; // Flag TRUE-> minimization active
953  BigReal maximumMove; // Maximum movement per timestep
954  // during minimization
955 
956  Bool sphericalBCOn; // Flag TRUE-> spherical boundary
957  // conditions are active
958  zVector sphericalCenter; // Center specified by user
959  BigReal sphericalBCk1; // First force constant for
960  // spherical BC
961  BigReal sphericalBCk2; // Second force constant for
962  // spherical BC
963  BigReal sphericalBCr1; // First radius for spherical BC
964  BigReal sphericalBCr2; // Second radius for spherical BC
965  int sphericalBCexp1; // First radius for spherical BC
966  int sphericalBCexp2; // Second radius for spherical BC
967 
968  Bool cylindricalBCOn; // Flag TRUE->cylindrical boundary
969  // conditions are active
971  char cylindricalBCAxis; // 'x', 'y', or 'z'
980 
981  Bool eFieldOn; // Should a electric field be applied
982  Bool eFieldNormalized; // Is eField vector scaled by cell basis vectors
983  zVector eField; // Electric field vector to be applied
984  BigReal eFieldFreq; // Frequency of the electric field
985  BigReal eFieldPhase; // Phase phi, cos(w*t-phi*PI/180)
986 
987  Bool stirOn; // Should a stirring torque be applied
988  char stirFilename[NAMD_FILENAME_BUFFER_SIZE]; // Stirring filename (atoms marked)
989  //do the below two even needed to be defined?
990  BigReal stirStartingTheta; // Stir starting theta offset
991  BigReal stirVel; // Stir angular velocity
992  BigReal stirK; // Stir force harmonic spring constant
993  zVector stirAxis; // Direction of stir axis
994  zVector stirPivot; // Pivot point of stir axis
995 
996  Bool extraBondsOn; // read extra bonded forces
997  Bool extraBondsCosAngles; // extra angles are cosine-based
998  Bool extraBondsCosAnglesSetByUser; // did the user set this explicitly
999 
1000  Bool consForceOn; // Should constant force be applied
1003 
1004  int computeEnergies; // Number of timesteps between energey evaluations
1005  int outputEnergies; // Number of timesteps between energy
1006  // outputs
1007 
1008  int outputEnergiesPrecision; // Precision of energy outputs
1009 
1010  int outputMomenta; // Number of timesteps between momentum
1011  // outputs
1012 
1013  int outputTiming; // Number of timesteps between timing
1014  // outputs
1015 
1016  Bool outputPerformance; // Calculate performance statistics?
1017  // Running stats for performance
1018  // printed on each outputTiming step
1019 
1020  int benchmarkTime; // Terminate simulation after running
1021  // for specified number of seconds,
1022  // intended for benchmarking
1023 
1024  int outputCudaTiming; // Number of timesteps between timing
1025  // outputs of CUDA code
1026 
1027  int outputPressure; // Number of timesteps between pressure
1028  // tensor outputs
1029 
1030  Bool mergeCrossterms; // Merge crossterm energy w/ dihedrals
1031 
1032  int firstTimestep; // Starting timestep. Will be 0 unless
1033  // restarting a simulation
1034 
1035  MTSChoices MTSAlgorithm; // What multiple timestep algorithm
1036  // to use
1037 
1038  int longSplitting; // What electrostatic splitting
1039  // to use
1040 
1041  Bool ignoreMass; // Mass < 3.5 does not indicate hydrogen, etc.
1042 
1043  int splitPatch; // How are patches determined?
1044  BigReal hgroupCutoff; // what is the added hydrogen margin?
1045 
1046  int mollyOn; // mollify long range forces?
1047  BigReal mollyTol; // error tolerance for molly
1048  int mollyIter; // max number of iterations for molly
1049 
1050  int rigidBonds; // what type of rigid bonds to hydrogens
1051  // none, all, or only water
1052 
1053  BigReal rigidTol; // error tolerance for rigid bonds
1054  int rigidIter; // Number of NR iterations
1055  int rigidDie; // die if rigidTol not achieved
1056 
1057  Bool useSettle; // Use SETTLE; requires rigid waters
1058 
1059  Bool testOn; // Do tests rather than simulation
1060  Bool commOnly; // Don't do any force evaluations
1061  Bool statsOn; // Don't do any force evaluations
1062 
1063  int totalAtoms; // Total Number of atoms in simulation
1064  int maxSelfPart; // maximum number of self partitions
1065  // that a patch can be split into
1066  int maxPairPart; // maximum number of pair partitions
1067  // that a patch can be split into
1068  int numAtomsSelf; // maximum number of atoms in a single
1069  // self-compute
1070  int numAtomsSelf2; // maximum number of atoms in a pair compute
1071  // in the presence of twoAwayX,Y,Z options
1072  int numAtomsPair; // maximum number of atoms in a single
1073  // pair-compute
1074  int numAtomsPair2; // maximum number of atoms in a single
1075  // pair-compute
1076  int minAtomsPerPatch; // minimum average atoms per patch
1077  // (may create larger patches)
1078  int emptyPatchLoad; // atoms worth of load generated by empty patch
1079  // (added to atom count during node assignment)
1080  int maxExclusionFlags; // maximum size of exclusion check list
1081  // for any given atom
1082  Bool outputPatchDetails; // print number of atoms per patch
1083  Bool staticAtomAssignment; // never migrate atoms
1084  Bool replicaUniformPatchGrids; // same patch grid size on all replicas
1085 
1086  //
1087  // hydrogen bond simulation parameters
1088  //
1089 
1090  // should the hydrogen bond term be used? If FALSE, all other
1091  // hydrogen bond parameters are unnecessary in simulation.
1093 
1094  // should the antecedent atom be used in the calculation of hbonds?
1096 
1097  // exponents used in hydrogen bond energy function:
1098  // aaAngleExp = exp for H-A-AA angle term (n)
1099  // haAngleExp = exp for D-H-A angle term (m)
1100  // distAttExp = exp for attractive A-D distance term (j)
1101  // distRepExp = exp for repulsive A-D distance term (i)
1103 
1104  // cutoff D-H-A angle, and on/off angles for switch fcn (in degrees)
1106 
1107  // cutoff distance for D-A separation in hbonds (in Angstroms), and
1108  // on/off distances for hbond radial term switching function
1110 
1111  // IMD parameters
1112  int IMDon; // enable IMD
1113  int IMDversion; // version of IMD protocol
1114  int IMDport; // port on which to listen for connections
1115  int IMDfreq; // frequency at which coordinates will be available
1116  int IMDwait; // if true, pause the simulation when there is no
1117  // connection
1118  int IMDignore; // IMD connection does not influence simulation
1119  // only sends coordinates and energies to VMD
1120  int IMDignoreForces; // Only the Forces are ignored. Finish, Pause and Resume are enabled
1121  IMDSessionInfo IMDsendsettings = {0,0,1,1,0,0,1}; // information about the current session for sending via IMD
1122  // default value is for v2.0
1123 
1124 
1125  // AMBER options
1126  Bool amberOn; // FLAG TRUE-> amber force field is used
1127  Bool oldParmReader; // FLAG TRUE -> use the old Amber parm/parm7 reader
1128  Bool readExclusions; // FLAG TRUE-> Read exclusions from parm file
1129  BigReal vdwscale14; // Scaling factor for 1-4 VDW interactions
1130 
1131  // GROMACS options
1132  Bool gromacsOn; // FLAG TRUE -> gromacs-style force field is used
1133 
1134  // OPLS options
1135  Bool vdwGeometricSigma; // Lennard-J sigma uses geometric mean
1136 
1137  // ScriptTcl argument passing
1145  char scriptStringArg1[128];
1146  char scriptStringArg2[128];
1147 
1150 
1152 
1155 
1156  //default value is -1
1159 
1161 
1162 
1163  //fields needed for Parallel IO Input
1167  char *binVelFile;
1168  char *binRefFile;
1169 
1170  //fields needed for Parallel IO Output
1173 
1174  char computeMapFilename[NAMD_FILENAME_BUFFER_SIZE]; // store compute map
1177 
1178  // MIC-specific parameters
1186 
1187  // AVX-512 Tiles optimizations
1189 
1193 
1194 
1195 public:
1196 
1197  SimParameters() : mgridforcelist(), parseopts(0) {};
1198  SimParameters(ConfigList *c, char *&cwd) : mgridforcelist(), parseopts(0) {
1199  initialize_config_data(c,cwd);
1200  };
1202 
1203  void initialize_config_data(ConfigList *, char *&cwd);
1204  // Initialize SimParameters data
1205  // from the ConfigList object
1206  void send_SimParameters(MOStream *);
1207  // Used by the master process
1208  // to send the paramters to
1209  // the other processors
1211  // Used by the other processors
1212  // to receive the data from the
1213  // master process
1214  void scriptSet(const char *, const char *);
1215  // Set parameters at run time
1216  void close_dcdfile(); // *** implemented in Output.C ***
1217  void close_veldcdfile(); // *** implemented in Output.C ***
1218  static void nonbonded_select();
1219  static void pme_select();
1220 
1225 
1227  return (fullElectFrequency != 1) || (nonbondedFrequency != 1);
1228  }
1229 
1230  char* getfromparseopts(const char* name, char *outbuf);
1231  int istrueinparseopts(const char* name);
1232  int issetinparseopts(const char* name);
1233 
1234  void readExtendedSystem(const char *filename, Lattice *latptr=0);
1235 private:
1236  ParseOptions *parseopts;
1237 
1238  void config_parser(ParseOptions &opts);
1239 
1240  void config_parser_basic(ParseOptions &opts);
1241  void config_parser_fileio(ParseOptions &opts);
1242  void config_parser_fullelect(ParseOptions &opts);
1243  void config_parser_methods(ParseOptions &opts);
1244  void config_parser_constraints(ParseOptions &opts);
1245 #ifdef OPENATOM_VERSION
1246  void config_parser_openatom(ParseOptions &opts);
1247 #endif //OPENATOM_VERSION
1248  /* BEGIN gf */
1249  void config_parser_gridforce(ParseOptions &opts);
1250  /* END gf */
1251  void config_parser_dcd_selections(ParseOptions &opts);
1252  void config_parser_movdrag(ParseOptions &opts);
1253  void config_parser_rotdrag(ParseOptions &opts);
1254  void config_parser_constorque(ParseOptions &opts);
1255  void config_parser_boundary(ParseOptions &opts);
1256  void config_parser_misc(ParseOptions &opts);
1257  void config_parser_mgridforce(ParseOptions &opts);
1258  void config_parser_group_restraints(ParseOptions &opts);
1259  void parse_mgrid_string_param(ConfigList *config,
1260  const char *fieldname, char** dest);
1261  void parse_mgrid_params(ConfigList *config);
1262  void print_mgrid_params();
1263  void parse_group_restraints_params(ConfigList *config);
1264 
1265  void check_config(ParseOptions &opts, ConfigList *config, char *&cwd);
1266 
1267  void print_config(ParseOptions &opts, ConfigList *config, char *&cwd);
1268 
1269  void create_output_directories(const char *dirname);
1270 
1271  int fmaFrequency; // outdated parameter name
1272  char loadBalancer[64]; // Load balancer
1273  char loadStrategy[64]; // Load balancing strategy
1274 
1275 };
1276 
1277 #endif
1278 
char qmLSSResname[5]
BigReal adaptTempTmax
int adaptTempRestartFreq
zVector sphericalCenter
Bool accelMDGresetVaftercmd
char movDragVelFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal sphericalBCr2
BigReal berendsenPressureCompressibility
Bool berendsenPressureOn
BigReal scriptArg3
char symmetryFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal TMDInitialRMSD
BigReal hgroupCutoff
char scriptStringArg1[128]
BigReal berendsenPressureRelaxationTime
BigReal soluteScalingFactorCharge
BigReal cylindricalBCl1
char qmChrgModeS[16]
char qmPCSchemeS[16]
Bool simulateInitialMapping
Bool fixedAtomsForceOutput
BigReal scriptArg2
int isSendSpanningTreeUnset()
char extCoordFilename[NAMD_FILENAME_BUFFER_SIZE]
char scriptStringArg2[128]
BigReal minTinyStep
BigReal accelMDE
BigReal monteCarloAcceptanceRate
BigReal cylindricalBCl2
BigReal adaptTempCgamma
int pressureProfileEwaldX
BigReal ldbRelativeGrainsize
int istrueinparseopts(const char *name)
BigReal getBondLambda(const BigReal) const
BigReal pairlistTrigger
void receive_SimParameters(MIStream *)
BigReal solvent_dielectric
zVector rotConsAxis
char qmBondSchemeS[16]
BigReal langevinPistonTemp
BigReal dhaOffAngle
BigReal accelMDLastStep
void close_veldcdfile()
Definition: Output.C:874
BigReal adaptTempTmin
Bool monteCarloPressureOn
Bool extraBondsCosAngles
int movingAverageWindowSize
BigReal LJPMEEwaldCoefficient
Bool globalMasterScaleByFrequency
BigReal scale14alt
int isRecvSpanningTreeUnset()
char extForcesCommand[NAMD_FILENAME_BUFFER_SIZE]
zVector sphericalConstrCenter
char rotDragAxisFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal alchElecLambdaStart
char adaptTempInFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal eFieldFreq
zVector monteCarloMaxVolume
zVector gridforceVOffset
char stirFilename[NAMD_FILENAME_BUFFER_SIZE]
Bool useGPUAtomMigration
char consTorquePivotFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal scriptArg5
BigReal multigratorPressureTarget
BigReal nonbondedScaling
int accelMDGEquiPrepSteps
Bool CUDASOAintegrateMode
char * FFTWWisdomString
Bool excludeFromPressure
BigReal constraintScaling
Bool selectConstraintsOn
char velDcdFilename[NAMD_FILENAME_BUFFER_SIZE]
BigReal sphericalBCk1
Bool ldbUnloadOutputPEs
int fullDispersionFrequency
BigReal surfaceTensionTarget
BigReal COLDTemp
BigReal reassignTemp
float Real
Definition: common.h:118
int symmetryLastFullStep
Bool movingConstraintsOn
BigReal gbis_gamma
char * tclBCScript
char qmCSMDFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal dhaOnAngle
BigReal alchLambda2
BigReal limitDist
BigReal alchBondLambdaEnd
BigReal accelMDTE
char consTorqueFile[NAMD_FILENAME_BUFFER_SIZE]
void scriptSet(const char *, const char *)
BigReal rotDragGlobVel
zVector cellBasisVector1
char extForceFilename[NAMD_FILENAME_BUFFER_SIZE]
BigReal minLineGoal
BigReal minBabyStep
char qmPrepProc[NAMD_FILENAME_BUFFER_SIZE]
int berendsenPressureFreq
BigReal cylindricalBCk2
BigReal cylindricalBCk1
int monteCarloAdjustmentFreq
zVector stirPivot
Bool langevinPistonBarrier
char auxFilename[NAMD_FILENAME_BUFFER_SIZE]
Bool globalMasterStaleForces
zVector rotConsPivot
BigReal accelMDalpha
zVector cellBasisVector3
#define NAMD_FILENAME_BUFFER_SIZE
Definition: common.h:45
int pressureProfileSlabs
BigReal getElecLambda(const BigReal) const
BigReal FMMPadding
char computeMapFilename[NAMD_FILENAME_BUFFER_SIZE]
BigReal alchLambda
Bool pairInteractionOn
char qmExecPath[NAMD_FILENAME_BUFFER_SIZE]
char symmetryMatrixFile[NAMD_FILENAME_BUFFER_SIZE]
void close_dcdfile()
Definition: Output.C:858
char outputFilename[NAMD_FILENAME_BUFFER_SIZE]
BigReal switchingDist
BigReal coulomb_radius_offset
void initialize_config_data(ConfigList *, char *&cwd)
Bool langevinOnAtStartup
BigReal drudeNbtholeCut
Bool symmetryScaleForces
Bool sphericalConstraintsOn
BigReal vdwscale14
Bool useDeviceMigration
BigReal eFieldPhase
char tabulatedEnergiesFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal accelMDTalpha
WaterModel watmodel
char tclBCArgs[NAMD_FILENAME_BUFFER_SIZE]
BigReal alchRepLambdaEnd
BigReal langevinPistonDecay
char qmPCSwitchTypeS[16]
char qmSecProc[NAMD_FILENAME_BUFFER_SIZE]
BigReal rotConsVel
Bool useGPUNonbondedForceTable
BigReal ldbHomeBackgroundScaling
BigReal alchLambdaIDWS
zVector stirAxis
BigReal alpha_max
Bool langevin_useBAOAB
BigReal berendsenPressureTarget
char qmLSSModeS[16]
Bool groupRestraintsOn
zVector cylindricalCenter
BigReal LJPMEGridSpacing
BigReal stochRescalePeriod
uint32_t uint32
Definition: common.h:42
char cylindricalBCAxis
zVector gridforceScale
int accelMDGcMDPrepSteps
BigReal rescaleTemp
BigReal surface_tension
BigReal ion_concentration
BigReal PMEGridSpacing
bool isMultiTimeStepping()
BigReal accelMDFirstStep
Bool adaptTempLangevin
BigReal soluteScalingFactor
char TMDFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal dhaCutoffAngle
char rotDragPivotFile[NAMD_FILENAME_BUFFER_SIZE]
zVector strainRate2
BigReal langevinDamping
GoChoices goMethod
char dcdFilename[NAMD_FILENAME_BUFFER_SIZE]
Bool gridforcechecksize
Bool staticAtomAssignment
int Bool
Definition: common.h:142
Bool replicaUniformPatchGrids
BigReal drudeBondLen
static void pme_select()
char adaptTempRestartFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal gbis_beta
BigReal langevinTemp
MTSChoices MTSAlgorithm
BigReal scriptArg1
int monteCarloPressureFreq
BigReal loweAndersenRate
void readExtendedSystem(const char *filename, Lattice *latptr=0)
BigReal alpha_cutoff
BigReal PMEEwaldCoefficient
Bool useCUDANonbondedForceTable
BigReal fmaTheta
char alchOutFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal MSMGridSpacing
int multigratorNoseHooverChainLength
BigReal multigratorTemperatureTarget
BigReal multigratorPressureRelaxationTime
int ExclusionSettings
Definition: SimParameters.h:29
BigReal tableMaxDist
BigReal reassignIncr
char movDragFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal cylindricalBCr2
BigReal soluteScalingFactorVdw
zVector strainRate
BigReal sphericalBCr1
Bool pressureProfileEwaldOn
BigReal alchVdwLambdaEnd
BigReal daCutoffDist
int GoChoices
Definition: SimParameters.h:87
BigReal multigratorTemperatureRelaxationTime
GroupRestraintList groupRestraints
BigReal ldbBackgroundScaling
Bool vdwForceSwitching
BigReal adaptTempDt
MGridforceParamsList mgridforcelist
BigReal drudeBondConst
static void nonbonded_select()
BigReal consTorqueGlobVal
BigReal accelMDGSigma0P
IMDSessionInfo IMDsendsettings
char restartFilename[NAMD_FILENAME_BUFFER_SIZE]
char symmetrykfile[NAMD_FILENAME_BUFFER_SIZE]
BigReal langevinPistonPeriod
BigReal stirStartingTheta
int pressureProfileEwaldY
Bool qmMOPACAddConfigChrg
int isRecvSpanningTreeOn()
char * getfromparseopts(const char *name, char *outbuf)
char forceDcdFilename[NAMD_FILENAME_BUFFER_SIZE]
char qmSoftware[128]
SimParameters(ConfigList *c, char *&cwd)
char consTorqueValFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal monteCarloTemp
BigReal loweAndersenCutoff
Bool monteCarloPressureOnAtStartup
Bool alchFepOnAtStartup
unsigned int randomSeed
BigReal alchTemp
zVector cellBasisVector2
BigReal initialTemp
int pressureProfileAtomTypes
BigReal scriptArg4
char accelMDGRestartFile[NAMD_FILENAME_BUFFER_SIZE]
int MTSChoices
Definition: SimParameters.h:50
BigReal getCurrentLambda2(const int) const
Bool GPUresidentSingleProcessMode
Bool extraBondsCosAnglesSetByUser
BigReal getCurrentLambda(const int) const
Bool qmBondColumnDefined
BigReal getLambdaDelta(void) const
char consTorqueAxisFile[NAMD_FILENAME_BUFFER_SIZE]
Bool langevinGammasDiffer
BigReal TMDFinalRMSD
BigReal movDragGlobVel
BigReal symmetryk
BigReal ldbPMEBackgroundScaling
Bool alchThermIntOnAtStartup
Bool pressureProfileOn
int symmetryFirstFullStep
char rotDragVelFile[NAMD_FILENAME_BUFFER_SIZE]
char SMDFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal PMETolerance
BigReal tCoupleTemp
BigReal LJPMETolerance
BigReal pairlistDist
Bool pairInteractionSelf
char rotDragFile[NAMD_FILENAME_BUFFER_SIZE]
int multigratorPressureFreq
BigReal getVdwLambda(const BigReal) const
BigReal patchDimension
BigReal getRepLambda(const BigReal) const
BigReal maximumMove
Bool qmParamPDBDefined
BigReal COLDRate
BigReal gbis_delta
int pairInteractionGroup2
BigReal pairlistShrink
BigReal dielectric
char qmBondValueTypeS[16]
size_t alchGetNumOfPMEGrids() const
BigReal adaptTempAutoDt
int isSendSpanningTreeOn()
BigReal cylindricalBCr1
char xstFilename[NAMD_FILENAME_BUFFER_SIZE]
BigReal pairlistGrow
char FFTWWisdomFile[NAMD_FILENAME_BUFFER_SIZE]
BigReal accelMDGSigma0D
BigReal reassignHold
Bool tabulatedEnergies
BigReal MSMPadding
char TMDFile2[NAMD_FILENAME_BUFFER_SIZE]
BigReal monteCarloPressureTarget
int pairInteractionGroup1
ExclusionSettings exclude
char qmParamPDB[NAMD_FILENAME_BUFFER_SIZE]
BigReal drudeDamping
char crashFilename[NAMD_FILENAME_BUFFER_SIZE]
char qmBaseDir[NAMD_FILENAME_BUFFER_SIZE]
char goCoordinates[NAMD_FILENAME_BUFFER_SIZE]
WaterModel
Definition: common.h:221
BigReal langevinPistonTarget
int cudaGlobalProfilingFreq
int issetinparseopts(const char *name)
char qmBondColumn[16]
BigReal sphericalBCk2
Bool noPatchesOnOutputPEs
int outputEnergiesPrecision
char tableInterpType[128]
int multigratorTemperatureFreq
zVector cellOrigin
BigReal stochRescaleTemp
int globalMasterFrequency
char consForceFile[NAMD_FILENAME_BUFFER_SIZE]
char goParameters[NAMD_FILENAME_BUFFER_SIZE]
double BigReal
Definition: common.h:123
int groupRestraintsCount
zVector movingConsVel
BigReal consForceScaling
void send_SimParameters(MOStream *)
char qmColumn[16]
BigReal loweAndersenTemp
BigReal alchVdwShiftCoeff
int pressureProfileEwaldZ
BigReal drudeTemp