Overture  Version 25
Macros | Functions
gradFDerivative.C File Reference
#include "MappedGridOperators.h"
#include "xD.h"
Include dependency graph for gradFDerivative.C:

Macros

#define ND(n, d)   ((n)+componentLength*(d))
 
#define DERIVATIVE(type)
 
#define h21(n)   h21c[n]
 
#define h41(n)   h41c[n]
 

Functions

void gradFDerivative (const realMappedGridFunction &ugf, RealDistributedArray &derivative, const Index &I1, const Index &I2, const Index &I3, const Index &N, MappedGridOperators &mgop)
 

Macro Definition Documentation

#define DERIVATIVE (   type)
Value:
if( numberOfComponents==0 ) \
{ \
derivative(I1,I2,I3,0)=UX ## type(I1,I2,I3,0); \
derivative(I1,I2,I3,1)=UY ## type(I1,I2,I3,0); \
if( numberOfDimensions==3 ) \
derivative(I1,I2,I3,2)=UZ ## type(I1,I2,I3,0); \
} \
else \
{ \
for( n=N.getBase(); n<=N.getBound(); n++ ) \
{ \
derivative(I1,I2,I3,ND(n,0))=UX ## type(I1,I2,I3,n); \
derivative(I1,I2,I3,ND(n,1))=UY ## type(I1,I2,I3,n); \
if( numberOfDimensions==3 ) \
derivative(I1,I2,I3,ND(n,2))=UZ ## type(I1,I2,I3,n); \
} \
}

Referenced by gradFDerivative().

#define h21 (   n)    h21c[n]
#define h41 (   n)    h41c[n]
#define ND (   n,
 
)    ((n)+componentLength*(d))

Function Documentation

void gradFDerivative ( const realMappedGridFunction ugf,
RealDistributedArray derivative,
const Index &  I1,
const Index &  I2,
const Index &  I3,
const Index &  N,
MappedGridOperators mgop 
)