Chombo + EB + MF  3.2
SphereIF.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 #ifndef _SPHEREIF_H_
12 #define _SPHEREIF_H_
13 
14 #include "MayDay.H"
15 #include "RealVect.H"
16 
17 #include "HyperSphereIF.H"
18 
19 #include "NamespaceHeader.H"
20 
21 ///
22 /**
23  This implicit function specifies a sphere.
24  */
25 class SphereIF: public HyperSphereIF
26 {
27 public:
28  ///
29  /**
30  Constructor specifying sphere radius (a_radius), center (a_center), and
31  whether the domain is on the inside (a_inside).
32  */
33  SphereIF(const Real& a_radius,
34  const RealVect& a_center,
35  const bool& a_inside);
36 
37  /// Destructor
38  virtual ~SphereIF()
39  {;}
40 
41 
42 
43 private:
44  SphereIF();
45 
46  void operator=(const SphereIF& a_inputIF)
47  {
48  MayDay::Abort("SphereIF doesn't allow assignment");
49  }
50 };
51 
52 #include "NamespaceFooter.H"
53 #endif
virtual ~SphereIF()
Destructor.
Definition: SphereIF.H:38
Definition: SphereIF.H:25
void operator=(const SphereIF &a_inputIF)
Definition: SphereIF.H:46
double Real
Definition: REAL.H:33
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Definition: HyperSphereIF.H:24
static void Abort(const char *const a_msg=m_nullString)
Print out message to cerr and exit via abort() (if serial) or MPI_Abort() (if parallel).