Chombo + EB  3.0
ResistivityOp.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 // dtg 2007
12 
13 #ifndef _RESISTIVITYOP_H_
14 #define _RESISTIVITYOP_H_
15 
16 #include "AMRMultiGrid.H"
17 #include "REAL.H"
18 #include "Box.H"
19 #include "LevelDataOps.H"
20 #include "BCFunc.H"
21 #include "FArrayBox.H"
22 #include "FluxBox.H"
23 #include "CFIVS.H"
24 #include "TensorCFInterp.H"
25 #include "CoarseAverage.H"
26 #include "AMRTGA.H"
27 #include "NamespaceHeader.H"
28 
29 ///
30 /**
31  operator L is defined as
32  L(B) = alpha B + beta*(divF)
33  where
34  F = eta((grad B - grad B^T) + I (div B))
35  alpha and beta are constants. eta is a function of space.
36  beta and eta are incorporated into the flux F when getFlux is called.
37  This is always 3 variables. SpaceDim refers to only the derivatives
38  that are meaningful in this bizzare application.
39 */
40 class ResistivityOp : public LevelTGAHelmOp<LevelData<FArrayBox>, FluxBox>
41 {
42 public:
43 
44  virtual void setAlphaAndBeta(const Real& a_alpha,
45  const Real& a_beta)
46  {
47  m_alpha = a_alpha;
48  m_beta = a_beta;
49  setLambda();
50  }
51 
52  virtual void diagonalScale(LevelData<FArrayBox>& a_rhs, bool a_kappaWeighted)
53  {
54  diagonalScale(a_rhs);
55  }
56 
57  virtual void diagonalScale(LevelData<FArrayBox>& a_rhs)
58  {
59  //does not apply here
60  }
61 
63  {
64  //does not apply here
65  }
66 
67  ///
68  /**
69  */
70  virtual ~ResistivityOp()
71  {
72  }
73 
74  //use at thy peril
75  virtual void getFlux(FluxBox& a_flux,
76  const LevelData<FArrayBox>& a_data,
77  const Box& a_grid,
78  const DataIndex& a_dit,
79  Real a_scale);
80 
81  ///
82  /**
83  */
84  ResistivityOp(const DisjointBoxLayout& a_grids,
85  const DisjointBoxLayout& a_gridsFine,
86  const DisjointBoxLayout& a_gridsCoar,
87  const RefCountedPtr<LevelData<FluxBox> >& a_eta,
88  Real a_alpha,
89  Real a_beta,
90  int a_refToFine,
91  int a_refToCoar,
92  const ProblemDomain& a_domain,
93  const Real& a_dxLevel,
94  const Real& a_dxCoar,
95  BCFunc a_bc);
96 
97  virtual void residual( LevelData<FArrayBox>& a_lhs,
98  const LevelData<FArrayBox>& a_phi,
99  const LevelData<FArrayBox>& a_rhs,
100  bool a_homogeneous = false);
101 
102  virtual void preCond( LevelData<FArrayBox>& a_correction,
103  const LevelData<FArrayBox>& a_residual);
104 
105  virtual void applyOp( LevelData<FArrayBox>& a_lhs,
106  const LevelData<FArrayBox>& a_phi,
107  bool a_homogeneous = false);
108 
109  virtual void applyOpNoBoundary( LevelData<FArrayBox>& a_lhs,
110  const LevelData<FArrayBox>& a_phi);
111 
112  virtual void create( LevelData<FArrayBox>& a_lhs,
113  const LevelData<FArrayBox>& a_rhs);
114  virtual void createCoarsened( LevelData<FArrayBox>& a_lhs,
115  const LevelData<FArrayBox>& a_rhs,
116  const int& a_refRat);
117 
118  void reflux(const LevelData<FArrayBox>& a_phiFine,
119  const LevelData<FArrayBox>& a_phi,
121  AMRLevelOp<LevelData<FArrayBox> >* a_finerOp);
122 
123  void getFlux(FArrayBox& a_flux,
124  const FArrayBox& a_data,
125  const FArrayBox& a_gradData,
126  const FArrayBox& a_etaFace,
127  const Box& a_facebox,
128  int a_dir,
129  int ref = 1);
130 
131  /// utility function which computes operator after all bc's have been set
133  const LevelData<FArrayBox>& a_phi);
134 
135  virtual void assign( LevelData<FArrayBox>& a_lhs,
136  const LevelData<FArrayBox>& a_rhs) ;
137  virtual Real dotProduct(const LevelData<FArrayBox>& a_1,
138  const LevelData<FArrayBox>& a_2) ;
139  virtual void incr( LevelData<FArrayBox>& a_lhs,
140  const LevelData<FArrayBox>& a_x,
141  Real a_scale) ;
142  virtual void axby( LevelData<FArrayBox>& a_lhs,
143  const LevelData<FArrayBox>& a_x,
144  const LevelData<FArrayBox>& a_y,
145  Real a, Real b) ;
146 
147  virtual void scale(LevelData<FArrayBox>& a_lhs, const Real& a_scale) ;
148 
149  virtual Real norm(const LevelData<FArrayBox>& a_x, int a_ord);
150 
151  virtual void setToZero( LevelData<FArrayBox>& a_x);
152  /*@}*/
153 
154  /**
155  \name MGLevelOp functions */
156  /*@{*/
157 
158  virtual void relax(LevelData<FArrayBox>& a_e,
159  const LevelData<FArrayBox>& a_residual,
160  int iterations);
161 
162  virtual void createCoarser(LevelData<FArrayBox>& a_coarse,
163  const LevelData<FArrayBox>& a_fine,
164  bool ghosted);
165  /**
166  calculate restricted residual
167  a_resCoarse[2h] = I[h->2h] (rhsFine[h] - L[h](phiFine[h])
168  */
169  virtual void restrictResidual(LevelData<FArrayBox>& a_resCoarse,
170  LevelData<FArrayBox>& a_phiFine,
171  const LevelData<FArrayBox>& a_rhsFine);
172 
173  /**
174  correct the fine solution based on coarse correction
175  a_phiThisLevel += I[2h->h](a_correctCoarse)
176  */
177  virtual void prolongIncrement(LevelData<FArrayBox>& a_phiThisLevel,
178  const LevelData<FArrayBox>& a_correctCoarse);
179 
180  /*@}*/
181 
182  /**
183  \name AMRLevelOp functions */
184  /*@{*/
185 
186  /** returns 1 when there are no coarser AMRLevelOp objects */
187  virtual int refToCoarser()
188  {
189  return m_refToCoar;
190  }
191 
192  /** a_residual = a_rhs - L(a_phi, a_phiFine, a_phiCoarse) */
193  virtual void AMRResidual(LevelData<FArrayBox>& a_residual,
194  const LevelData<FArrayBox>& a_phiFine,
195  const LevelData<FArrayBox>& a_phi,
196  const LevelData<FArrayBox>& a_phiCoarse,
197  const LevelData<FArrayBox>& a_rhs,
198  bool a_homogeneousPhysBC,
199  AMRLevelOp<LevelData<FArrayBox> >* a_finerOp);
200 
201  /** residual assuming no more coarser AMR levels */
202 
203  virtual void AMRResidualNC(LevelData<FArrayBox>& a_residual,
204  const LevelData<FArrayBox>& a_phiFine,
205  const LevelData<FArrayBox>& a_phi,
206  const LevelData<FArrayBox>& a_rhs,
207  bool a_homogeneousPhysBC,
208  AMRLevelOp<LevelData<FArrayBox> >* a_finerOp);
209 
210  /** a_residual = a_rhs - L(a_phi, a_phiCoarse) */
211  virtual void AMRResidualNF(LevelData<FArrayBox>& a_residual,
212  const LevelData<FArrayBox>& a_phi,
213  const LevelData<FArrayBox>& a_phiCoarse,
214  const LevelData<FArrayBox>& a_rhs,
215  bool a_homogeneousPhysBC);
216 
217  /** a_resCoarse = I[h-2h]( a_residual - L(a_correction, a_coarseCorrection))
218  it is assumed that a_resCoarse has already been filled in with the coarse
219  version of AMRResidualNF and that this operation is free to overwrite
220  in the overlap regions.
221  */
222 
223  virtual void AMRRestrict(LevelData<FArrayBox>& a_resCoarse,
224  const LevelData<FArrayBox>& a_residual,
225  const LevelData<FArrayBox>& a_correction,
226  const LevelData<FArrayBox>& a_coarseCorrection);
227 
228  /** a_correction += I[h->h](a_coarseCorrection) */
229  virtual void AMRProlong(LevelData<FArrayBox>& a_correction,
230  const LevelData<FArrayBox>& a_coarseCorrection);
231 
232  /** a_residual = a_residual - L(a_correction, a_coarseCorrection) */
233  virtual void AMRUpdateResidual(LevelData<FArrayBox>& a_residual,
234  const LevelData<FArrayBox>& a_correction,
235  const LevelData<FArrayBox>& a_coarseCorrection);
236 
237  ///
238  /**
239  compute norm over all cells on coarse not covered by finer
240  */
241  virtual Real AMRNorm(const LevelData<FArrayBox>& a_coarseResid,
242  const LevelData<FArrayBox>& a_fineResid,
243  const int& a_refRat,
244  const int& a_ord);
245 
247  ///
248  /**
249  does homogeneous coarse/fine interpolation for phi
250  */
251  void
253  const DataIndex& a_datInd,
254  int a_idir,
255  Side::LoHiSide a_hiorlo);
256 
257  ///
258  /** does homogeneous coarse/fine interpolation for tangential gradient
259  (needs phi ghost cells to be filled in first, so should call
260  homogeneousCFInterpPhi first)
261  */
263  const LevelData<FArrayBox>& a_phi,
264  const DataIndex& a_datInd,
265  int a_idir,
266  Side::LoHiSide a_hiorlo);
267 
269  const DataIndex& a_datInd,
270  const int a_idir,
271  const Side::LoHiSide a_hiorlo,
272  const IntVectSet& a_interpIVS);
273  ///
274  /**
275  Apply the AMR operator, including coarse-fine matching
276  */
277  void AMROperator( LevelData<FArrayBox>& a_LofPhi,
278  const LevelData<FArrayBox>& a_phiFine,
279  const LevelData<FArrayBox>& a_phi,
280  const LevelData<FArrayBox>& a_phiCoarse,
281  bool a_homogeneousDomBC,
282  AMRLevelOp<LevelData<FArrayBox> >* a_finerOp);
283 
284  void AMROperatorNF( LevelData<FArrayBox>& a_LofPhi,
285  const LevelData<FArrayBox>& a_phi,
286  const LevelData<FArrayBox>& a_phiCoarse,
287  bool a_homogeneousBC);
288 
289  virtual void AMROperatorNC( LevelData<FArrayBox>& a_LofPhi,
290  const LevelData<FArrayBox>& a_phiFine,
291  const LevelData<FArrayBox>& a_phi,
292  bool a_homogeneousBC,
293  AMRLevelOp<LevelData<FArrayBox> >* a_finerOp);
294 
295  void cellGrad(FArrayBox& a_gradPhi,
296  const FArrayBox& a_phi,
297  const Box& a_grid);
298 
299  void cfinterp(const LevelData<FArrayBox>& a_phiFine,
300  const LevelData<FArrayBox>& a_phiCoarse);
301 
302  virtual void fillGrad(const LevelData<FArrayBox>& a_phiFine);
303 
304  void loHiCenterFace(Box& a_loBox,
305  int& a_hasLo,
306  Box& a_hiBox,
307  int& a_hasHi,
308  Box& a_centerBox,
309  const ProblemDomain& a_eblg,
310  const Box& a_inBox,
311  const int& a_dir);
312 
313  void getFaceDivAndGrad(FArrayBox& a_faceDiv,
314  FArrayBox& a_faceGrad,
315  const FArrayBox& a_data,
316  const FArrayBox& a_gradData,
317  const ProblemDomain& a_domain,
318  const Box& a_faceBox,
319  const int& a_faceDir,
320  const Real a_dx);
321 
322  ///take cell centered divergence of the inputs.
323  /**
324  not part of the operator evaluation. this is to
325  test whether the divergence of b converges at h^2
326  as b does if b is analytically divergence-free.
327  */
329  const LevelData<FArrayBox>& a_phi,
330  const LevelData<FArrayBox>* a_phiC);
331 protected:
332  void setLambda();
340 
341  //b is a scalar in 2d, vector in 3d
342  static const int s_nComp; //==3
343  static const int s_nGradComp; //==3*SpaceDim
347  //relaxation coef
353 
356  // will need these to do tangential gradient computations
360 private:
361  ///weak construction is bad
363  {
364  MayDay::Error("invalid operator");
365  }
366  //copy constructor and operator= disallowed for all the usual reasons
368  {
369  MayDay::Error("invalid operator");
370  }
371  void operator=(const ResistivityOp& a_opin)
372  {
373  MayDay::Error("invalid operator");
374  }
375 };
376 
377 ///
378 /**
379  Factory to create ResistivityOps
380  */
381 class ResistivityOpFactory: public AMRLevelOpFactory<LevelData< FArrayBox> >
382 {
383 public:
385  {
386  }
387 
389  const Vector<RefCountedPtr<LevelData<FluxBox> > >& a_eta,
390  Real a_alpha,
391  Real a_beta,
392  const Vector<int>& a_refRatios,
393  const ProblemDomain& a_domainCoar,
394  const Real& a_dxCoar,
395  BCFunc a_bc);
396 
397  ///
399  MGnewOp(const ProblemDomain& a_FineindexSpace,
400  int depth,
401  bool homoOnly = true);
402 
403  ///
405  AMRnewOp(const ProblemDomain& a_indexSpace);
406 
407  ///
408  virtual int refToFiner(const ProblemDomain&) const;
409 
410 private:
416  // refinement to next coarser level
420 
421  ///weak construction is bad
423  {
424  MayDay::Error("invalid operator");
425  }
426  //copy constructor and operator= disallowed for all the usual reasons
428  {
429  MayDay::Error("invalid operator");
430  }
431 
432  void operator=(const ResistivityOpFactory& a_opin)
433  {
434  MayDay::Error("invalid operator");
435  }
436 };
437 
438 #include "NamespaceFooter.H"
439 #endif
Vector< Real > m_dx
Definition: ResistivityOp.H:415
Definition: ResistivityOp.H:381
virtual void applyOp(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_phi, bool a_homogeneous=false)
A reference-counting handle class.
Definition: RefCountedPtr.H:66
An irregular domain on an integer lattice.
Definition: IntVectSet.H:44
Real m_alpha
Definition: ResistivityOp.H:335
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:130
Real m_beta
Definition: ResistivityOp.H:419
LayoutData< CFIVS > m_loCFIVS[SpaceDim]
Definition: ResistivityOp.H:354
static const int s_nGradComp
Definition: ResistivityOp.H:343
static const int s_nComp
Definition: ResistivityOp.H:342
void loHiCenterFace(Box &a_loBox, int &a_hasLo, Box &a_hiBox, int &a_hasHi, Box &a_centerBox, const ProblemDomain &a_eblg, const Box &a_inBox, const int &a_dir)
virtual void assign(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_rhs)
virtual int refToFiner(const ProblemDomain &) const
LevelDataOps< FArrayBox > m_levelOps
Definition: ResistivityOp.H:350
void computeOperatorNoBCs(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_phi)
utility function which computes operator after all bc's have been set
A strange but true thing to make copying from one boxlayoutdata to another fast.
Definition: Copier.H:137
virtual void divideByIdentityCoef(LevelData< FArrayBox > &a_rhs)
Definition: ResistivityOp.H:62
LevelData< FArrayBox > m_grad
Definition: ResistivityOp.H:349
Vector< DisjointBoxLayout > m_boxes
Definition: ResistivityOp.H:414
virtual void diagonalScale(LevelData< FArrayBox > &a_rhs, bool a_kappaWeighted)
Definition: ResistivityOp.H:52
virtual void preCond(LevelData< FArrayBox > &a_correction, const LevelData< FArrayBox > &a_residual)
void interpOnIVSHomo(LevelData< FArrayBox > &a_phif, const DataIndex &a_datInd, const int a_idir, const Side::LoHiSide a_hiorlo, const IntVectSet &a_interpIVS)
Quadratic coarse-fine interpolation utility for tensors.
Definition: TensorCFInterp.H:36
LayoutData< TensorFineStencilSet > m_hiTanStencilSets[SpaceDim]
Definition: ResistivityOp.H:357
void AMROperator(LevelData< FArrayBox > &a_LofPhi, const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_phiCoarse, bool a_homogeneousDomBC, AMRLevelOp< LevelData< FArrayBox > > *a_finerOp)
virtual void restrictResidual(LevelData< FArrayBox > &a_resCoarse, LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_rhsFine)
virtual void createCoarsened(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_rhs, const int &a_refRat)
virtual void AMRResidualNF(LevelData< FArrayBox > &a_residual, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_phiCoarse, const LevelData< FArrayBox > &a_rhs, bool a_homogeneousPhysBC)
Vector< IntVect > m_colors
Definition: ResistivityOp.H:359
void reflux(const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phi, LevelData< FArrayBox > &residual, AMRLevelOp< LevelData< FArrayBox > > *a_finerOp)
Vector< ProblemDomain > m_domains
Definition: ResistivityOp.H:413
Real m_alpha
Definition: ResistivityOp.H:419
Definition: ResistivityOp.H:40
void cfinterp(const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phiCoarse)
const int SpaceDim
Definition: SPACE.H:39
Definition: AMRMultiGrid.H:35
virtual void scale(LevelData< FArrayBox > &a_lhs, const Real &a_scale)
Real m_dxCrse
Definition: ResistivityOp.H:345
Vector< RefCountedPtr< LevelData< FluxBox > > > m_eta
Definition: ResistivityOp.H:411
virtual ~ResistivityOp()
Definition: ResistivityOp.H:70
void AMROperatorNF(LevelData< FArrayBox > &a_LofPhi, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_phiCoarse, bool a_homogeneousBC)
A FArrayBox-like container for face-centered fluxes.
Definition: FluxBox.H:22
ResistivityOpFactory()
weak construction is bad
Definition: ResistivityOp.H:422
LevelData< FArrayBox > m_phic
Definition: ResistivityOp.H:412
virtual int refToCoarser()
Definition: ResistivityOp.H:187
virtual Real norm(const LevelData< FArrayBox > &a_x, int a_ord)
virtual void setAlphaAndBeta(const Real &a_alpha, const Real &a_beta)
Definition: ResistivityOp.H:44
virtual void applyOpNoBoundary(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_phi)
virtual void prolongIncrement(LevelData< FArrayBox > &a_phiThisLevel, const LevelData< FArrayBox > &a_correctCoarse)
virtual void create(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_rhs)
void homogeneousCFInterpPhi(LevelData< FArrayBox > &a_phif, const DataIndex &a_datInd, int a_idir, Side::LoHiSide a_hiorlo)
virtual void AMRRestrict(LevelData< FArrayBox > &a_resCoarse, const LevelData< FArrayBox > &a_residual, const LevelData< FArrayBox > &a_correction, const LevelData< FArrayBox > &a_coarseCorrection)
virtual void AMRProlong(LevelData< FArrayBox > &a_correction, const LevelData< FArrayBox > &a_coarseCorrection)
int m_refToFine
Definition: ResistivityOp.H:338
double Real
Definition: REAL.H:33
Definition: MultiGrid.H:30
virtual void setToZero(LevelData< FArrayBox > &a_x)
ProblemDomain m_domain
Definition: ResistivityOp.H:346
virtual void AMRUpdateResidual(LevelData< FArrayBox > &a_residual, const LevelData< FArrayBox > &a_correction, const LevelData< FArrayBox > &a_coarseCorrection)
virtual void fillGrad(const LevelData< FArrayBox > &a_phiFine)
These functions are part of the LevelTGA interface......
virtual void getFlux(FluxBox &a_flux, const LevelData< FArrayBox > &a_data, const Box &a_grid, const DataIndex &a_dit, Real a_scale)
virtual Real dotProduct(const LevelData< FArrayBox > &a_1, const LevelData< FArrayBox > &a_2)
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
void getFaceDivAndGrad(FArrayBox &a_faceDiv, FArrayBox &a_faceGrad, const FArrayBox &a_data, const FArrayBox &a_gradData, const ProblemDomain &a_domain, const Box &a_faceBox, const int &a_faceDir, const Real a_dx)
void cellGrad(FArrayBox &a_gradPhi, const FArrayBox &a_phi, const Box &a_grid)
LoHiSide
Definition: LoHiSide.H:27
void divergenceCC(LevelData< FArrayBox > &a_div, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > *a_phiC)
take cell centered divergence of the inputs.
Real m_beta
Definition: ResistivityOp.H:336
ResistivityOpFactory(const ResistivityOpFactory &a_opin)
Definition: ResistivityOp.H:427
virtual MGLevelOp< LevelData< FArrayBox > > * MGnewOp(const ProblemDomain &a_FineindexSpace, int depth, bool homoOnly=true)
virtual void createCoarser(LevelData< FArrayBox > &a_coarse, const LevelData< FArrayBox > &a_fine, bool ghosted)
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
TensorCFInterp m_interpWithCoarser
Definition: ResistivityOp.H:352
virtual void incr(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_x, Real a_scale)
void(* BCFunc)(FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous)
Definition: BCFunc.H:30
Copier m_exchangeCopier
Definition: ResistivityOp.H:351
void setLambda()
virtual AMRLevelOp< LevelData< FArrayBox > > * AMRnewOp(const ProblemDomain &a_indexSpace)
RefCountedPtr< LevelData< FluxBox > > m_eta
Definition: ResistivityOp.H:333
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
void homogeneousCFInterp(LevelData< FArrayBox > &a_phif)
virtual void residual(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_rhs, bool a_homogeneous=false)
ResistivityOp(const ResistivityOp &a_opin)
Definition: ResistivityOp.H:367
Definition: DataIndex.H:112
virtual void AMRResidualNC(LevelData< FArrayBox > &a_residual, const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_rhs, bool a_homogeneousPhysBC, AMRLevelOp< LevelData< FArrayBox > > *a_finerOp)
Real m_dx
Definition: ResistivityOp.H:344
virtual void AMROperatorNC(LevelData< FArrayBox > &a_LofPhi, const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phi, bool a_homogeneousBC, AMRLevelOp< LevelData< FArrayBox > > *a_finerOp)
Definition: FArrayBox.H:44
Definition: AMRTGA.H:159
int m_refToCoar
Definition: ResistivityOp.H:337
virtual void AMRResidual(LevelData< FArrayBox > &a_residual, const LevelData< FArrayBox > &a_phiFine, const LevelData< FArrayBox > &a_phi, const LevelData< FArrayBox > &a_phiCoarse, const LevelData< FArrayBox > &a_rhs, bool a_homogeneousPhysBC, AMRLevelOp< LevelData< FArrayBox > > *a_finerOp)
BCFunc m_bc
Definition: ResistivityOp.H:339
void homogeneousCFInterpTanGrad(LevelData< FArrayBox > &a_tanGrad, const LevelData< FArrayBox > &a_phi, const DataIndex &a_datInd, int a_idir, Side::LoHiSide a_hiorlo)
virtual Real AMRNorm(const LevelData< FArrayBox > &a_coarseResid, const LevelData< FArrayBox > &a_fineResid, const int &a_refRat, const int &a_ord)
Definition: AMRMultiGrid.H:231
void operator=(const ResistivityOp &a_opin)
Definition: ResistivityOp.H:371
BCFunc m_bc
Definition: ResistivityOp.H:418
LayoutData< TensorFineStencilSet > m_loTanStencilSets[SpaceDim]
Definition: ResistivityOp.H:358
LevelData< FArrayBox > m_lambda
Definition: ResistivityOp.H:348
virtual ~ResistivityOpFactory()
Definition: ResistivityOp.H:384
LayoutData< CFIVS > m_hiCFIVS[SpaceDim]
Definition: ResistivityOp.H:355
void operator=(const ResistivityOpFactory &a_opin)
Definition: ResistivityOp.H:432
DisjointBoxLayout m_grids
Definition: ResistivityOp.H:334
virtual void diagonalScale(LevelData< FArrayBox > &a_rhs)
Definition: ResistivityOp.H:57
virtual void relax(LevelData< FArrayBox > &a_e, const LevelData< FArrayBox > &a_residual, int iterations)
ResistivityOp()
weak construction is bad
Definition: ResistivityOp.H:362
Vector< int > m_refRatios
Definition: ResistivityOp.H:417
virtual void axby(LevelData< FArrayBox > &a_lhs, const LevelData< FArrayBox > &a_x, const LevelData< FArrayBox > &a_y, Real a, Real b)