Overture  Version 25
Macros | Functions
MappedGrid.C File Reference
#include "MappedGrid.h"
#include "LineMapping.h"
#include "SquareMapping.h"
#include "BoxMapping.h"
#include "ReparameterizationTransform.h"
#include "UnstructuredMapping.h"
#include <algorithm>
#include "ParallelUtility.h"
#include "App.h"
Include dependency graph for MappedGrid.C:

Macros

#define extendedRange(side, axis)   pExtendedRange[(side)+2*(axis)]
 
#define MAPPED_GRID_UPDATE_INDIRECT_ADDRESSING_VECTOR(I, Iarray, kd, pad)
 
#define MG_NEW   ::new
 
#define MAPPED_GRID_DATA_DESTROY(x)   if (x) { ::delete x; x = NULL; }
 

Functions

ostream & operator<< (ostream &s, const MappedGrid &g)
 

Macro Definition Documentation

#define extendedRange (   side,
  axis 
)    pExtendedRange[(side)+2*(axis)]
#define MAPPED_GRID_DATA_DESTROY (   x)    if (x) { ::delete x; x = NULL; }

Referenced by MappedGridData::destroy().

#define MAPPED_GRID_UPDATE_INDIRECT_ADDRESSING_VECTOR (   I,
  Iarray,
  kd,
  pad 
)
Value:
Iarray.redim(Range(indexRange(0,kd)-pad,indexRange(1,kd)+pad)); \
I = Iarray.getDataPointer() - Iarray.getBase(0); \
if (isPeriodic(kd)) { \
const Integer thePeriod = indexRange(1,kd) - indexRange(0,kd) + 1; \
for (i=indexRange(0,kd); i<=indexRange(1,kd); i++) \
I[i] = i; \
for (i=indexRange(1,kd)+1; i<=indexRange(1,kd)+pad; i++) \
I[i] = I[i-thePeriod]; \
for (i=indexRange(0,kd)-1; i>=indexRange(0,kd)-pad; i--) \
I[i] = I[i+thePeriod]; \
} else { \
for (Integer i=indexRange(0,kd)-pad; i<=indexRange(1,kd)+pad; i++) \
I[i] = i; \
}

Referenced by MappedGridData::update().

#define MG_NEW   ::new

Function Documentation

ostream& operator<< ( ostream &  s,
const MappedGrid g 
)