PlasCom2  1.0
XPACC Multi-physics simluation application
Stencil.C File Reference
#include "Stencil.H"
#include "OperatorKernels.H"
#include <iostream>
Include dependency graph for Stencil.C:

Go to the source code of this file.

Namespaces

 plascom2
 
 
 plascom2::operators
 Namespace for PlasCom2 numerical operators and associated data structures.
 
 plascom2::operators::dissipation
 
 plascom2::operators::sbp
 Namespace for SBP operators and associated data structures.
 
 mask
 

Functions

double GetFunctionOrder (std::vector< double > &functionValues, std::vector< double > &independentVariable)
 
int Initialize (stencilset &stencilSet1, stencilset &stencilSet2, int interiorOrder)
 
bool IsValidOrder (int overallOrder)
 
int Initialize (base &stencilSet, int interiorOrder)
 Initialize the sbp::base stencilset with the SBP operator of given order. More...
 
void OperatorSetup (base &stencilSet, int interiorOrder, int boundaryDepth, int boundaryWidth, double boundaryWeight, std::vector< double > centralWeightsRight, std::vector< std::vector< double > > leftWeights, std::vector< int > leftOrders)
 Setup the SBP operator given the appropriate coefficients – called from Initialize. More...
 
int BruteTest1 (base &inOperator, int interiorOrder, int numDim, int numComponents, int numTrials, std::vector< bool > &testResults)
 Brute-force accuracy test for SBP operators. More...
 
int CreateStencilConnectivity (int numDim, size_t *dimSizes, size_t *opInterval, int boundaryDepth, int *stencilID, bool fortranInterval=false)
 Creates simple stencil connectivity assuming all domain boundaries are physical boundaries. More...
 
int CreateStencilConnectivity (int numDim, size_t *dimSizes, size_t *opInterval, int boundaryDepth, int *periodicDirs, int *stencilID, bool fortranInterval=false)
 Creates simple stencil connectivity assuming all domain boundaries are either periodic or physical boundaries. More...
 
int BoundaryStencilConnectivity (std::vector< size_t > &bufferSizes, pcpp::IndexIntervalType &partitionInterval, pcpp::IndexIntervalType &partitionBufferInterval, pcpp::IndexIntervalType &boundaryInterval, int boundaryDepth, int boundaryDirection, int *stencilConnectivity)
 Update a stencil connectivity with a boundary. More...
 
int HoleStencilConnectivity (std::vector< size_t > &bufferSizes, pcpp::IndexIntervalType &partitionInterval, pcpp::IndexIntervalType &partitionBufferInterval, pcpp::IndexIntervalType &holeInterval, int holeStencil, int *stencilConnectivity)
 Update a stencil connectivity with a hole. More...
 
size_t IntervalSize (int numDim, size_t *opInterval)
 
size_t BufferSize (int numDim, size_t *dimSize)
 
int StructuredHole (int numDim, size_t *dimSizes, size_t *opInterval, size_t *holeInterval, int boundaryDepth, int boundaryStart, int holeBit, int *inMask, int *stencilID)
 
int MaskStencilConnectivity (int numDim, size_t *dimSizes, size_t *opInterval, int boundaryDepth, int boundaryStart, int holeBit, int *inMask, int *stencilID)
 
int DetectHoles (int numDim, size_t *dimSizes, size_t *opInterval, int boundaryDepth, int holeBit, int *inMask, int *stencilID)
 Detect unstructured holes and set up boundary stencil id's accordingly. More...
 
int InvertStencilConnectivity (int numDim, size_t *dimSizes, size_t *opInterval, int numStencils, int *stencilID, size_t *dualStencilConn, size_t *numPointsStencil, bool fortranInterval=false)
 Inverts stencil connectivity to populate the so-called dual stencil connectivity More...
 
void SetMask (const std::vector< size_t > &opIndices, int maskBits, int *inMask)
 
void SetMask (const std::vector< size_t > &bufferSizes, const pcpp::IndexIntervalType &opInterval, int maskBits, int *inMask)
 
void UnSetMask (const std::vector< size_t > &opIndices, int maskBits, int *inMask)
 
void UnSetMask (const std::vector< size_t > &bufferSizes, const pcpp::IndexIntervalType &opInterval, int maskBits, int *inMask)
 

Function Documentation

◆ GetFunctionOrder()

double GetFunctionOrder ( std::vector< double > &  functionValues,
std::vector< double > &  independentVariable 
)

Definition at line 5 of file Stencil.C.

Referenced by plascom2::operators::sbp::BruteTest1().

Here is the caller graph for this function: