Overture  Version 25
Macros | Functions
Interpolant.C File Reference
#include "Interpolant.h"
#include "Oges.h"
#include "CompositeGridOperators.h"
#include "display.h"
#include "interpPoints.h"
#include "SparseRep.h"
#include "InterpolateRefinements.h"
#include "ParallelOverlappingGridInterpolator.h"
#include "ParallelUtility.h"
#include "OGPolyFunction.h"
Include dependency graph for Interpolant.C:

Macros

#define interpOptRes   EXTERN_C_NAME(interpoptres)
 
#define interpOpt   EXTERN_C_NAME(interpopt)
 
#define INTERPOLATE_THIS_GRID(grid)
 
#define UINDEX(g, i1, i2, i3, c1)   ((i1)+d0[g]*( (i2)+d1[g]*( (i3)+d2[g]*( c1))))
 
#define UG(i1, i2, i3, c1)   ug_[base[grid]+UINDEX(grid,i1,i2,i3,c1)]
 
#define IP(i, axis)   ip_[(i)+numberOfInterpolationPoints*(axis)]
 
#define IL(i, axis)   il_[(i)+numberOfInterpolationPoints*(axis)]
 
#define IG(i)   ig_[(i)]
 
#define COEFFG2(i, w1, w2)   coeffg_[(i)+numberOfInterpolationPoints*((w1)+width0*((w2)))]
 
#define COEFFG3(i, w1, w2, w3)   coeffg_[(i)+numberOfInterpolationPoints*((w1)+width0*((w2)+width1*(w3)))]
 
#define UU(grid, i1, i2, i3, c1)   u_[grid][base[grid]+UINDEX(grid,i1,i2,i3,c1)]
 
#define UU2(w1, w2)   UU(IG(i), IL(i,axis1)+w1,IL(i,axis2)+w2,c2,c3)
 
#define UU3(w1, w2, w3)   UU(IG(i), IL(i,axis1)+w1,IL(i,axis2)+w2,IL(i,axis3)+w3,c3)
 
#define initExplicitInterp   EXTERN_C_NAME(initexplicitinterp)
 
#define Q11(x)   (1.-(x))
 
#define Q21(x)   (x)
 
#define Q12(x)   .5*((x)-1.)*((x)-2.)
 
#define Q22(x)   (x)*(2.-(x))
 
#define Q32(x)   .5*(x)*((x)-1.)
 
#define ForBoundary(side, axis)
 

Functions

void interpOptRes (const int &nd, const int &ndui1a, const int &ndui1b, const int &ndui2a, const int &ndui2b, const int &ndui3a, const int &ndui3b, const int &ndui4a, const int &ndui4b, const int &ndug1a, const int &ndug1b, const int &ndug2a, const int &ndug2b, const int &ndug3a, const int &ndug3b, const int &ndug4a, const int &ndug4b, const int &ndil, const int &ndip, const int &ndc1, const int &ndc2, const int &ndc3, const int &ipar, const real &ui, real &ug, const real &c, real &r, const int &il, const int &ip, const int &varWidth, const int &width, real &resMax)
 
void interpOpt (const int &nd, const int &ndui1a, const int &ndui1b, const int &ndui2a, const int &ndui2b, const int &ndui3a, const int &ndui3b, const int &ndui4a, const int &ndui4b, const int &ndug1a, const int &ndug1b, const int &ndug2a, const int &ndug2b, const int &ndug3a, const int &ndug3b, const int &ndug4a, const int &ndug4b, const int &ndil, const int &ndip, const int &ndc1, const int &ndc2, const int &ndc3, const int &ipar, const real &ui, real &ug, const real &c, const int &il, const int &ip, const int &varWidth, const int &width)
 
void initExplicitInterp (const int &ndc1, const int &ndc2, const int &ndc3, const int &ndci, const int &ipar, real &coeff, const real &ci, real &pr, real &ps, real &pt, const real &gridSpacing, const int &indexStart, const int &variableInterpolationWidth, const int &interpoleeLocation, const int &interpoleeGrid)
 

Macro Definition Documentation

#define COEFFG2 (   i,
  w1,
  w2 
)    coeffg_[(i)+numberOfInterpolationPoints*((w1)+width0*((w2)))]
#define COEFFG3 (   i,
  w1,
  w2,
  w3 
)    coeffg_[(i)+numberOfInterpolationPoints*((w1)+width0*((w2)+width1*(w3)))]
#define ForBoundary (   side,
  axis 
)
Value:
for( axis=0; axis<mg.numberOfDimensions(); axis++ ) \
for( side=0; side<=1; side++ )

Referenced by Interpolant::testInterpolation().

#define IG (   i)    ig_[(i)]
#define IL (   i,
  axis 
)    il_[(i)+numberOfInterpolationPoints*(axis)]
#define initExplicitInterp   EXTERN_C_NAME(initexplicitinterp)
#define INTERPOLATE_THIS_GRID (   grid)
Value:
((!onlyInterpolateSomeGrids || gridsToInterpolate(grid)) && \
cg.refinementLevelNumber(grid)<=maximumRefinementLevelToInterpolate )
#define interpOpt   EXTERN_C_NAME(interpopt)
#define interpOptRes   EXTERN_C_NAME(interpoptres)
#define IP (   i,
  axis 
)    ip_[(i)+numberOfInterpolationPoints*(axis)]
#define Q11 (   x)    (1.-(x))
#define Q12 (   x)    .5*((x)-1.)*((x)-2.)
#define Q21 (   x)    (x)
#define Q22 (   x)    (x)*(2.-(x))
#define Q32 (   x)    .5*(x)*((x)-1.)
#define UG (   i1,
  i2,
  i3,
  c1 
)    ug_[base[grid]+UINDEX(grid,i1,i2,i3,c1)]
#define UINDEX (   g,
  i1,
  i2,
  i3,
  c1 
)    ((i1)+d0[g]*( (i2)+d1[g]*( (i3)+d2[g]*( c1))))
#define UU (   grid,
  i1,
  i2,
  i3,
  c1 
)    u_[grid][base[grid]+UINDEX(grid,i1,i2,i3,c1)]
#define UU2 (   w1,
  w2 
)    UU(IG(i), IL(i,axis1)+w1,IL(i,axis2)+w2,c2,c3)
#define UU3 (   w1,
  w2,
  w3 
)    UU(IG(i), IL(i,axis1)+w1,IL(i,axis2)+w2,IL(i,axis3)+w3,c3)

Function Documentation

void initExplicitInterp ( const int &  ndc1,
const int &  ndc2,
const int &  ndc3,
const int &  ndci,
const int &  ipar,
real coeff,
const real ci,
real pr,
real ps,
real pt,
const real gridSpacing,
const int &  indexStart,
const int &  variableInterpolationWidth,
const int &  interpoleeLocation,
const int &  interpoleeGrid 
)
void interpOpt ( const int &  nd,
const int &  ndui1a,
const int &  ndui1b,
const int &  ndui2a,
const int &  ndui2b,
const int &  ndui3a,
const int &  ndui3b,
const int &  ndui4a,
const int &  ndui4b,
const int &  ndug1a,
const int &  ndug1b,
const int &  ndug2a,
const int &  ndug2b,
const int &  ndug3a,
const int &  ndug3b,
const int &  ndug4a,
const int &  ndug4b,
const int &  ndil,
const int &  ndip,
const int &  ndc1,
const int &  ndc2,
const int &  ndc3,
const int &  ipar,
const real ui,
real ug,
const real c,
const int &  il,
const int &  ip,
const int &  varWidth,
const int &  width 
)
void interpOptRes ( const int &  nd,
const int &  ndui1a,
const int &  ndui1b,
const int &  ndui2a,
const int &  ndui2b,
const int &  ndui3a,
const int &  ndui3b,
const int &  ndui4a,
const int &  ndui4b,
const int &  ndug1a,
const int &  ndug1b,
const int &  ndug2a,
const int &  ndug2b,
const int &  ndug3a,
const int &  ndug3b,
const int &  ndug4a,
const int &  ndug4b,
const int &  ndil,
const int &  ndip,
const int &  ndc1,
const int &  ndc2,
const int &  ndc3,
const int &  ipar,
const real ui,
real ug,
const real c,
real r,
const int &  il,
const int &  ip,
const int &  varWidth,
const int &  width,
real resMax 
)