PSCF v1.5.0
pscf_1d.cpp
Go to the documentation of this file.
1
2
3/*
4* PSCF - Polymer Self-Consistent Field
5*
6* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
7* Distributed under the terms of the GNU General Public License.
8*/
9
10#include <r1/system/System.h>
11
20int main(int argc, char **argv)
21{
22 Pscf::R1::System system;
23
24 // Process command line options
25 system.setOptions(argc, argv);
26
27 // Read parameters from default parameter file
28 system.readParam();
29
30 // Read command script to run system. Exit status 1 if a command
31 // failed (e.g., an ITERATE command that did not converge).
32 return system.readCommands();
33}
Main class in SCFT simulation of one system.
void setOptions(int argc, char **argv)
Process command line options.
int readCommands(std::istream &in)
Read command script.
virtual void readParam(std::istream &in)
Read input parameters (with opening and closing lines).
int main(int argc, char **argv)
Main function for pscf_1d program.
Definition pscf_1d.cpp:20