OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <DiscConfig.h>
Classes | |
struct | NodeData |
struct | SMPData |
Public Member Functions | |
DiscConfig (const char *, const char *, bool) | |
~DiscConfig () | |
bool | ok () const |
const std::string & | getConfigFile () const |
unsigned int | numSMPs () const |
unsigned int | fileSMPs () const |
unsigned int | mySMP () const |
unsigned int | getSMPIndex () const |
unsigned int | getSMPIndex (const std::string &smpname) const |
const std::string & | getSMPHost () const |
const std::string & | getSMPHost (unsigned int smp) const |
unsigned int | getNumSMPNodes () const |
unsigned int | getNumSMPNodes (unsigned int smp) const |
unsigned int | getSMPNode (unsigned int n) const |
unsigned int | getSMPNode (unsigned int smp, unsigned int n) const |
unsigned int | getSMPBox0 () const |
unsigned int | getSMPBox0 (unsigned int smp) const |
unsigned int | getNumFiles () const |
unsigned int | getNumFiles (unsigned int smp) const |
const std::string & | getFilename (unsigned int fn) const |
const std::string & | getFilename (unsigned int smp, unsigned int fn) const |
unsigned int | getNumOtherSMP () const |
unsigned int | getNumOtherSMP (unsigned int smp) const |
unsigned int | getOtherSMP (unsigned int sn) const |
unsigned int | getOtherSMP (unsigned int smp, unsigned int sn) const |
unsigned int | pNodesPerSMP (unsigned int node) const |
unsigned int | getNumNodes () const |
unsigned int | getNodeSMPIndex (unsigned int n) const |
const std::string & | getNodeHost (unsigned int n) const |
void | printDebug (Inform &) |
Static Public Member Functions | |
static int | dc_tokenize_string (const char *s, const char *tok, std::string *&) |
Private Member Functions | |
std::string | replace_wildcards (const std::string &s, const std::string &machine) |
void | add_SMP_directory (SMPData *&, const std::string &s, const std::string &m, bool) |
bool | parse_config (const char *, bool) |
Private Attributes | |
std::string | ConfigFile |
unsigned int | NumSMPs |
unsigned int | FileSMPs |
unsigned int | MySMP |
bool | ConfigOK |
vmap< std::string, SMPData * > | SMPMap |
std::vector< SMPData * > | SMPList |
std::vector< NodeData * > | NodeList |
Definition at line 58 of file DiscConfig.h.
DiscConfig::DiscConfig | ( | const char * | config, |
const char * | BaseFile, | ||
bool | WritingFile | ||
) |
Definition at line 81 of file DiscConfig.cpp.
References IpplInfo::abort(), ConfigFile, ConfigOK, endl(), ERRORMSG, and parse_config().
DiscConfig::~DiscConfig | ( | ) |
Definition at line 100 of file DiscConfig.cpp.
|
private |
Definition at line 234 of file DiscConfig.cpp.
References DiscConfig::SMPData::BaseFileName, DiscConfig::SMPData::BaseFileNameStringList, DiscConfig::SMPData::BaseFileNum, DiscConfig::SMPData::Box0Node, dc_tokenize_string(), endl(), IpplInfo::getNodes(), DiscConfig::SMPData::HostName, replace_wildcards(), SMPMap, and WARNMSG.
Referenced by parse_config().
|
static |
Definition at line 46 of file DiscConfig.cpp.
Referenced by add_SMP_directory(), parse_config(), and DiscMeta::read_meta_line().
|
inline |
Definition at line 81 of file DiscConfig.h.
References FileSMPs.
Referenced by DiscField< Dim >::fileSMPs(), printDebug(), DiscParticle::read_meta(), and DiscParticle::write_meta().
|
inline |
|
inline |
Definition at line 125 of file DiscConfig.h.
References getFilename(), and MySMP.
Referenced by getFilename(), printDebug(), DiscField< Dim >::read(), DiscParticle::read(), DiscParticle::read_meta(), DiscField< Dim >::read_offset(), DiscField< Dim >::write(), DiscParticle::write(), and DiscParticle::write_meta().
|
inline |
Definition at line 128 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 162 of file DiscConfig.h.
References Hypervolume::n, and NodeList.
Referenced by printDebug().
|
inline |
Definition at line 157 of file DiscConfig.h.
References Hypervolume::n, and NodeList.
Referenced by DiscField< Dim >::distribute_offsets(), and printDebug().
|
inline |
Definition at line 119 of file DiscConfig.h.
References getNumFiles(), and MySMP.
Referenced by getNumFiles(), DiscField< Dim >::numFiles(), pNodesPerSMP(), printDebug(), DiscParticle::printDebug(), DiscParticle::read(), DiscParticle::read_meta(), and DiscParticle::write_meta().
|
inline |
Definition at line 120 of file DiscConfig.h.
References SMPList.
|
inline |
|
inline |
Definition at line 133 of file DiscConfig.h.
References getNumOtherSMP(), and MySMP.
Referenced by getNumOtherSMP(), printDebug(), DiscParticle::read_meta(), and DiscParticle::write().
|
inline |
Definition at line 134 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 101 of file DiscConfig.h.
References getNumSMPNodes(), and MySMP.
Referenced by DiscField< Dim >::distribute_offsets(), getNumSMPNodes(), printDebug(), DiscParticle::read_meta(), and DiscParticle::write().
|
inline |
Definition at line 102 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 142 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 139 of file DiscConfig.h.
References getOtherSMP(), and MySMP.
Referenced by getOtherSMP(), printDebug(), DiscParticle::read_meta(), and DiscParticle::write().
|
inline |
Definition at line 113 of file DiscConfig.h.
References getSMPBox0(), and MySMP.
Referenced by getSMPBox0(), DiscField< Dim >::myBox0(), printDebug(), DiscParticle::read(), DiscParticle::read_meta(), DiscParticle::write(), and DiscParticle::write_meta().
|
inline |
Definition at line 114 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 95 of file DiscConfig.h.
References getSMPHost(), and MySMP.
Referenced by getSMPHost(), and printDebug().
|
inline |
Definition at line 96 of file DiscConfig.h.
References SMPList.
|
inline |
Definition at line 89 of file DiscConfig.h.
References MySMP.
|
inline |
Definition at line 90 of file DiscConfig.h.
References SMPMap.
|
inline |
Definition at line 107 of file DiscConfig.h.
References getSMPNode(), MySMP, and Hypervolume::n.
Referenced by DiscField< Dim >::distribute_offsets(), getSMPNode(), printDebug(), and DiscParticle::read_meta().
|
inline |
Definition at line 108 of file DiscConfig.h.
References Hypervolume::n, and SMPList.
|
inline |
Definition at line 82 of file DiscConfig.h.
References MySMP.
Referenced by DiscField< Dim >::mySMP(), printDebug(), and DiscParticle::read_meta().
|
inline |
Definition at line 80 of file DiscConfig.h.
References NumSMPs.
Referenced by DiscField< Dim >::numSMPs(), and printDebug().
|
inline |
Definition at line 73 of file DiscConfig.h.
References ConfigOK.
Referenced by DiscParticle::initialize().
|
private |
Definition at line 297 of file DiscConfig.cpp.
References IpplInfo::abort(), add_SMP_directory(), DiscConfig::SMPData::BaseFileNum, DiscConfig::SMPData::Box0Node, Communicate::broadcast_others(), IpplInfo::Comm, COMM_ANY_NODE, ConfigFile, dc_tokenize_string(), DF_MAKE_HOST_MAP_TAG, DF_TAG_CYCLE, endl(), ERRORMSG, FileSMPs, getMessage(), IpplInfo::getNodes(), DiscConfig::SMPData::HostName, IpplInfo::myNode(), MySMP, name, TagMaker::next_tag(), DiscConfig::SMPData::NodeList, NodeList, NumSMPs, PAssert, PAssert_EQ, putMessage(), Communicate::receive_block(), Communicate::send(), DiscConfig::SMPData::SMPIndex, SMPList, SMPMap, and WARNMSG.
Referenced by DiscConfig().
unsigned int DiscConfig::pNodesPerSMP | ( | unsigned int | node | ) | const |
Definition at line 123 of file DiscConfig.cpp.
References getNumFiles(), NodeList, and SMPList.
Referenced by DiscField< Dim >::pNodesPerSMP().
void DiscConfig::printDebug | ( | Inform & | msg | ) |
Definition at line 533 of file DiscConfig.cpp.
References endl(), fileSMPs(), getConfigFile(), getFilename(), getNodeHost(), getNodeSMPIndex(), getNumFiles(), getNumNodes(), getNumOtherSMP(), getNumSMPNodes(), getOtherSMP(), getSMPBox0(), getSMPHost(), getSMPNode(), IpplInfo::myNode(), mySMP(), Hypervolume::n, and numSMPs().
Referenced by DiscParticle::printDebug().
|
private |
Definition at line 150 of file DiscConfig.cpp.
References IpplInfo::abort(), endl(), ERRORMSG, and IpplInfo::myNode().
Referenced by add_SMP_directory().
|
private |
Definition at line 205 of file DiscConfig.h.
Referenced by DiscConfig(), getConfigFile(), and parse_config().
|
private |
Definition at line 215 of file DiscConfig.h.
Referenced by DiscConfig(), and ok().
|
private |
Definition at line 210 of file DiscConfig.h.
Referenced by fileSMPs(), and parse_config().
|
private |
Definition at line 211 of file DiscConfig.h.
Referenced by getFilename(), getNumFiles(), getNumOtherSMP(), getNumSMPNodes(), getOtherSMP(), getSMPBox0(), getSMPHost(), getSMPIndex(), getSMPNode(), mySMP(), and parse_config().
|
private |
Definition at line 222 of file DiscConfig.h.
Referenced by getNodeHost(), getNodeSMPIndex(), getNumNodes(), parse_config(), pNodesPerSMP(), and ~DiscConfig().
|
private |
Definition at line 209 of file DiscConfig.h.
Referenced by numSMPs(), and parse_config().
|
private |
Definition at line 221 of file DiscConfig.h.
Referenced by getFilename(), getNumFiles(), getNumOtherSMP(), getNumSMPNodes(), getOtherSMP(), getSMPBox0(), getSMPHost(), getSMPNode(), parse_config(), pNodesPerSMP(), and ~DiscConfig().
Definition at line 220 of file DiscConfig.h.
Referenced by add_SMP_directory(), getSMPIndex(), and parse_config().