Block-Structured AMR Software Framework
amrex::EB2::ChkptFile Class Reference

#include <AMReX_EB_chkpt_file.H>

Public Member Functions

 ChkptFile (std::string fname)
 
void read_from_chkpt_file (BoxArray &cut_grids, BoxArray &covered_grids, DistributionMapping &dmap, MultiFab &volfrac, MultiFab &centroid, MultiFab &bndryarea, MultiFab &bndrycent, MultiFab &bndrynorm, Array< MultiFab, AMREX_SPACEDIM > &areafrac, Array< MultiFab, AMREX_SPACEDIM > &facecent, Array< MultiFab, AMREX_SPACEDIM > &edgecent, MultiFab &levelset, int ng_gfab, const Geometry &geom, const IntVect &ngrow_finest, bool extend_domain_face, int max_grid_size) const
 
void write_to_chkpt_file (const BoxArray &cut_grids, const BoxArray &covered_grids, const MultiFab &volfrac, const MultiFab &centroid, const MultiFab &bndryarea, const MultiFab &bndrycent, const MultiFab &bndrynorm, const Array< MultiFab, AMREX_SPACEDIM > &areafrac, const Array< MultiFab, AMREX_SPACEDIM > &facecent, const Array< MultiFab, AMREX_SPACEDIM > &edgecent, const MultiFab &levelset, const Geometry &geom, const IntVect &ngrow, bool extend_domain_face, int max_grid_size) const
 

Private Member Functions

void writeHeader (const BoxArray &cut_ba, const BoxArray &covered_ba, const Geometry &geom, const IntVect &ngrow, bool extend_domain_face, int max_grid_size) const
 
void writeToFile (const MultiFab &mf, const std::string &mf_name) const
 

Private Attributes

std::string m_restart_file
 
std::string m_volfrac_name = "volfrac"
 
std::string m_centroid_name = "centroid"
 
std::string m_bndryarea_name = "bndryarea"
 
std::string m_bndrycent_name = "bndrycent"
 
std::string m_bndrynorm_name = "bndrynorm"
 
std::string m_levelset_name = "levelset"
 
amrex::Vector< std::string > m_areafrac_name = {AMREX_D_DECL("areafrac_x", "areafrac_y", "areafrac_z")}
 
amrex::Vector< std::string > m_facecent_name = {AMREX_D_DECL("facecent_x", "facecent_y", "facecent_z")}
 
amrex::Vector< std::string > m_edgecent_name = {AMREX_D_DECL("edgecent_x", "edgecent_y", "edgecent_z")}
 

Constructor & Destructor Documentation

◆ ChkptFile()

amrex::EB2::ChkptFile::ChkptFile ( std::string  fname)

Member Function Documentation

◆ read_from_chkpt_file()

void amrex::EB2::ChkptFile::read_from_chkpt_file ( BoxArray cut_grids,
BoxArray covered_grids,
DistributionMapping dmap,
MultiFab volfrac,
MultiFab centroid,
MultiFab bndryarea,
MultiFab bndrycent,
MultiFab bndrynorm,
Array< MultiFab, AMREX_SPACEDIM > &  areafrac,
Array< MultiFab, AMREX_SPACEDIM > &  facecent,
Array< MultiFab, AMREX_SPACEDIM > &  edgecent,
MultiFab levelset,
int  ng_gfab,
const Geometry geom,
const IntVect ngrow_finest,
bool  extend_domain_face,
int  max_grid_size 
) const

◆ write_to_chkpt_file()

void amrex::EB2::ChkptFile::write_to_chkpt_file ( const BoxArray cut_grids,
const BoxArray covered_grids,
const MultiFab volfrac,
const MultiFab centroid,
const MultiFab bndryarea,
const MultiFab bndrycent,
const MultiFab bndrynorm,
const Array< MultiFab, AMREX_SPACEDIM > &  areafrac,
const Array< MultiFab, AMREX_SPACEDIM > &  facecent,
const Array< MultiFab, AMREX_SPACEDIM > &  edgecent,
const MultiFab levelset,
const Geometry geom,
const IntVect ngrow,
bool  extend_domain_face,
int  max_grid_size 
) const

◆ writeHeader()

void amrex::EB2::ChkptFile::writeHeader ( const BoxArray cut_ba,
const BoxArray covered_ba,
const Geometry geom,
const IntVect ngrow,
bool  extend_domain_face,
int  max_grid_size 
) const
private

◆ writeToFile()

void amrex::EB2::ChkptFile::writeToFile ( const MultiFab mf,
const std::string &  mf_name 
) const
private

Member Data Documentation

◆ m_areafrac_name

amrex::Vector<std::string> amrex::EB2::ChkptFile::m_areafrac_name = {AMREX_D_DECL("areafrac_x", "areafrac_y", "areafrac_z")}
private

◆ m_bndryarea_name

std::string amrex::EB2::ChkptFile::m_bndryarea_name = "bndryarea"
private

◆ m_bndrycent_name

std::string amrex::EB2::ChkptFile::m_bndrycent_name = "bndrycent"
private

◆ m_bndrynorm_name

std::string amrex::EB2::ChkptFile::m_bndrynorm_name = "bndrynorm"
private

◆ m_centroid_name

std::string amrex::EB2::ChkptFile::m_centroid_name = "centroid"
private

◆ m_edgecent_name

amrex::Vector<std::string> amrex::EB2::ChkptFile::m_edgecent_name = {AMREX_D_DECL("edgecent_x", "edgecent_y", "edgecent_z")}
private

◆ m_facecent_name

amrex::Vector<std::string> amrex::EB2::ChkptFile::m_facecent_name = {AMREX_D_DECL("facecent_x", "facecent_y", "facecent_z")}
private

◆ m_levelset_name

std::string amrex::EB2::ChkptFile::m_levelset_name = "levelset"
private

◆ m_restart_file

std::string amrex::EB2::ChkptFile::m_restart_file
private

◆ m_volfrac_name

std::string amrex::EB2::ChkptFile::m_volfrac_name = "volfrac"
private

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