Theseus
Compressible flow solver
Loading...
Searching...
No Matches
Theseus::CheckpointConfig Class Reference

#include <CheckpointConfig.hpp>

Public Member Functions

bool LoadEnabled () const
 
bool SaveEnabled () const
 
int Cycle () const
 
double Interval () const
 
const std::filesystem::path & Directory () const
 
std::filesystem::path CycleDirectory (int cycle) const
 
std::filesystem::path MetadataFile (int cycle) const
 
std::filesystem::path RankFile (int cycle, int rank) const
 

Static Public Member Functions

static CheckpointConfig FromRuntime (const nlohmann::json &runtime, const std::filesystem::path &output_directory)
 
static nlohmann::json Metadata (double time, int cycle, const CheckpointCompatibility &compatibility)
 
static bool ValidateMetadata (const nlohmann::json &metadata, const CheckpointCompatibility &expected)
 

Member Function Documentation

◆ Cycle()

int Theseus::CheckpointConfig::Cycle ( ) const
inline

◆ CycleDirectory()

std::filesystem::path Theseus::CheckpointConfig::CycleDirectory ( int  cycle) const
inline

◆ Directory()

const std::filesystem::path & Theseus::CheckpointConfig::Directory ( ) const
inline

◆ FromRuntime()

static CheckpointConfig Theseus::CheckpointConfig::FromRuntime ( const nlohmann::json &  runtime,
const std::filesystem::path &  output_directory 
)
inlinestatic

◆ Interval()

double Theseus::CheckpointConfig::Interval ( ) const
inline

◆ LoadEnabled()

bool Theseus::CheckpointConfig::LoadEnabled ( ) const
inline

◆ Metadata()

static nlohmann::json Theseus::CheckpointConfig::Metadata ( double  time,
int  cycle,
const CheckpointCompatibility compatibility 
)
inlinestatic

◆ MetadataFile()

std::filesystem::path Theseus::CheckpointConfig::MetadataFile ( int  cycle) const
inline

◆ RankFile()

std::filesystem::path Theseus::CheckpointConfig::RankFile ( int  cycle,
int  rank 
) const
inline

◆ SaveEnabled()

bool Theseus::CheckpointConfig::SaveEnabled ( ) const
inline

◆ ValidateMetadata()

static bool Theseus::CheckpointConfig::ValidateMetadata ( const nlohmann::json &  metadata,
const CheckpointCompatibility expected 
)
inlinestatic

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