11 #ifndef _IFSLICERIMPLEM_H_ 12 #define _IFSLICERIMPLEM_H_ 16 #include "NamespaceHeader.H" 36 const int & a_fixedComp,
37 const Real & a_fixedValue)
45 const int & a_fixedComp,
46 const Real & a_fixedValue)
49 m_IFSlicer = a_IFSlicer;
50 m_fixedComp = a_fixedComp;
51 m_fixedValue = a_fixedValue;
68 for (
int idir = 0; idir <
dim +1; ++idir)
70 if (idir < m_fixedComp)
72 partialDerivative[idir] = a_partialDerivative[idir];
73 point [idir] = a_point [idir];
75 else if (idir > m_fixedComp)
77 partialDerivative[idir] = a_partialDerivative[idir - 1];
78 point [idir] = a_point [idir - 1];
82 partialDerivative[m_fixedComp] = 0;
83 point [m_fixedComp] = m_fixedValue;
88 retval = m_IFSlicer->value(partialDerivative,point);
95 a_out <<
"fixed component = " << m_fixedComp <<
"\n";
96 a_out <<
"fixed value = " << m_fixedValue <<
"\n";
97 a_out <<
"At one dimension higher: " <<
dim + 1 <<
"\n";
98 this->m_IFSlicer->print(a_out);
104 a_IFSlicer.
print(a_out);
108 #include "NamespaceFooter.H" #define LARGEREALVAL
Definition: Notation.H:77
void setParams(IFSlicer< dim+1 > const *a_slicer, const int &a_fixedComp, const Real &a_fixedValue)
Definition: IFSlicerImplem.H:44
#define LARGEINTVAL
Definition: Notation.H:76
int m_fixedComp
Definition: IFSlicer.H:80
void print(ostream &out) const
output function
Definition: IFSlicerImplem.H:93
IFSlicer< dim+1 > const * m_IFSlicer
Definition: IFSlicer.H:77
ostream & operator<<(ostream &a_out, const IFSlicer< dim > &a_IFSlicer)
Definition: IFSlicerImplem.H:101
Real m_fixedValue
Definition: IFSlicer.H:81
IFSlicer()
null constructor
Definition: IFSlicerImplem.H:19
double Real
Definition: REAL.H:33
Definition: IFSlicer.H:27
virtual Real value(const IndexTM< int, dim > &a_partialDerivative, const IndexTM< Real, dim > &a_point) const
Return the partial derivative evaluated at a_point.
Definition: IFSlicerImplem.H:60
virtual ~IFSlicer()
destructor
Definition: IFSlicerImplem.H:55
int dim
Definition: EBInterface.H:146