Triplet Class Reference

#include <xml_parser_restart.h>

Collaboration diagram for Triplet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int & getRead ()
double & operator() (int i)
 Triplet (double x0=0, double y0=0, double z0=0)
void Truncate ()

Static Public Member Functions

static void SetDomainSize (Geometrie &geom)

Static Public Attributes

static double tx = 0
static double ty = 0
static double tz = 0

Private Attributes

double epsilon
double epsilon2
int read
double x
double y
double z

Static Private Attributes

static bool domainSizeIsSet
static Cube geom

Detailed Description

Definition at line 59 of file xml_parser_restart.h.


Constructor & Destructor Documentation

Triplet::Triplet ( double  x0 = 0,
double  y0 = 0,
double  z0 = 0 
) [inline]

Definition at line 62 of file xml_parser_restart.h.

References epsilon, epsilon2, read, x, y, and z.

00062                                                 {
00063     x = x0; y = y0; z = z0;
00064     read = 0;
00065 
00066     epsilon = .4e-10;
00067     epsilon2 = epsilon * epsilon;
00068   };


Member Function Documentation

int& Triplet::getRead (  )  [inline]

Definition at line 82 of file xml_parser_restart.h.

Referenced by XMLRestartParser::readTriplet().

00082 {return read;};

double& Triplet::operator() ( int  i  )  [inline]

Definition at line 73 of file xml_parser_restart.h.

References FATAL, x, y, and z.

00073                             {
00074     switch (i) {
00075     case 0 : return x;
00076     case 1 : return y;
00077     case 2 : return z;      
00078     default: FATAL("value requested for coordinates out of range");
00079     }
00080   }

void Triplet::SetDomainSize ( Geometrie geom  )  [static]

Definition at line 84 of file xml_parser_restart.cpp.

References domainSizeIsSet, geom, and GeomTools::GetBoundingBox().

00084                                         {
00085   domainSizeIsSet = true;
00086   geom = GeomTools::GetBoundingBox(g);
00087 };

Here is the call graph for this function:

void Triplet::Truncate (  ) 

Definition at line 70 of file xml_parser_restart.cpp.

References truncate(), tx, ty, tz, x, y, and z.

Referenced by XMLRestartParser::AssignDispField(), XMLRestartParser::AssignForceField(), XMLRestartParser::AssignVelField(), XMLRestartParser::IsDofRegistered(), and XMLRestartParser::manageP0().

00070                       {
00071   //  if (!domainSizeIsSet) FATAL("Warning : domain size shloud be set to truncate coordinates");
00072   
00073   // int nx = (geom.Xmax() - geom.Xmin())/1e-10;
00074   //translating 
00075   x += tx;
00076   y += ty;
00077   z += tz;
00078 
00079   truncate(&x);
00080   truncate(&y);  
00081   truncate(&z);
00082 };

Here is the call graph for this function:


Member Data Documentation

bool Triplet::domainSizeIsSet [static, private]

Definition at line 93 of file xml_parser_restart.h.

Referenced by SetDomainSize().

double Triplet::epsilon [private]

Definition at line 95 of file xml_parser_restart.h.

Referenced by Triplet().

double Triplet::epsilon2 [private]

Definition at line 96 of file xml_parser_restart.h.

Referenced by Triplet().

Cube Triplet::geom [static, private]

Definition at line 92 of file xml_parser_restart.h.

Referenced by SetDomainSize().

int Triplet::read [private]

Definition at line 90 of file xml_parser_restart.h.

Referenced by Triplet().

double Triplet::tx = 0 [static]

Definition at line 82 of file xml_parser_restart.h.

Referenced by XMLRestartParser::IsDofRegistered(), and Truncate().

double Triplet::ty = 0 [static]

Definition at line 82 of file xml_parser_restart.h.

Referenced by XMLRestartParser::IsDofRegistered(), and Truncate().

double Triplet::tz = 0 [static]

Definition at line 82 of file xml_parser_restart.h.

Referenced by XMLRestartParser::IsDofRegistered(), and Truncate().

double Triplet::x [private]

Definition at line 88 of file xml_parser_restart.h.

Referenced by operator()(), Triplet(), and Truncate().

double Triplet::y [private]

Definition at line 88 of file xml_parser_restart.h.

Referenced by operator()(), Triplet(), and Truncate().

double Triplet::z [private]

Definition at line 88 of file xml_parser_restart.h.

Referenced by operator()(), Triplet(), and Truncate().


The documentation for this class was generated from the following files:
Generated on Fri Sep 7 13:13:30 2007 for LibMultiScale by  doxygen 1.5.2