8#include <rpc/system/System.h>
9#include <prdc/crystal/getDimension.h>
10#include <pscf/chem/PolymerModel.h>
11#include <util/format/Int.h>
12#include <util/misc/Log.h>
13#include <util/misc/Memory.h>
29 void run(
int argc,
char **argv) {
55int main(
int argc,
char **argv)
62 int D = Pscf::Prdc::getDimension(argc, argv);
63 std::cout <<
"dimension " << D << std::endl;
75 std::cout <<
" Invalid dimension = " << D << std::endl;
79 Log::file() <<
"\nCPU heap array memory usage:";
80 Log::file() <<
"\n Maximum array memory = "
void readCommands(std::istream &in)
Read and process commands from an input stream.
virtual void readParam(std::istream &in)
Read input parameters (with opening and closing lines).
void setOptions(int argc, char **argv)
Process command line options.
A complete physical system.
Wrapper for an int, for formatted ostream output.
static std::ostream & file()
Get log ostream by reference.
static long int max()
Return the maximum amount of allocated heap memory thus far.
static long int total()
Return total amount of memory currently allocated.
void run(int argc, char **argv)
Function template for main pscf_rpc program.
int main(int argc, char **argv)
Main pscf_rpc program.
void lock()
Make the polymer model immutable.
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.
Utility classes for scientific computation.