Public Types | |
enum | { unset, commandline, ifile } |
How is the input specified on the command line or in an input file. More... | |
Public Member Functions | |
SimpleMD (const CLToolOptions &co) | |
void | setInputData (const std::map< std::string, std::string > &inputData) |
Set the input data: More... | |
const std::map< std::string, std::string > & | getInputData () |
bool | readInput (int argc, char **argv, FILE *in, FILE *out) |
Read the arguments from the command line. More... | |
Static Public Member Functions | |
static void | registerKeywords (Keywords &keys) |
Public Attributes | |
enum PLMD::CLTool:: { ... } | inputdata |
How is the input specified on the command line or in an input file. More... | |
Protected Member Functions | |
template<class T > | |
bool | parse (const std::string &key, T &t) |
Get the value of one of the command line arguments. More... | |
void | parseFlag (const std::string &key, bool &t) |
Find out whether one of the command line flags is present or not. More... | |
void | error (const std::string &msg) |
Crash the command line tool with an error. More... | |
template<class T > | |
bool | parseVector (const std::string &key, std::vector< T > &t) |
Private Member Functions | |
string | description () const |
virtual function returning a one-line descriptor for the tool More... | |
void | read_input (double &temperature, double &tstep, double &friction, double &forcecutoff, double &listcutoff, int &nstep, int &nconfig, int &nstat, bool &wrapatoms, string &inputfile, string &outputfile, string &trajfile, string &statfile, int &maxneighbours, int &ndim, int &idum) |
void | read_natoms (const string &inputfile, int &natoms) |
void | read_positions (const string &inputfile, int natoms, vector< Vector > &positions, double cell[3]) |
void | randomize_velocities (const int natoms, const int ndim, const double temperature, const vector< double > &masses, vector< Vector > &velocities, Random &random) |
void | pbc (const double cell[3], const Vector &vin, Vector &vout) |
void | check_list (const int natoms, const vector< Vector > &positions, const vector< Vector > &positions0, const double listcutoff, const double forcecutoff, bool &recompute) |
void | compute_list (const int natoms, const int listsize, const vector< Vector > &positions, const double cell[3], const double listcutoff, vector< int > &point, vector< int > &list) |
void | compute_forces (const int natoms, const int listsize, const vector< Vector > &positions, const double cell[3], double forcecutoff, const vector< int > &point, const vector< int > &list, vector< Vector > &forces, double &engconf) |
void | compute_engkin (const int natoms, const vector< double > &masses, const vector< Vector > &velocities, double &engkin) |
void | thermostat (const int natoms, const int ndim, const vector< double > &masses, const double dt, const double friction, const double temperature, vector< Vector > &velocities, double &engint, Random &random) |
void | write_positions (const string &trajfile, int natoms, const vector< Vector > &positions, const double cell[3], const bool wrapatoms) |
void | write_final_positions (const string &outputfile, int natoms, const vector< Vector > &positions, const double cell[3], const bool wrapatoms) |
void | write_statistics (const string &statfile, const int istep, const double tstep, const int natoms, const int ndim, const double engkin, const double engconf, const double engint) |
int | main (FILE *in, FILE *out, PLMD::Communicator &pc) |
virtual function mapping to the specific main for each tool More... | |
Private Attributes | |
bool | write_positions_first |
bool | write_statistics_first |
int | write_statistics_last_time_reopened |
FILE * | write_statistics_fp |
Definition at line 76 of file SimpleMD.cpp.
|
inline |
Definition at line 107 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 233 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 314 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 279 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 251 of file SimpleMD.cpp.
|
inlineprivatevirtual |
virtual function returning a one-line descriptor for the tool
Reimplemented from PLMD::CLTool.
Definition at line 79 of file SimpleMD.cpp.
|
protectedinherited |
Crash the command line tool with an error.
Definition at line 206 of file CLTool.cpp.
|
inlineinherited |
|
inlineprivatevirtual |
virtual function mapping to the specific main for each tool
Implements PLMD::CLTool.
Definition at line 403 of file SimpleMD.cpp.
|
protectedinherited |
|
protectedinherited |
Find out whether one of the command line flags is present or not.
Definition at line 51 of file CLTool.cpp.
|
protectedinherited |
|
inlineprivate |
Definition at line 226 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 220 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 120 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 190 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 201 of file SimpleMD.cpp.
|
inherited |
Read the arguments from the command line.
Definition at line 60 of file CLTool.cpp.
|
inlinestatic |
Definition at line 90 of file SimpleMD.cpp.
|
inlineinherited |
|
inlineprivate |
Definition at line 324 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 365 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 341 of file SimpleMD.cpp.
|
inlineprivate |
Definition at line 384 of file SimpleMD.cpp.
enum { ... } PLMD::CLTool::inputdata |
How is the input specified on the command line or in an input file.
|
private |
Definition at line 83 of file SimpleMD.cpp.
|
private |
Definition at line 84 of file SimpleMD.cpp.
|
private |
Definition at line 86 of file SimpleMD.cpp.
|
private |
Definition at line 85 of file SimpleMD.cpp.
Hosted by GitHub
![]() |
![]() |