MPQC 2.3.1
sc::ExEnv Class Reference

The ExEnv class is used to find out about how the program is being run. More...

#include <exenv.h>

Static Public Member Functions

static void init (int &argcref, char **&argvref)
 Set the argument count and vector.
static int initialized ()
 Return nonzero if ExEnv has been initialized.
static int & argc ()
 Return an reference to the argument count.
static char **& argv ()
 Return an reference to the argument vector.
static const char * program_name ()
 Return argv[0] with the path removed.
static const char * hostname ()
 Return the host name.
static const char * username ()
 Return the user name.
static void set_out (std::ostream *o)
static std::ostream & outn ()
 Return an ostream that writes from all nodes.
static std::ostream & errn ()
 Return an ostream for error messages that writes from all nodes.
static std::ostream & out0 ()
 Return an ostream that writes from node 0.
static std::ostream & err0 ()
 Return an ostream for error messages that writes from node 0.
static size_t memory ()
 The amount of memory on this node.
static int nproc ()
 The number of processors on this node.

Static Protected Attributes

static int initialized_
static int * argc_
static char *** argv_
static char hostname_ [256]
static char username_ [9]
static size_t mem_
static int nproc_
static std::ostream * out_
static std::ostream * nullstream_

Detailed Description

The ExEnv class is used to find out about how the program is being run.

Member Function Documentation

◆ err0()

◆ errn()

std::ostream & sc::ExEnv::errn ( )
inlinestatic

Return an ostream for error messages that writes from all nodes.

References outn().

◆ out0()

std::ostream & sc::ExEnv::out0 ( )
static

Return an ostream that writes from node 0.

Referenced by sc::RefSymmSCMatrix::accumulate_transform(), sc::Molecule::cleanup_molecule(), sc::RefDiagSCMatrix::clone(), sc::RefSCMatrix::clone(), sc::BlockedDiagSCMatrix::element_op(), sc::BlockedSCMatrix::element_op(), sc::BlockedSCVector::element_op(), sc::BlockedSymmSCMatrix::element_op(), sc::DistSCMatrix::element_op(), sc::DistSCVector::element_op(), sc::LocalDiagSCMatrix::element_op(), sc::LocalSCMatrix::element_op(), sc::LocalSCVector::element_op(), sc::LocalSymmSCMatrix::element_op(), sc::ReplDiagSCMatrix::element_op(), sc::ReplSCMatrix::element_op(), sc::ReplSCVector::element_op(), sc::ReplSymmSCMatrix::element_op(), err0(), sc::StateIn::list_objects(), sc::TwoBodyMOIntsTransform::memory_report(), sc::TwoBodyMOIntsTransform::mospace_report(), sc::RefSCDimension::operator int(), sc::ActiveMsgMemoryGrp::print(), sc::Appearance::print(), sc::ARMCIMemoryGrp::print(), sc::CartMolecularCoor::print(), sc::CharacterTable::print(), sc::CLHF::print(), sc::CLKS::print(), sc::CLSCF::print(), sc::DiagSCMatrix::print(), sc::DIIS::print(), sc::EulerMaclaurinRadialIntegrator::print(), sc::FileGrp::print(), sc::Function::print(), sc::GaussianBasisSet::print(), sc::GaussianShell::print(), sc::GaussLegendreAngularIntegrator::print(), sc::HSOSHF::print(), sc::HSOSKS::print(), sc::HSOSSCF::print(), sc::IntCoor::print(), sc::IntCoorGen::print(), sc::IntMolecularCoor::print(), sc::IrreducibleRepresentation::print(), sc::LebedevLaikovIntegrator::print(), sc::Material::print(), sc::MBPT2::print(), sc::MBPT2_R12::print(), sc::MemoryGrp::print(), sc::MOIndexSpace::print(), sc::MolecularCoor::print(), sc::MolecularEnergy::print(), sc::Molecule::print(), sc::MP2R12Energy::print(), sc::OneBodyWavefunction::print(), sc::OSSHF::print(), sc::OSSSCF::print(), sc::ParallelRegionTimer::print(), sc::PointGroup::print(), sc::PsiExEnv::print(), sc::PsiWavefunction::print(), sc::RadialAngularIntegrator::print(), sc::RDMAMemoryGrp::print(), sc::RegionTimer::print(), sc::RenderedObject::print(), sc::SCBlockInfo::print(), sc::SCDimension::print(), sc::SCF::print(), sc::SCMatrix::print(), sc::SCVector::print(), sc::ShmMemoryGrp::print(), sc::SphereShape::print(), sc::StdDenFunctional::print(), sc::SumDenFunctional::print(), sc::SymmetryOperation::print(), sc::SymmMolecularCoor::print(), sc::SymmSCMatrix::print(), sc::SymRep::print(), sc::TaylorMolecularEnergy::print(), sc::TCHF::print(), sc::TCSCF::print(), sc::Transform::print(), sc::TriangulatedSurface::print(), sc::TwoBodyGrid::print(), sc::UHF::print(), sc::UKS::print(), sc::UncappedTorusHoleShape::print(), sc::UnrestrictedSCF::print(), sc::Wavefunction::print(), sc::XalphaFunctional::print(), sc::GaussianBasisSet::print_brief(), sc::SetIntCoor::print_details(), sc::SimpleCo::print_details(), sc::SumIntCoor::print_details(), sc::TwoBodyMOIntsTransform::print_footer(), sc::TwoBodyMOIntsTransform::print_header(), sc::MolecularEnergy::print_natom_3(), sc::KeyVal::print_unseen(), sc::ParsedKeyVal::print_unseen(), and sc::RefSCVector::symmetric_outer_product().

◆ outn()

std::ostream & sc::ExEnv::outn ( )
inlinestatic

Return an ostream that writes from all nodes.

Referenced by errn().


The documentation for this class was generated from the following file:

Generated at for MPQC 2.3.1 using the documentation package Doxygen 1.18.0.