MOAB: Mesh Oriented datABase  (version 5.2.1)
TempestOnlineMap.cpp File Reference
#include "Announce.h"
#include "DataArray3D.h"
#include "FiniteElementTools.h"
#include "TriangularQuadrature.h"
#include "GaussQuadrature.h"
#include "GaussLobattoQuadrature.h"
#include "SparseMatrix.h"
#include "STLStringHelper.h"
#include "moab/Remapping/TempestOnlineMap.hpp"
#include "DebugOutput.hpp"
#include "moab/TupleList.hpp"
#include <fstream>
#include <cmath>
#include <cstdlib>
#include "netcdfcpp.h"
+ Include dependency graph for TempestOnlineMap.cpp:

Go to the source code of this file.

Defines

#define MPI_CHK_ERR(err)

Functions

void LinearRemapFVtoGLL (const Mesh &meshInput, const Mesh &meshOutput, const Mesh &meshOverlap, const DataArray3D< int > &dataGLLNodes, const DataArray3D< double > &dataGLLJacobian, const DataArray1D< double > &dataGLLNodalArea, int nOrder, OfflineMap &mapRemap, int nMonotoneType, bool fContinuous, bool fNoConservation)
void LinearRemapFVtoGLL_Volumetric (const Mesh &meshInput, const Mesh &meshOutput, const Mesh &meshOverlap, const DataArray3D< int > &dataGLLNodes, const DataArray3D< double > &dataGLLJacobian, const DataArray1D< double > &dataGLLNodalArea, int nOrder, OfflineMap &mapRemap, int nMonotoneType, bool fContinuous, bool fNoConservation)
static void ParseVariableList (const std::string &strVariables, std::vector< std::string > &vecVariableStrings)

Define Documentation

#define MPI_CHK_ERR (   err)
Value:
if( err )                                                   \
    {                                                           \
        std::cout << "MPI Failure. ErrorCode (" << err << ") "; \
        std::cout << "\nMPI Aborting... \n";                    \
        return moab::MB_FAILURE;                                \
    }

Definition at line 57 of file TempestOnlineMap.cpp.


Function Documentation

void LinearRemapFVtoGLL ( const Mesh &  meshInput,
const Mesh &  meshOutput,
const Mesh &  meshOverlap,
const DataArray3D< int > &  dataGLLNodes,
const DataArray3D< double > &  dataGLLJacobian,
const DataArray1D< double > &  dataGLLNodalArea,
int  nOrder,
OfflineMap &  mapRemap,
int  nMonotoneType,
bool  fContinuous,
bool  fNoConservation 
)
void LinearRemapFVtoGLL_Volumetric ( const Mesh &  meshInput,
const Mesh &  meshOutput,
const Mesh &  meshOverlap,
const DataArray3D< int > &  dataGLLNodes,
const DataArray3D< double > &  dataGLLJacobian,
const DataArray1D< double > &  dataGLLNodalArea,
int  nOrder,
OfflineMap &  mapRemap,
int  nMonotoneType,
bool  fContinuous,
bool  fNoConservation 
)
static void ParseVariableList ( const std::string &  strVariables,
std::vector< std::string > &  vecVariableStrings 
) [static]

Definition at line 136 of file TempestOnlineMap.cpp.

Referenced by moab::TempestOnlineMap::GenerateRemappingWeights().

{
    unsigned iVarBegin   = 0;
    unsigned iVarCurrent = 0;

    // Parse variable name
    for( ;; )
    {
        if( ( iVarCurrent >= strVariables.length() ) || ( strVariables[iVarCurrent] == ',' ) ||
            ( strVariables[iVarCurrent] == ' ' ) )
        {
            if( iVarCurrent == iVarBegin )
            {
                if( iVarCurrent >= strVariables.length() ) { break; }
                continue;
            }

            vecVariableStrings.push_back( strVariables.substr( iVarBegin, iVarCurrent - iVarBegin ) );

            iVarBegin = iVarCurrent + 1;
        }

        iVarCurrent++;
    }
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines