1 #ifndef EMM_DistanceFunction_H 2 #define EMM_DistanceFunction_H 42 mIsPrivateDistanceAllocated=
false;
45 mIsPrivateHAllocated=
false;
69 if (!mIsPrivateDistanceAllocated) {
74 mIsPrivateDistanceAllocated=
true;
80 if (mIsPrivateDistanceAllocated) {
84 mIsPrivateDistanceAllocated=
false;
89 if (!mIsPrivateHAllocated) {
94 mIsPrivateHAllocated=
true;
100 if (mIsPrivateHAllocated) {
104 mIsPrivateHAllocated=
false;
135 mIsPrivateDistanceAllocated=
false;
176 mIsPrivateHAllocated=
false;
void setMeshSizeByReference(tReal h[])
set the mesh size by reference from both interative cells by reference
Definition: EMM_DistanceFunction.h:173
tIndex * mDistance
Definition: EMM_DistanceFunction.h:28
SP_OBJECT(EMM_DistanceFunction)
EMM_DistanceFunction(void)
create the class
Definition: EMM_DistanceFunction.h:39
const tIndex * getDistance() const
get the distance from both interative cells
Definition: EMM_DistanceFunction.h:142
void allocateDistance()
allocate the distance array
Definition: EMM_DistanceFunction.h:68
#define tBoolean
Definition: types.h:139
tReal * mH
Definition: EMM_DistanceFunction.h:27
tIndex * getDistance()
get the distance from both interative cells
Definition: EMM_DistanceFunction.h:148
#define null
Definition: types.h:144
tBoolean mIsPrivateDistanceAllocated
Definition: EMM_DistanceFunction.h:29
void desallocateDistance()
deasollocate the distance array
Definition: EMM_DistanceFunction.h:79
DEFINE_SPTR(EMM_DistanceFunction)
#define tIndex
Definition: types.h:129
void setDistance(const tIndex d[])
set the distance from both interative cells
Definition: EMM_DistanceFunction.h:114
This class create a distance function.
Definition: EMM_DistanceFunction.h:16
void setDistanceByReference(tIndex d[])
set the distance from both interative cells by reference
Definition: EMM_DistanceFunction.h:132
const tReal * getMeshSize() const
get the mesh size
Definition: EMM_DistanceFunction.h:194
void desallocateMeshSize()
deasollocate the mesh size array
Definition: EMM_DistanceFunction.h:99
void allocateMeshSize()
allocate the mesh size array
Definition: EMM_DistanceFunction.h:88
virtual ~EMM_DistanceFunction(void)
destroy the class
Definition: EMM_DistanceFunction.h:55
virtual void setDistance(const tIndex &dx, const tIndex &dy, const tIndex &dz)
set the distance from both interative cells
Definition: EMM_DistanceFunction.h:122
tBoolean mIsPrivateHAllocated
Definition: EMM_DistanceFunction.h:30
void setMeshSize(const tReal h[])
set the mesh size
Definition: EMM_DistanceFunction.h:155
This class describes a function to integrate. the method computeFunction() has to be defined...
Definition: MATH_IntegrandFunction.h:16
void getMeshSize(tReal &hx, tReal &hy, tReal &hz) const
get the mesh size
Definition: EMM_DistanceFunction.h:186
#define tReal
Definition: types.h:118
virtual void setMeshSize(const tReal &hx, const tReal &hy, const tReal &hz)
set the mesh size
Definition: EMM_DistanceFunction.h:163