11 #include "AMRLevelPlutoFactory.H"
13 #include "NamespaceHeader.H"
15 AMRLevelPlutoFactory::AMRLevelPlutoFactory()
21 AMRLevelPlutoFactory::~AMRLevelPlutoFactory()
23 if (m_patchPluto != NULL)
32 void AMRLevelPlutoFactory::define(
const Real& a_cfl,
33 const Real& a_domainLength,
34 const int& a_verbosity,
35 const Real& a_refineThresh,
36 const int& a_tagBufferSize,
37 const Real& a_initialDtMultiplier,
38 const PatchPluto*
const a_patchPluto)
44 m_domainLength = a_domainLength;
47 m_verbosity = a_verbosity;
50 m_refineThresh = a_refineThresh;
53 m_tagBufferSize = a_tagBufferSize;
56 m_initialDtMultiplier = a_initialDtMultiplier;
59 if (m_patchPluto != NULL)
67 m_patchPluto = a_patchPluto->new_patchPluto();
73 AMRLevel* AMRLevelPlutoFactory::new_amrlevel()
const
76 CH_assert(isDefined());
79 AMRLevelPluto* amrGodPtr =
new AMRLevelPluto();
82 amrGodPtr->defineParams(m_cfl,
87 m_initialDtMultiplier,
91 return (static_cast <AMRLevel*> (amrGodPtr));
95 bool AMRLevelPlutoFactory::isDefined()
const
100 #include "NamespaceFooter.H"