MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
mpqcinit.h
1
2#ifndef _mpqcinit_h
3#define _mpqcinit_h
4
5#include <mpqc_config.h>
6#include <util/options/GetLongOpt.h>
7#include <util/keyval/keyval.h>
8#include <util/group/message.h>
9#include <util/group/thread.h>
10#include <util/group/memory.h>
11#include <string>
12
13namespace sc {
14
17
21 class MPQCInit {
22 GetLongOpt& opt_;
23 char **argv_;
24 int &argc_;
25
27 static MPQCInit* instance_;
28
29 public:
30
38 MPQCInit(GetLongOpt&opt, int &argc, char **argv);
39
40 ~MPQCInit();
41
43 static MPQCInit* instance() { return instance_; }
44
46 void init_fp();
53 const std::string &filename);
54
59
71 void init_timer(const Ref<MessageGrp> &grp, Ref<KeyVal> keyval = Ref<KeyVal>());
73
77 void init_basename(const std::string &input_filename,
78 const std::string &output_filename = "");
82 sc::Ref<sc::KeyVal> init(const std::string &input_filename,
83 const std::string &output_filename = "");
84
85
86 private:
89 void finalize();
90
91 };
92
94 // end of addtogroup Init
95
96}
97
98#endif
Parse command line options.
Definition GetLongOpt.h:16
This helper class simplifies initialization of MPQC.
Definition mpqcinit.h:21
sc::Ref< sc::MessageGrp > init_messagegrp()
Return the initial MessageGrp object.
void init_limits()
Initialize the resource limits.
void init_resources(Ref< KeyVal > keyval=Ref< KeyVal >())
Initialize the default ConsumableResources object.
sc::Ref< sc::ThreadGrp > init_threadgrp(Ref< sc::KeyVal > keyval=Ref< KeyVal >())
Return the initial ThreadGrp.
void init_integrals(Ref< KeyVal > keyval=Ref< KeyVal >())
Initialize the default integral factory.
sc::Ref< sc::KeyVal > init(const std::string &input_filename, const std::string &output_filename="")
Calls all of the initialize routines in the proper sequence.
void init_io(const sc::Ref< sc::MessageGrp > &grp)
Initialize formatted I/O.
static MPQCInit * instance()
returns ptr to the only instance of this object; 0 if has not been constructed
Definition mpqcinit.h:43
void init_timer(const Ref< MessageGrp > &grp, Ref< KeyVal > keyval=Ref< KeyVal >())
Initialize the default region timer.
sc::Ref< sc::KeyVal > init_keyval(const sc::Ref< sc::MessageGrp > &grp, const std::string &filename)
Return the initial KeyVal object.
MPQCInit(GetLongOpt &opt, int &argc, char **argv)
Create the initializer.
sc::Ref< sc::MemoryGrp > init_memorygrp(Ref< sc::KeyVal > keyval=Ref< KeyVal >())
Return the initial MemoryGrp.
void init_basename(const std::string &input_filename, const std::string &output_filename="")
Initialize the name used to construct data file names.
void init_fp()
Initialize the floating point control word.
A template class that maintains references counts.
Definition ref.h:361
Contains all MPQC code up to version 3.
Definition mpqcin.h:14

Generated at Wed Sep 25 2024 02:45:28 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.