Overture  Version 25
Macros | Functions
MGOD.C File Reference
#include "MappedGridOperators.h"
#include "UnstructuredOperators.h"
#include "ParallelUtility.h"
#include "cgux2a.h"
#include "cgux4a.h"
Include dependency graph for MGOD.C:

Macros

#define U(I1, I2, I3, N)   u(I1,I2,I3,N)
 
#define UR2(I1, I2, I3, N)   ur(I1,I2,I3,N)
 
#define US2(I1, I2, I3, N)   us(I1,I2,I3,N)
 
#define UT2(I1, I2, I3, N)   ut(I1,I2,I3,N)
 
#define UR4(I1, I2, I3, N)   ur(I1,I2,I3,N)
 
#define US4(I1, I2, I3, N)   us(I1,I2,I3,N)
 
#define UT4(I1, I2, I3, N)   ut(I1,I2,I3,N)
 
#define DERIVATIVE(x, xDerivative)
 
#define xFDeriv   EXTERN_C_NAME(xfderiv)
 
#define yFDeriv   EXTERN_C_NAME(yfderiv)
 
#define zFDeriv   EXTERN_C_NAME(zfderiv)
 
#define xxFDeriv   EXTERN_C_NAME(xxfderiv)
 
#define xyFDeriv   EXTERN_C_NAME(xyfderiv)
 
#define xzFDeriv   EXTERN_C_NAME(xzfderiv)
 
#define yyFDeriv   EXTERN_C_NAME(yyfderiv)
 
#define yzFDeriv   EXTERN_C_NAME(yzfderiv)
 
#define zzFDeriv   EXTERN_C_NAME(zzfderiv)
 
#define laplacianFDeriv   EXTERN_C_NAME(laplacianfderiv)
 
#define divScalarGradFDeriv   EXTERN_C_NAME(divscalargradfderiv)
 
#define DERIV_OPT(type)
 
#define DERIV_PROTO(type)
 
#define xFiniteDiffDeriv   EXTERN_C_NAME(xfinitediffderiv)
 
#define yFiniteDiffDeriv   EXTERN_C_NAME(yfinitediffderiv)
 
#define zFiniteDiffDeriv   EXTERN_C_NAME(zfinitediffderiv)
 
#define xxFiniteDiffDeriv   EXTERN_C_NAME(xxfinitediffderiv)
 
#define xyFiniteDiffDeriv   EXTERN_C_NAME(xyfinitediffderiv)
 
#define xzFiniteDiffDeriv   EXTERN_C_NAME(xzfinitediffderiv)
 
#define yyFiniteDiffDeriv   EXTERN_C_NAME(yyfinitediffderiv)
 
#define yzFiniteDiffDeriv   EXTERN_C_NAME(yzfinitediffderiv)
 
#define zzFiniteDiffDeriv   EXTERN_C_NAME(zzfinitediffderiv)
 
#define laplacianFiniteDiffDeriv   EXTERN_C_NAME(laplacianfinitediffderiv)
 
#define divFiniteDiffDeriv   EXTERN_C_NAME(divfinitediffderiv)
 
#define gradFiniteDiffDeriv   EXTERN_C_NAME(gradfinitediffderiv)
 
#define vorticityFiniteDiffDeriv   EXTERN_C_NAME(vorticityfinitediffderiv)
 
#define DERIVATIVE_OPT(type)
 
#define DERIV_PROTOTYPE(type)
 

Functions

void divScalarGradFDerivative (const realMappedGridFunction &ugf, const realMappedGridFunction &s, RealDistributedArray &derivative, const Index &I1, const Index &I2, const Index &I3, const Index &N, MappedGridOperators &mgop)
 
void scalarGradFDerivative (const realMappedGridFunction &ugf, const realMappedGridFunction &s, RealDistributedArray &derivative, const Index &I1, const Index &I2, const Index &I3, const Index &N, MappedGridOperators &mgop)
 
void derivativeScalarDerivativeFDerivative (const realMappedGridFunction &ugf, const realMappedGridFunction &s, RealDistributedArray &derivative, const int &direction1, const int &direction2, const Index &I1, const Index &I2, const Index &I3, const Index &N, MappedGridOperators &mgop)
 
void divVectorScalarFDerivative (const realMappedGridFunction &ugf, const realMappedGridFunction &s, RealDistributedArray &derivative, const Index &I1, const Index &I2, const Index &I3, const Index &N, MappedGridOperators &mgop)
 
 DERIV_PROTO (xFDeriv)
 
 DERIV_PROTO (yFDeriv)
 
 DERIV_PROTO (zFDeriv)
 
 DERIV_PROTO (xxFDeriv)
 
 DERIV_PROTO (xyFDeriv)
 
 DERIV_PROTO (xzFDeriv)
 
 DERIV_PROTO (yyFDeriv)
 
 DERIV_PROTO (yzFDeriv)
 
 DERIV_PROTO (zzFDeriv)
 
 DERIV_PROTO (laplacianFDeriv)
 
void divScalarGradFDeriv (const int &nd, const int &nd1a, const int &nd1b, const int &nd2a, const int &nd2b, const int &nd3a, const int &nd3b, const int &ndu1a, const int &ndu1b, const int &ndu2a, const int &ndu2b, const int &ndu3a, const int &ndu3b, const int &ndu4a, const int &ndu4b, const int &ndd1a, const int &ndd1b, const int &ndd2a, const int &ndd2b, const int &ndd3a, const int &ndd3b, const int &ndd4a, const int &ndd4b, const int &n1a, const int &n1b, const int &n2a, const int &n2b, const int &n3a, const int &n3b, const int &ca, const int &cb, const real &dx, const real &dr, const real &rsxy, const real &jacobian, const real &u, const real &s, real &deriv, const int &ndw, const real &w, const int &derivative, const int &derivType, const int &gridType, const int &order, const int &averagingType, const int &dir1, const int &dir2)
 
 DERIV_PROTOTYPE (xFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (yFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (zFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (xxFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (xyFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (xzFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (yyFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (yzFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (zzFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (laplacianFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (divFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (gradFiniteDiffDeriv)
 
 DERIV_PROTOTYPE (vorticityFiniteDiffDeriv)
 

Macro Definition Documentation

#define DERIV_OPT (   type)
Value:
type( mappedGrid.numberOfDimensions(), \
mask.getBase(0),mask.getBound(0),mask.getBase(1),mask.getBound(1),\
mask.getBase(2),mask.getBound(2),\
u.getBase(0),u.getBound(0),u.getBase(1),u.getBound(1), \
u.getBase(2),u.getBound(2),u.getBase(3),u.getBound(3), \
ux.getBase(0),ux.getBound(0),ux.getBase(1),ux.getBound(1), \
ux.getBase(2),ux.getBound(2),ndd4a,ndd4b,\
n1a,n1b,n2a,n2b,n3a,n3b, ca,cb, h21(0), d22(0), d12(0), h22(0), d14(0), d24(0), h41(0), h42(0), \
*rsxy, *getDataPointer(u), *getDataPointer(ux), gridType, orderOfAccuracy )

Referenced by MappedGridOperators::derivativeInternal().

#define DERIV_PROTO (   type)
Value:
void type( const int &nd, \
const int & nd1a, const int & nd1b, const int & nd2a, const int & nd2b,\
const int & nd3a, const int & nd3b, \
const int & ndu1a, const int & ndu1b, const int & ndu2a, const int & ndu2b,\
const int & ndu3a, const int & ndu3b, const int & ndu4a, const int & ndu4b, \
const int & ndd1a, const int & ndd1b, const int & ndd2a, const int & ndd2b,\
const int & ndd3a, const int & ndd3b, const int & ndd4a, const int & ndd4b, \
const int &n1a, const int &n1b,const int &n2a,const int &n2b,const int &n3a,const int &n3b, \
const int &ca,const int &cb, \
const real & h21, const real & d22, const real & d12, const real & h22, \
const real & d14, const real & d24, const real & h41, const real & h42, \
const real & rsxy, \
const real & u, \
const real & ux, \
const int & gridType, const int & order )
#define DERIV_PROTOTYPE (   type)
Value:
void \
type( const int&nd, const int&nd1a,const int&nd1b,const int&nd2a,const int&nd2b,\
const int&nd3a,const int&nd3b, const int&ndu1a,\
const int&ndu1b,const int&ndu2a,const int&ndu2b,const int&ndu3a,const int&ndu3b,\
const int&ndu4a,const int&ndu4b, const int&ndd1a,const int&ndd1b,const int&ndd2a,\
const int&ndd2b,const int&ndd3a,const int&ndd3b,const int&ndd4a,const int&ndd4b, \
const int&ipar, const real&rpar, const real&u,const real&deriv, const real&rsxy, const int&mask )
#define DERIVATIVE (   x,
  xDerivative 
)
Value:
realMappedGridFunction MappedGridOperators:: \
x(const realMappedGridFunction & u, \
const Index & I1_, const Index & I2_, const Index & I3_, const Index & I4_, \
const Index & I5_, const Index & I6_, const Index & I7_, const Index & I8_ ) \
{ \
return xi(xDerivative,u,I1_,I2_,I3_,I4_,I5_,I6_); \
} \
realMappedGridFunction MappedGridOperators:: \
x(const realMappedGridFunction & u, \
const GridFunctionParameters & gfType, \
const Index & I1_, const Index & I2_, const Index & I3_, const Index & I4_, \
const Index & I5_, const Index & I6_, const Index & I7_, const Index & I8_ ) \
{ \
return xi(xDerivative,u,I1_,I2_,I3_,I4_,I5_,I6_); \
}
#define DERIVATIVE_OPT (   type)
Value:
type( mappedGrid.numberOfDimensions(), \
mask.getBase(0),mask.getBound(0),mask.getBase(1),mask.getBound(1),\
mask.getBase(2),mask.getBound(2),\
u.getBase(0),u.getBound(0),u.getBase(1),u.getBound(1), \
u.getBase(2),u.getBound(2),u.getBase(3),u.getBound(3), \
ux.getBase(0),ux.getBound(0),ux.getBase(1),ux.getBound(1), \
ux.getBase(2),ux.getBound(2),ndd4a,ndd4b,\
ipar[0],rpar[0],\
*getDataPointer(u), *getDataPointer(ux), *rsxy, *pmask )

Referenced by MappedGridOperators::derivativeInternal().

#define divFiniteDiffDeriv   EXTERN_C_NAME(divfinitediffderiv)
#define divScalarGradFDeriv   EXTERN_C_NAME(divscalargradfderiv)
#define gradFiniteDiffDeriv   EXTERN_C_NAME(gradfinitediffderiv)
#define laplacianFDeriv   EXTERN_C_NAME(laplacianfderiv)
#define laplacianFiniteDiffDeriv   EXTERN_C_NAME(laplacianfinitediffderiv)
#define U (   I1,
  I2,
  I3,
 
)    u(I1,I2,I3,N)
#define UR2 (   I1,
  I2,
  I3,
 
)    ur(I1,I2,I3,N)
#define UR4 (   I1,
  I2,
  I3,
 
)    ur(I1,I2,I3,N)
#define US2 (   I1,
  I2,
  I3,
 
)    us(I1,I2,I3,N)
#define US4 (   I1,
  I2,
  I3,
 
)    us(I1,I2,I3,N)
#define UT2 (   I1,
  I2,
  I3,
 
)    ut(I1,I2,I3,N)
#define UT4 (   I1,
  I2,
  I3,
 
)    ut(I1,I2,I3,N)
#define vorticityFiniteDiffDeriv   EXTERN_C_NAME(vorticityfinitediffderiv)
#define xFDeriv   EXTERN_C_NAME(xfderiv)
#define xFiniteDiffDeriv   EXTERN_C_NAME(xfinitediffderiv)
#define xxFDeriv   EXTERN_C_NAME(xxfderiv)
#define xxFiniteDiffDeriv   EXTERN_C_NAME(xxfinitediffderiv)
#define xyFDeriv   EXTERN_C_NAME(xyfderiv)
#define xyFiniteDiffDeriv   EXTERN_C_NAME(xyfinitediffderiv)
#define xzFDeriv   EXTERN_C_NAME(xzfderiv)
#define xzFiniteDiffDeriv   EXTERN_C_NAME(xzfinitediffderiv)
#define yFDeriv   EXTERN_C_NAME(yfderiv)
#define yFiniteDiffDeriv   EXTERN_C_NAME(yfinitediffderiv)
#define yyFDeriv   EXTERN_C_NAME(yyfderiv)
#define yyFiniteDiffDeriv   EXTERN_C_NAME(yyfinitediffderiv)
#define yzFDeriv   EXTERN_C_NAME(yzfderiv)
#define yzFiniteDiffDeriv   EXTERN_C_NAME(yzfinitediffderiv)
#define zFDeriv   EXTERN_C_NAME(zfderiv)
#define zFiniteDiffDeriv   EXTERN_C_NAME(zfinitediffderiv)
#define zzFDeriv   EXTERN_C_NAME(zzfderiv)
#define zzFiniteDiffDeriv   EXTERN_C_NAME(zzfinitediffderiv)

Function Documentation

DERIV_PROTO ( xFDeriv  )
DERIV_PROTO ( yFDeriv  )
DERIV_PROTO ( zFDeriv  )
DERIV_PROTO ( xxFDeriv  )
DERIV_PROTO ( xyFDeriv  )
DERIV_PROTO ( xzFDeriv  )
DERIV_PROTO ( yyFDeriv  )
DERIV_PROTO ( yzFDeriv  )
DERIV_PROTO ( zzFDeriv  )
DERIV_PROTO ( laplacianFDeriv  )
DERIV_PROTOTYPE ( xFiniteDiffDeriv  )
DERIV_PROTOTYPE ( yFiniteDiffDeriv  )
DERIV_PROTOTYPE ( zFiniteDiffDeriv  )
DERIV_PROTOTYPE ( xxFiniteDiffDeriv  )
DERIV_PROTOTYPE ( xyFiniteDiffDeriv  )
DERIV_PROTOTYPE ( xzFiniteDiffDeriv  )
DERIV_PROTOTYPE ( yyFiniteDiffDeriv  )
DERIV_PROTOTYPE ( yzFiniteDiffDeriv  )
DERIV_PROTOTYPE ( zzFiniteDiffDeriv  )
DERIV_PROTOTYPE ( laplacianFiniteDiffDeriv  )
DERIV_PROTOTYPE ( divFiniteDiffDeriv  )
DERIV_PROTOTYPE ( gradFiniteDiffDeriv  )
DERIV_PROTOTYPE ( vorticityFiniteDiffDeriv  )
void derivativeScalarDerivativeFDerivative ( const realMappedGridFunction ugf,
const realMappedGridFunction s,
RealDistributedArray derivative,
const int &  direction1,
const int &  direction2,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const Index &  N,
MappedGridOperators mgop 
)
void divScalarGradFDeriv ( const int &  nd,
const int &  nd1a,
const int &  nd1b,
const int &  nd2a,
const int &  nd2b,
const int &  nd3a,
const int &  nd3b,
const int &  ndu1a,
const int &  ndu1b,
const int &  ndu2a,
const int &  ndu2b,
const int &  ndu3a,
const int &  ndu3b,
const int &  ndu4a,
const int &  ndu4b,
const int &  ndd1a,
const int &  ndd1b,
const int &  ndd2a,
const int &  ndd2b,
const int &  ndd3a,
const int &  ndd3b,
const int &  ndd4a,
const int &  ndd4b,
const int &  n1a,
const int &  n1b,
const int &  n2a,
const int &  n2b,
const int &  n3a,
const int &  n3b,
const int &  ca,
const int &  cb,
const real dx,
const real dr,
const real rsxy,
const real jacobian,
const real u,
const real s,
real deriv,
const int &  ndw,
const real w,
const int &  derivative,
const int &  derivType,
const int &  gridType,
const int &  order,
const int &  averagingType,
const int &  dir1,
const int &  dir2 
)
void divScalarGradFDerivative ( const realMappedGridFunction ugf,
const realMappedGridFunction s,
RealDistributedArray derivative,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const Index &  N,
MappedGridOperators mgop 
)
void divVectorScalarFDerivative ( const realMappedGridFunction ugf,
const realMappedGridFunction s,
RealDistributedArray derivative,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const Index &  N,
MappedGridOperators mgop 
)
void scalarGradFDerivative ( const realMappedGridFunction ugf,
const realMappedGridFunction s,
RealDistributedArray derivative,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const Index &  N,
MappedGridOperators mgop 
)