ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_EBStruct.H
Go to the documentation of this file.
1 #ifndef ERF_EB_STRUCT_H_
2 #define ERF_EB_STRUCT_H_
3 
4 #include <string>
5 #include <iostream>
6 
7 #include <AMReX_ParmParse.H>
8 #include <AMReX_Print.H>
9 #include <AMReX_Gpu.H>
10 
11 enum struct EBBoundaryType {
13 };
14 
15 /**
16  * Container holding EB-related choices
17  */
18 
19 struct EBChoice {
20  public:
21  void init_params(std::string pp_prefix)
22  {
23  amrex::ParmParse pp(pp_prefix);
24 
25  static std::string eb_boundary_type_string = "NoSlipWall";
26  pp.query("eb_boundary_type",eb_boundary_type_string);
27 
28  if (!eb_boundary_type_string.compare("SlipWall")) {
30  } else if (!eb_boundary_type_string.compare("NoSlipWall")) {
32  } else {
33  amrex::Error("Don't know this eb_boundary_type");
34  }
35  }
36 
37  void display()
38  {
39  amrex::Print() << "EB choices: " << std::endl;
41  amrex::Print() << " eb_boundary_type : SlipWall" << std::endl;
43  amrex::Print() << " eb_boundary_type : NoSlipWall" << std::endl;
44  }
45  }
46 
48 };
49 #endif
EBBoundaryType
Definition: ERF_EBStruct.H:11
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real pp(amrex::Real y)
Definition: ERF_MicrophysicsUtils.H:233
Definition: ERF_EBStruct.H:19
void init_params(std::string pp_prefix)
Definition: ERF_EBStruct.H:21
void display()
Definition: ERF_EBStruct.H:37
EBBoundaryType eb_boundary_type
Definition: ERF_EBStruct.H:47