Block-Structured AMR Software Framework
AMReX_EB2_IndexSpace_chkpt_file.H
Go to the documentation of this file.
1 #ifndef AMREX_EB2_INDEXSPACE_CHKPTFILE_H_
2 #define AMREX_EB2_INDEXSPACE_CHKPTFILE_H_
3 #include <AMReX_Config.H>
4 
5 #include <AMReX_EB2.H>
7 
8 #include <string>
9 
10 namespace amrex::EB2 {
11 
13  : public IndexSpace
14 {
15 public:
16 
17  IndexSpaceChkptFile (const ChkptFile& chkpt_file,
18  const Geometry& geom, int required_coarsening_level,
19  int max_coarsening_level, int ngrow,
20  bool build_coarse_level_by_coarsening,
21  bool extend_domain_face);
22 
25  void operator= (IndexSpaceChkptFile const&) = delete;
26  void operator= (IndexSpaceChkptFile &&) = delete;
27 
28  ~IndexSpaceChkptFile () override = default;
29 
30  [[nodiscard]] const Level& getLevel (const Geometry& geom) const final;
31  [[nodiscard]] const Geometry& getGeometry (const Box& dom) const final;
32  [[nodiscard]] const Box& coarsestDomain () const final {
33  return m_geom.back().Domain();
34  }
35  void addFineLevels (int num_new_fine_levels) final;
36  void addRegularCoarseLevels (int num_new_coarse_levels) final;
37 
38 private:
39 
44 };
45 
46 }
47 
48 #endif
Definition: AMReX_EB_chkpt_file.H:9
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:14
void addRegularCoarseLevels(int num_new_coarse_levels) final
Definition: AMReX_EB2_IndexSpace_chkpt_file.cpp:90
IndexSpaceChkptFile(IndexSpaceChkptFile const &)=delete
~IndexSpaceChkptFile() override=default
const Box & coarsestDomain() const final
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:32
IndexSpaceChkptFile(const ChkptFile &chkpt_file, const Geometry &geom, int required_coarsening_level, int max_coarsening_level, int ngrow, bool build_coarse_level_by_coarsening, bool extend_domain_face)
Definition: AMReX_EB2_IndexSpace_chkpt_file.cpp:5
IndexSpaceChkptFile(IndexSpaceChkptFile &&)=delete
Vector< Geometry > m_geom
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:41
const Level & getLevel(const Geometry &geom) const final
Definition: AMReX_EB2_IndexSpace_chkpt_file.cpp:65
Vector< ChkptFileLevel > m_chkpt_file_level
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:40
void addFineLevels(int num_new_fine_levels) final
Definition: AMReX_EB2_IndexSpace_chkpt_file.cpp:81
void operator=(IndexSpaceChkptFile const &)=delete
Vector< Box > m_domain
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:42
Vector< int > m_ngrow
Definition: AMReX_EB2_IndexSpace_chkpt_file.H:43
const Geometry & getGeometry(const Box &dom) const final
Definition: AMReX_EB2_IndexSpace_chkpt_file.cpp:73
Definition: AMReX_EB2.H:26
Definition: AMReX_EB2_Level.H:33
Rectangular problem domain geometry.
Definition: AMReX_Geometry.H:73
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_FabArrayBase.H:32
AMREX_EXPORT bool extend_domain_face
Definition: AMReX_EB2.cpp:24