|
| static SimFlat * | initSimulation (Command cmd) |
| | Initialized the main CoMD data stucture, SimFlat, based on command line input from the user. More...
|
| |
| static void | destroySimulation (SimFlat **ps) |
| | frees all data associated with *ps and frees *ps More...
|
| |
| static void | initSubsystems (void) |
| |
| static void | finalizeSubsystems (void) |
| |
| static BasePotential * | initPotential (int doeam, const char *potDir, const char *potName, const char *potType) |
| | decide whether to get LJ or EAM potentials More...
|
| |
| static SpeciesData * | initSpecies (BasePotential *pot) |
| |
| static Validate * | initValidate (SimFlat *s) |
| |
| static void | validateResult (const Validate *val, SimFlat *sim) |
| |
| static void | sumAtoms (SimFlat *s) |
| |
| static void | printThings (SimFlat *s, int iStep, double elapsedTime) |
| | Prints current time, energy, performance etc to monitor the state of the running simulation. More...
|
| |
| static void | printSimulationDataYaml (FILE *file, SimFlat *s) |
| | Print information about the simulation in a format that is (mostly) YAML compliant. More...
|
| |
| static void | sanityChecks (Command cmd, double cutoff, double latticeConst, char latticeType[8]) |
| | Check that the user input meets certain criteria. More...
|
| |
| int | main (int argc, char **argv) |
| |
Main program.
Definition in file CoMD.c.
Initialized the main CoMD data stucture, SimFlat, based on command line input from the user.
Also performs certain sanity checks on the input to screen out certain non-sensical inputs.
Simple data members such as the time step dt are initialized directly, substructures such as the potential, the link cells, the atoms, etc., are initialized by calling additional initialization functions (initPotential(), initLinkCells(), initAtoms(), etc.). Initialization order is set by the natural dependencies of the substructure such as the atoms need the link cells so the link cells must be initialized before the atoms.
Definition at line 161 of file CoMD.c.