Simpatico  v1.10
modules/sliplink/mcSim.cpp
1 /*
2 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
3 *
4 * Copyright 2010 - 2014, The Regents of the University of Minnesota
5 * Distributed under the terms of the GNU General Public License.
6 */
7 
8 #include <mcMd/mcSimulation/McSimulation.h>
9 #include "SliplinkMcModule.h"
10 
44 int main(int argc, char **argv)
45 {
46  #ifdef UTIL_MPI
47  MPI::Init();
48  McMd::McSimulation simulation(MPI::COMM_WORLD);
49  #else
50  McMd::McSimulation simulation;
51  #endif
52 
53  // Add Module
54  McMd::SliplinkMcModule sliplinkMcModule(simulation);
55  sliplinkMcModule.addFactories();
56 
57  // Process command line options
58  simulation.setOptions(argc, argv);
59 
60  // Read parameters from default parameter file
61  simulation.readParam();
62 
63  // Read command script to run simulation
64  simulation.readCommands();
65 
66  #ifdef UTIL_MPI
67  MPI::Finalize();
68  #endif
69 
70  return 0;
71 }
Module for slip link simulation.
A Monte-Carlo simulation of one McSystem.
Definition: McSimulation.h:32
void readCommands(std::istream &in)
Read and execute commands from a command file input stream.
void readParam()
Read parameters from the default parameter istream.
void setOptions(int argc, char **argv)
Process command line options.