00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _AMR_LEVEL_SELFGRAVITY_FACTORY_H_
00029 #define _AMR_LEVEL_SELFGRAVITY_FACTORY_H_
00030
00031 #include "AMRLevelFactory.H"
00032 #include "AMRLevelSelfGravity.H"
00033
00035 class AMRLevelSelfGravityFactory : public AMRLevelFactory
00036 {
00037 public:
00039 AMRLevelSelfGravityFactory();
00040
00042 virtual AMRLevel* new_amrlevel() const;
00043
00045 virtual ~AMRLevelSelfGravityFactory();
00046
00048 virtual void define(const Real& a_cfl,
00049 const Real& a_domainLength,
00050 const int& a_verbosity,
00051 const int& a_tagBufferSize,
00052 const int& a_maxInitRefLevel,
00053 const Real& a_initialDtMultiplier,
00054 const GodunovPhysics* const a_godunovPhysics,
00055 const int& a_normalPredOrder,
00056 const bool& a_useFourthOrderSlopes,
00057 const bool& a_usePrimLimiting,
00058 const bool& a_useCharLimiting,
00059 const bool& a_useFlattening,
00060 const bool& a_useArtificialViscosity,
00061 const Real& a_artificialViscosity,
00062 const RefCellTagger* const a_refCellTagger,
00063 const LevelOp* const a_poissonOp,
00064 const bool& a_useDeltaPhiCorr,
00065 const StencilType& a_stencil,
00066 const CodeUnits& a_codeUnits);
00067
00069 bool isDefined() const;
00070
00071 protected:
00072
00073 void setDefaultValues();
00074
00075
00076 int m_verbosity;
00077
00078
00079 Real m_cfl;
00080
00081
00082 Real m_domainLength;
00083
00084
00085 int m_maxInitRefLevel;
00086
00087
00088 int m_tagBufferSize;
00089
00090
00091 Real m_initialDtMultiplier;
00092
00093
00094 int m_normalPredOrder;
00095
00096
00097 bool m_useFourthOrderSlopes;
00098
00099
00100 bool m_usePrimLimiting;
00101 bool m_useCharLimiting;
00102
00103
00104 bool m_useFlattening;
00105
00106
00107 bool m_useArtificialViscosity;
00108 Real m_artificialViscosity;
00109
00110
00111 StencilType m_stencil;
00112
00113
00114 bool m_useDeltaPhiCorr;
00115
00116
00117 CodeUnits m_units;
00118
00119
00120
00121 const GodunovPhysics* m_godunovPhysics;
00122
00123
00124 const LevelOp* m_poissonOp;
00125
00126
00127 const RefCellTagger* m_refCellTagger;
00128
00129
00130 bool m_isDefined;
00131
00132 private:
00133
00134 void operator=(const AMRLevelSelfGravityFactory& a_input)
00135 {
00136 MayDay::Error("invalid operator");
00137 }
00138
00139
00140 AMRLevelSelfGravityFactory(const AMRLevelSelfGravityFactory& a_input)
00141 {
00142 MayDay::Error("invalid operator");
00143 }
00144 };
00145
00146 #endif