11 #ifndef _COORDINATESYSTEMIMPLEM_H_ 12 #define _COORDINATESYSTEMIMPLEM_H_ 14 #if defined(CH_Darwin) && defined(__GNUC__) && ( __GNUC__ == 3 ) 17 #define _GLIBCPP_USE_C99 1 23 #include "NamespaceHeader.H" 30 :m_origin(a_coordinateSystem.m_origin),
31 m_dx(a_coordinateSystem.m_dx)
46 CH_TIME(
"CoordinateSystem::ConstructorReduceInfo");
47 for (
int idir = 0; idir <
dim; ++idir)
57 m_dx[idir] = a_hiCoord.
m_dx [idir + 1];
72 for (
int idir = 0; idir <
dim; ++idir)
80 retval[idir] = a_point[idir];
82 retval[idir] -= a_system.
m_origin[idir];
83 retval[idir] /= a_system.
m_dx [idir];
84 retval[idir] *=
m_dx [idir];
93 const int & a_dir)
const 100 retval /= a_system.
m_dx [a_dir];
101 retval *=
m_dx [a_dir];
109 std::ios::fmtflags origFlags = a_out.flags();
110 int origWidth = a_out.width();
111 int origPrecision = a_out.precision();
115 << setiosflags(ios::showpoint)
116 << setiosflags(ios::scientific)
121 << setiosflags(ios::showpoint)
122 << setiosflags(ios::scientific)
125 a_out.flags(origFlags);
126 a_out.width(origWidth);
127 a_out.precision(origPrecision);
133 a_coordinateSystem.
print(a_out);
144 #include "NamespaceFooter.H" Real convertDir(const Real &a_coord, const CoordinateSystem< dim > &a_system, const int &a_dir) const
Definition: CoordinateSystemImplem.H:91
Definition: CoordinateSystem.H:34
RvDim m_dx
Definition: CoordinateSystem.H:43
ostream & operator<<(ostream &a_out, const CoordinateSystem< dim > &a_coordinateSystem)
Definition: CoordinateSystemImplem.H:130
#define CH_TIME(name)
Definition: CH_Timer.H:59
RvDim m_origin
Definition: CoordinateSystem.H:42
~CoordinateSystem()
Definition: CoordinateSystemImplem.H:63
double Real
Definition: REAL.H:33
CoordinateSystem()
Definition: CoordinateSystemImplem.H:25
void print(ostream &out) const
Definition: CoordinateSystemImplem.H:107
RvDim convert(const RvDim &a_point, const CoordinateSystem< dim > &a_system) const
Definition: CoordinateSystemImplem.H:67
int dim
Definition: EBInterface.H:146
void operator=(const CoordinateSystem< dim > &a_coordinateSystem)
Definition: CoordinateSystemImplem.H:138