Back to index

salome-med  6.5.0
Defines | Functions
InterpKernelGaussCoords.cxx File Reference
#include "InterpKernelGaussCoords.hxx"
#include "CellModel.hxx"
#include <math.h>
#include <algorithm>
#include <sstream>

Go to the source code of this file.

Defines

#define LOCAL_COORD_MACRO_BEGIN
#define LOCAL_COORD_MACRO_END
#define SHAPE_FUN_MACRO_BEGIN
#define SHAPE_FUN_MACRO_END   }
#define CHECK_MACRO

Functions

static bool IsEqual (double theLeft, double theRight)

Define Documentation

#define CHECK_MACRO
Value:
if( ! aSatify )                                                          \
    {                                                                      \
      std::ostringstream stream;                                           \
      stream << "Error in the gauss localization for the cell with type "; \
      stream << cellModel.getRepr();                                       \
      stream << " !!!";                                                    \
      throw INTERP_KERNEL::Exception(stream.str().c_str());                \
    }

Definition at line 57 of file InterpKernelGaussCoords.cxx.

Value:
_my_local_reference_coord.resize( _my_local_ref_dim*_my_local_nb_ref );           \
  for( int refId = 0; refId < _my_local_nb_ref; refId++ )                   \
    {                                                                   \
      double* coords = &_my_local_reference_coord[ refId*_my_local_ref_dim ];   \
      switch(refId)                                                     \
        {

Definition at line 33 of file InterpKernelGaussCoords.cxx.

Value:
}                                             \
}

Definition at line 42 of file InterpKernelGaussCoords.cxx.

Value:
for( int gaussId     = 0 ; gaussId < _my_nb_gauss ; gaussId++ )          \
    {                                                                   \
      double* funValue =  &_my_function_value[ gaussId * _my_nb_ref ];        \
      const double* gc = &_my_gauss_coord[ gaussId * getGaussCoordDim() ];

Definition at line 47 of file InterpKernelGaussCoords.cxx.

#define SHAPE_FUN_MACRO_END   }

Definition at line 54 of file InterpKernelGaussCoords.cxx.


Function Documentation

static bool IsEqual ( double  theLeft,
double  theRight 
) [static]

Definition at line 69 of file InterpKernelGaussCoords.cxx.

{
  static double EPS = 1.0E-3;
  if(fabs(theLeft) + fabs(theRight) > EPS)
    return fabs(theLeft-theRight)/(fabs(theLeft)+fabs(theRight)) < EPS;
  return true;
}