Chombo + EB  3.0
NodeLevelDataOps.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 // BVS, June 26, 2003
12 
13 // We can assume that template class T has null construction.
14 
15 #ifndef _NODELEVELDATAOPS_H_
16 #define _NODELEVELDATAOPS_H_
17 
18 #ifdef CH_MPI
19 #include <string>
20 #include <sstream>
21 #endif
22 #include "LevelData.H"
23 #include "RefCountedPtr.H"
24 #include "SPMD.H"
25 #include "NodeFArrayBox.H"
26 #include "LevelDataOps.H"
27 #include "NamespaceHeader.H"
28 
29 
30 // default copy constructor and assign are fine.
31 
32 class NodeLevelDataOps: public LevelDataOps<NodeFArrayBox>
33 {
34 public:
36 
38  {
39  }
40 
41  virtual void incr( LevelData<NodeFArrayBox>& a_lhs,
42  const LevelData<NodeFArrayBox>& a_x,
43  Real a_scale) ;
44 
45  virtual void axby( LevelData<NodeFArrayBox>& a_lhs, const LevelData<NodeFArrayBox>& a_x,
46  const LevelData<NodeFArrayBox>& a_y, Real a_a, Real a_b) ;
47 
48  virtual void scale(LevelData<NodeFArrayBox>& a_lhs, const Real& a_scale) ;
49 
50 protected:
52 };
53 
54 
55 #include "NamespaceFooter.H"
56 #endif
virtual void scale(LevelData< NodeFArrayBox > &a_lhs, const Real &a_scale)
A reference-counting handle class.
Definition: RefCountedPtr.H:66
Definition: LevelDataOps.H:32
Definition: NodeLevelDataOps.H:32
virtual void axby(LevelData< NodeFArrayBox > &a_lhs, const LevelData< NodeFArrayBox > &a_x, const LevelData< NodeFArrayBox > &a_y, Real a_a, Real a_b)
RefCountedPtr< DataFactory< NodeFArrayBox > > m_levelFactory
Definition: NodeLevelDataOps.H:51
virtual ~NodeLevelDataOps()
Definition: NodeLevelDataOps.H:37
double Real
Definition: REAL.H:33
virtual void incr(LevelData< NodeFArrayBox > &a_lhs, const LevelData< NodeFArrayBox > &a_x, Real a_scale)