blob: 06189ac526036b5edab0dc9f13121bcb77a6045e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "WarpX.H"
#include <AMReX_Config.H>
#ifdef AMREX_USE_EB
# include <AMReX_EB2.H>
# include <AMReX_ParmParse.H>
#endif
void
WarpX::InitEB ()
{
#ifdef AMREX_USE_EB
BL_PROFILE("InitEB");
amrex::ParmParse pp("eb2");
if (!pp.contains("geom_type")) {
pp.add("geom_type", "all_regular"); // use all_regular by default
}
amrex::EB2::Build(Geom(maxLevel()), maxLevel(), maxLevel());
#endif
}
|