MADNESS 0.10.1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
madness::MetaDataResults Class Reference

holds metadata of the calculation More...

#include <Results.h>

Inheritance diagram for madness::MetaDataResults:
Inheritance graph
[legend]
Collaboration diagram for madness::MetaDataResults:
Collaboration graph
[legend]

Public Member Functions

 MetaDataResults (World &world)
 
std::string key () const override
 
void stop ()
 
nlohmann::json to_json () const override
 serialize the results to a JSON object
 
- Public Member Functions inherited from madness::ResultsBase
 ResultsBase ()=default
 
virtual ~ResultsBase ()=default
 
virtual void from_json (const nlohmann::json &j)=0
 

Public Attributes

std::string finished_at
 
std::string git_hash
 
std::string host
 
int mpi_size = -1
 
int nthreads = -1
 
double time_begin = 0.0
 
double time_end = 0.0
 

Private Member Functions

std::string time_tag () const
 borrowed from Adrian's MolDFTLib
 

Detailed Description

holds metadata of the calculation

create right before the calculation starts, stop() must be called after the calculation is finished

Constructor & Destructor Documentation

◆ MetaDataResults()

madness::MetaDataResults::MetaDataResults ( World world)
inlineexplicit

Member Function Documentation

◆ key()

std::string madness::MetaDataResults::key ( ) const
inlineoverridevirtual

Implements madness::ResultsBase.

◆ stop()

void madness::MetaDataResults::stop ( )
inline

◆ time_tag()

std::string madness::MetaDataResults::time_tag ( ) const
inlineprivate

borrowed from Adrian's MolDFTLib

References madness::nonlinear_vector_solver().

Referenced by stop(), and to_json().

◆ to_json()

nlohmann::json madness::MetaDataResults::to_json ( ) const
inlineoverridevirtual

Member Data Documentation

◆ finished_at

std::string madness::MetaDataResults::finished_at

Referenced by stop(), and to_json().

◆ git_hash

std::string madness::MetaDataResults::git_hash

Referenced by to_json().

◆ host

std::string madness::MetaDataResults::host

◆ mpi_size

int madness::MetaDataResults::mpi_size = -1

Referenced by MetaDataResults(), and to_json().

◆ nthreads

int madness::MetaDataResults::nthreads = -1

◆ time_begin

double madness::MetaDataResults::time_begin = 0.0

Referenced by MetaDataResults(), and to_json().

◆ time_end

double madness::MetaDataResults::time_end = 0.0

Referenced by stop(), and to_json().


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