Nektar++
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
Nektar::LibUtilities Namespace Reference

Namespaces

namespace  CheckCastUnitTest
 
namespace  CompressData
 
namespace  H5
 
namespace  StdHexData
 
namespace  StdPrismData
 
namespace  StdPyrData
 
namespace  StdQuadData
 
namespace  StdSegData
 
namespace  StdTetData
 
namespace  StdTriData
 

Classes

class  AdamsBashforthOrder1TimeIntegrationScheme
 
class  AdamsBashforthOrder2TimeIntegrationScheme
 
class  AdamsBashforthOrder3TimeIntegrationScheme
 
class  AdamsBashforthOrder4TimeIntegrationScheme
 
class  AdamsBashforthTimeIntegrationScheme
 
class  AdamsMoultonOrder1TimeIntegrationScheme
 
class  AdamsMoultonOrder2TimeIntegrationScheme
 
class  AdamsMoultonOrder3TimeIntegrationScheme
 
class  AdamsMoultonOrder4TimeIntegrationScheme
 
class  AdamsMoultonTimeIntegrationScheme
 
class  BackwardEulerTimeIntegrationScheme
 
class  Basis
 Represents a basis of a given type. More...
 
class  BasisKey
 Describes the specification for a Basis. More...
 
class  BDFImplicitOrder1TimeIntegrationScheme
 
class  BDFImplicitOrder2TimeIntegrationScheme
 
class  BDFImplicitOrder3TimeIntegrationScheme
 
class  BDFImplicitOrder4TimeIntegrationScheme
 
class  BDFImplicitTimeIntegrationScheme
 
class  BLPoints
 
class  ClassicalRungeKutta4TimeIntegrationScheme
 
struct  CmdLineArg
 
class  CNABTimeIntegrationScheme
 
class  Comm
 Base communications class. More...
 
class  CommCwipi
 A global linear system. More...
 
class  CommDataTypeTraits
 
class  CommDataTypeTraits< Array< OneD, elemT > >
 
class  CommDataTypeTraits< std::vector< elemT > >
 
class  CommMpi
 A global linear system. More...
 
class  CommRequest
 Class for communicator request type. More...
 
class  CommRequestMpi
 Class for communicator request type. More...
 
class  CommSerial
 A global linear system. More...
 
class  CsvIO
 
class  DataSource
 
struct  defOpLessCreator
 
class  DIRKOrder1TimeIntegrationScheme
 
class  DIRKOrder2TimeIntegrationScheme
 
class  DIRKOrder3_ES5TimeIntegrationScheme
 
class  DIRKOrder3TimeIntegrationScheme
 
class  DIRKOrder4_ES6TimeIntegrationScheme
 
class  DIRKTimeIntegrationScheme
 
struct  DomainRange
 
class  Equation
 
class  EulerExponentialTimeIntegrationScheme
 
class  EulerTimeIntegrationScheme
 
class  ExplicitTimeIntegrationSchemeSDC
 
struct  FieldDefinitions
 Metadata that describes the storage properties of field output. More...
 
class  FieldIO
 Class for operating on Nektar++ input/output files. More...
 
class  FieldIOHdf5
 
class  FieldIOXml
 
class  ForwardEulerTimeIntegrationScheme
 
class  FourierPoints
 
class  FourierSingleModePoints
 
class  FractionalInTimeIntegrationScheme
 Class for fractional-in-time integration. More...
 
struct  func
 
struct  functions
 
struct  FunctionVariableDefinition
 
class  GaussPoints
 
class  GitConsts
 
class  Graph
 
class  GraphEdgeObject
 
class  GraphVertexObject
 
class  H5DataSource
 
class  H5TagWriter
 
class  IMEXdirk_1_1_1TimeIntegrationScheme
 
class  IMEXdirk_1_2_1TimeIntegrationScheme
 
class  IMEXdirk_1_2_2TimeIntegrationScheme
 
class  IMEXdirk_2_2_2TimeIntegrationScheme
 
class  IMEXdirk_2_3_2TimeIntegrationScheme
 
class  IMEXdirk_2_3_3TimeIntegrationScheme
 
class  IMEXdirk_3_4_3TimeIntegrationScheme
 
class  IMEXdirk_4_4_3TimeIntegrationScheme
 
class  IMEXdirkTimeIntegrationScheme
 
class  IMEXGearTimeIntegrationScheme
 
class  IMEXOrder1TimeIntegrationScheme
 
class  IMEXOrder2TimeIntegrationScheme
 
class  IMEXOrder3TimeIntegrationScheme
 
class  IMEXOrder4TimeIntegrationScheme
 
class  IMEXTimeIntegrationScheme
 
class  IMEXTimeIntegrationSchemeSDC
 
class  ImplicitTimeIntegrationSchemeSDC
 
class  Interpolator
 A class that contains algorithms for interpolation between pts fields, expansions and different meshes. More...
 
class  Interpreter
 Interpreter class for the evaluation of mathematical expressions. More...
 
class  MCNABTimeIntegrationScheme
 
class  NekFactory
 Provides a generic Factory class. More...
 
class  NekFFTW
 
class  NekLinSysIter
 
class  NekLinSysIterCG
 
class  NekLinSysIterCGLoc
 
class  NekLinSysIterFixedpointJacobi
 
class  NekLinSysIterGMRES
 
class  NekLinSysIterGMRESLoc
 
class  NekManager
 
class  NekNonlinSysIter
 
class  NekNonlinSysIterNewton
 
class  NekSys
 
class  NekSysKey
 
class  NekSysOperators
 
class  NektarFFT
 
class  NodalHexElec
 
class  NodalPrismElec
 
class  NodalPrismEvenlySpaced
 
class  NodalPrismSPI
 
class  NodalQuadElec
 
class  NodalTetElec
 
class  NodalTetEvenlySpaced
 
class  NodalTetSPI
 
class  NodalTriElec
 
class  NodalTriEvenlySpaced
 
class  NodalTriFekete
 
class  NodalTriSPI
 
class  NodalUtil
 A class to assist in the construction of nodal simplex and hybrid elements in two and three dimensions. More...
 
class  NodalUtilHex
 Specialisation of the NodalUtil class to support nodal hex elements. More...
 
class  NodalUtilPrism
 Specialisation of the NodalUtil class to support nodal prismatic elements. More...
 
class  NodalUtilQuad
 Specialisation of the NodalUtil class to support nodal quad elements. More...
 
class  NodalUtilTetrahedron
 Specialisation of the NodalUtil class to support nodal tetrahedral elements. More...
 
class  NodalUtilTriangle
 Specialisation of the NodalUtil class to support nodal triangular elements. More...
 
class  NoSchemeTimeIntegrationScheme
 Base class for No time integration schemes. More...
 
class  Points
 Stores a set of points of datatype DataT, defined by a PointKey. More...
 
class  PointsKey
 Defines a specification for a set of points. More...
 
class  PolyEPoints
 
class  PtsField
 
class  PtsIO
 
class  RungeKutta1TimeIntegrationScheme
 
class  RungeKutta2_ImprovedEulerTimeIntegrationScheme
 
class  RungeKutta2_SSPTimeIntegrationScheme
 
class  RungeKutta2TimeIntegrationScheme
 
class  RungeKutta3_SSPTimeIntegrationScheme
 
class  RungeKutta3TimeIntegrationScheme
 
class  RungeKutta4TimeIntegrationScheme
 
class  RungeKutta5TimeIntegrationScheme
 
class  RungeKuttaTimeIntegrationScheme
 
class  SessionReader
 Reads and parses information from a Nektar++ XML session file. More...
 
class  TagWriter
 Base class for writing hierarchical data (XML or HDF5). More...
 
class  TimeIntegrationAlgorithmGLM
 
class  TimeIntegrationScheme
 Base class for time integration schemes. More...
 
class  TimeIntegrationSchemeGEM
 Class for spectral deferred correction integration. More...
 
class  TimeIntegrationSchemeGLM
 Base class for GLM time integration schemes. More...
 
class  TimeIntegrationSchemeOperators
 Binds a set of functions for use by time integration schemes. More...
 
class  TimeIntegrationSchemeSDC
 Class for spectral deferred correction integration. More...
 
class  TimeIntegrationSolutionGLM
 
struct  TimeIntScheme
 
class  Timer
 
class  Transposition
 
class  XmlDataSource
 
class  XmlTagWriter
 

Typedefs

typedef std::shared_ptr< CsvIOCsvIOSharedPtr
 
typedef std::shared_ptr< DomainRangeDomainRangeShPtr
 
typedef std::shared_ptr< EquationEquationSharedPtr
 
typedef std::map< std::string, std::string > FieldMetaDataMap
 
typedef std::shared_ptr< TagWriterTagWriterSharedPtr
 
typedef std::shared_ptr< DataSourceDataSourceSharedPtr
 
typedef std::shared_ptr< FieldDefinitionsFieldDefinitionsSharedPtr
 
typedef LibUtilities::NekFactory< std::string, FieldIO, LibUtilities::CommSharedPtr, bool > FieldIOFactory
 Datatype of the NekFactory used to instantiate classes. More...
 
typedef std::shared_ptr< FieldIOFieldIOSharedPtr
 
typedef std::shared_ptr< H5DataSourceH5DataSourceSharedPtr
 
typedef std::shared_ptr< H5TagWriterH5TagWriterSharedPtr
 
typedef std::shared_ptr< XmlDataSourceXmlDataSourceSharedPtr
 
typedef std::shared_ptr< XmlTagWriterXmlTagWriterSharedPtr
 
typedef std::shared_ptr< InterpolatorInterpolatorSharedPtr
 
typedef std::shared_ptr< PtsFieldPtsFieldSharedPtr
 
typedef std::map< std::string, std::string > PtsMetaDataMap
 
typedef std::shared_ptr< PtsIOPtsIOSharedPtr
 
typedef std::map< std::string, std::string > SolverInfoMap
 
typedef std::map< std::string, NekDoubleParameterMap
 
typedef std::map< std::string, std::string > GeometricInfoMap
 
typedef std::vector< std::string > VariableList
 
typedef std::map< std::string, std::string > TagMap
 
typedef std::map< std::string, std::string > FilterParams
 
typedef std::vector< std::pair< std::string, FilterParams > > FilterMap
 
typedef std::map< std::string, CmdLineArgCmdLineArgMap
 
typedef std::map< std::string, int > EnumMap
 
typedef std::map< std::string, EnumMapEnumMapList
 
typedef std::map< std::string, std::string > GloSysInfoMap
 
typedef std::map< std::string, GloSysInfoMapGloSysSolnInfoList
 
typedef std::map< std::pair< std::string, int >, FunctionVariableDefinitionFunctionVariableMap
 
typedef std::map< std::string, FunctionVariableMapFunctionMap
 
typedef std::shared_ptr< SessionReaderSessionReaderSharedPtr
 
typedef std::shared_ptr< CommCommSharedPtr
 Pointer to a Communicator object. More...
 
typedef LibUtilities::NekFactory< std::string, Comm, int, char ** > CommFactory
 Datatype of the NekFactory used to instantiate classes derived from the EquationSystem class. More...
 
typedef std::shared_ptr< CommRequestCommRequestSharedPtr
 
typedef std::shared_ptr< CommCwipiCommCwipiSharedPtr
 Pointer to a Communicator object. More...
 
typedef unsigned int CommDataType
 
typedef std::shared_ptr< CommMpiCommMpiSharedPtr
 Pointer to a Communicator object. More...
 
typedef std::shared_ptr< CommRequestMpiCommRequestMpiSharedPtr
 
typedef std::shared_ptr< CommSerialCommSerialSharedPtr
 Pointer to a Communicator object. More...
 
typedef std::shared_ptr< TranspositionTranspositionSharedPtr
 
typedef std::shared_ptr< NekFFTWNekFFTWSharedPtr
 
typedef std::shared_ptr< NektarFFTNektarFFTSharedPtr
 
typedef LibUtilities::NekFactory< std::string, NektarFFT, int > NektarFFTFactory
 Datatype of the NekFactory used to instantiate classes derived from the NektarFFT class. More...
 
typedef std::vector< BasisKeyBasisKeyVector
 Name for a vector of BasisKeys. More...
 
typedef std::shared_ptr< BasisBasisSharedPtr
 
typedef std::vector< BasisSharedPtrBasisVector
 
typedef Points< NekDoublePointsBaseType
 
typedef std::shared_ptr< Points< NekDouble > > PointsSharedPtr
 
typedef size_t GraphVertexID
 
typedef NekManager< PointsKey, Points< NekDouble >, PointsKey::opLessPointsManagerT
 
typedef NekManager< BasisKey, Basis, BasisKey::opLessBasisManagerT
 
typedef std::shared_ptr< NekMatrix< NekDouble > > SharedMatrix
 
typedef std::vector< PointsKeyPointsKeyVector
 
typedef NekDouble(* PFD) ()
 
typedef NekDouble(* PFD1) (NekDouble)
 
typedef NekDouble(* PFD2) (NekDouble, NekDouble)
 
typedef NekDouble(* PFD3) (NekDouble, NekDouble, NekDouble)
 
typedef NekDouble(* PFD4) (NekDouble, NekDouble, NekDouble, NekDouble)
 
typedef std::shared_ptr< InterpreterInterpreterSharedPtr
 
typedef std::shared_ptr< NekLinSysIterNekLinSysIterSharedPtr
 
typedef LibUtilities::NekFactory< std::string, NekLinSysIter, const LibUtilities::SessionReaderSharedPtr &, const LibUtilities::CommSharedPtr &, const int, const NekSysKey & > NekLinSysIterFactory
 
typedef std::shared_ptr< NekLinSysIterCGNekLinSysIterCGSharedPtr
 
typedef std::shared_ptr< NekLinSysIterCGLocNekLinSysIterCGLocSharedPtr
 
typedef std::shared_ptr< NekLinSysIterFixedpointJacobiNekLinSysIterFixedpointJacobiSharedPtr
 
typedef std::shared_ptr< NekNonlinSysIterNekNonlinSysIterSharedPtr
 
typedef LibUtilities::NekFactory< std::string, NekNonlinSysIter, const LibUtilities::SessionReaderSharedPtr &, const LibUtilities::CommSharedPtr &, const int, const NekSysKey & > NekNonlinSysIterFactory
 
typedef std::shared_ptr< NekSysNekSysSharedPtr
 
typedef NekFactory< std::string, TimeIntegrationScheme, std::string, size_t, std::vector< NekDouble > > TimeIntegrationSchemeFactory
 Datatype of the NekFactory used to instantiate classes derived from the EquationSystem class. More...
 
typedef std::shared_ptr< TimeIntegrationSchemeOperatorsTimeIntegrationSchemeOperatorsSharedPtr
 
template<class T >
using AT = Array< OneD, T >
 
typedef const AT< const AT< AT< NekDouble > > > ConstTripleArray
 
typedef AT< AT< AT< NekDouble > > > TripleArray
 
typedef const AT< const AT< NekDouble > > ConstDoubleArray
 
typedef AT< AT< NekDouble > > DoubleArray
 
typedef const AT< const NekDoubleConstSingleArray
 
typedef AT< NekDoubleSingleArray
 
typedef AT< AT< AT< std::complex< NekDouble > > > > ComplexTripleArray
 
typedef const AT< const AT< std::complex< NekDouble > > > ConstComplexDoubleArray
 
typedef AT< AT< std::complex< NekDouble > > > ComplexDoubleArray
 
typedef const AT< const std::complex< NekDouble > > ConstComplexSingleArray
 
typedef AT< std::complex< NekDouble > > ComplexSingleArray
 
typedef std::shared_ptr< TimeIntegrationSchemeTimeIntegrationSchemeSharedPtr
 
typedef std::vector< TimeIntegrationSchemeSharedPtrTimeIntegrationSchemeVector
 
typedef std::shared_ptr< NoSchemeTimeIntegrationSchemeNoTimeIntegrationSchemeSharedPtr
 
typedef std::shared_ptr< FractionalInTimeIntegrationSchemeFractionalInTimeIntegrationSchemeSharedPtr
 
typedef std::vector< FractionalInTimeIntegrationSchemeSharedPtrFractionalInTimeIntegrationSchemeVector
 
typedef std::shared_ptr< TimeIntegrationSchemeGLMTimeIntegrationSchemeGLMSharedPtr
 
typedef std::vector< TimeIntegrationSchemeGLMSharedPtrTimeIntegrationSchemeGLMVector
 
typedef std::shared_ptr< TimeIntegrationAlgorithmGLMTimeIntegrationAlgorithmGLMSharedPtr
 
typedef std::vector< TimeIntegrationAlgorithmGLMSharedPtrTimeIntegrationAlgorithmGLMVector
 
typedef std::shared_ptr< TimeIntegrationSolutionGLMTimeIntegrationSolutionGLMSharedPtr
 
typedef std::vector< TimeIntegrationSolutionGLMSharedPtrTimeIntegrationSolutionGLMVector
 
typedef std::shared_ptr< TimeIntegrationSchemeGEMTimeIntegrationSchemeGEMSharedPtr
 
typedef std::vector< TimeIntegrationSchemeGEMSharedPtrTimeIntegrationSchemeGEMVector
 
typedef std::shared_ptr< TimeIntegrationSchemeSDCTimeIntegrationSchemeSDCSharedPtr
 
typedef std::vector< TimeIntegrationSchemeSDCSharedPtrTimeIntegrationSchemeSDCVector
 

Enumerations

enum  EndianType {
  eEndianUnknown , eEndianBig , eEndianLittle , eEndianBigWord ,
  eEndianLittleWord
}
 
enum  FieldIOType { eXML , eHDF5 }
 Enumerator for auto-detection of FieldIO types. More...
 
enum  InterpMethod {
  eNoMethod , eNearestNeighbour , eQuadratic , eShepard ,
  eGauss
}
 
enum  PtsType {
  ePtsFile , ePtsLine , ePtsPlane , ePtsBox ,
  ePtsSegBlock , ePtsTriBlock , ePtsTetBlock
}
 
enum  PtsInfo { eIsEquiSpacedData , ePtsPerElmtEdge }
 
enum  FunctionType { eFunctionTypeExpression , eFunctionTypeFile , eFunctionTypeTransientFile , eSIZE_FunctionType }
 
enum  ShapeType {
  eNoShapeType , ePoint , eSegment , eTriangle ,
  eQuadrilateral , eTetrahedron , ePyramid , ePrism ,
  eHexahedron , SIZE_ShapeType , Point = ePoint , Seg = eSegment ,
  Tri = eTriangle , Quad = eQuadrilateral , Tet = eTetrahedron , Pyr = ePyramid ,
  Prism = ePrism , Hex = eHexahedron
}
 
enum  ReduceOperator { ReduceSum , ReduceMax , ReduceMin , SIZE_ReduceOperator }
 Type of operation to perform in AllReduce. More...
 
enum  TranspositionDir {
  eXYtoZ , eZtoXY , eXtoYZ , eYZtoX ,
  eYZtoZY , eZYtoYZ , eXtoY , eYtoZ ,
  eZtoX , eNoTrans
}
 
enum  BasisType {
  eNoBasisType , eOrtho_A , eOrtho_B , eOrtho_C ,
  eModified_A , eModified_B , eModified_C , eOrthoPyr_C ,
  eModifiedPyr_C , eFourier , eGLL_Lagrange , eGauss_Lagrange ,
  h_p , eChebyshev , P , eFourierSingleMode ,
  eFourierHalfModeRe , eFourierHalfModeIm , SIZE_BasisType
}
 
enum  PointsType {
  eNoPointsType , eGaussGaussLegendre , eGaussRadauMLegendre , eGaussRadauPLegendre ,
  eGaussLobattoLegendre , eGaussGaussChebyshev , eGaussRadauMChebyshev , eGaussRadauPChebyshev ,
  eGaussLobattoChebyshev , eGaussRadauMAlpha0Beta1 , beta , beta ,
  beta , beta , eGaussRadauKronrodMLegendre , eGaussRadauKronrodMAlpha1Beta0 ,
  eGaussLobattoKronrodLegendre , ePolyEvenlySpaced , eFourierEvenlySpaced , eFourierSingleModeSpaced ,
  eBoundaryLayerPoints , eBoundaryLayerPointsRev , eNodalTriElec , eNodalTriFekete ,
  eNodalTriEvenlySpaced , eNodalTetEvenlySpaced , eNodalTetElec , eNodalPrismEvenlySpaced ,
  eNodalPrismElec , eNodalTriSPI , eNodalTetSPI , eNodalPrismSPI ,
  eNodalQuadElec , eNodalHexElec , SIZE_PointsType
}
 
enum  TimeIntegrationSchemeType {
  eNoTimeIntegrationSchemeType , eExplicit , eDiagonallyImplicit , eIMEX ,
  eImplicit , eExponential , eFractionalInTime
}
 

Functions

template<class To , class Ti , class = typename std::enable_if< std::is_floating_point< typename std::remove_reference<Ti>::type>::value && std::is_integral< typename std::remove_reference<To>::type>::value>::type>
To checked_cast (const Ti param)
 checked cast from float types only to int types More...
 
EndianType Endianness (void)
 
FieldIOFactoryGetFieldIOFactory ()
 Returns the FieldIO factory. More...
 
void Write (const std::string &outFile, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, const FieldMetaDataMap &fieldinfomap, const bool backup)
 This function allows for data to be written to an FLD file when a session and/or communicator is not instantiated. Typically used in utilities which do not take XML input and operate in serial only. More...
 
void Import (const std::string &infilename, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, FieldMetaDataMap &fieldinfomap, const Array< OneD, int > &ElementIDs)
 This function allows for data to be imported from an FLD file when a session and/or communicator is not instantiated. Typically used in utilities which only operate in serial. More...
 
int GetNumberOfDataPoints (const FieldDefinitionsSharedPtr &fielddefs, unsigned int &cnt)
 Compute the number of values needed to store elemental expansion. More...
 
static std::string PortablePath (const fs::path &path)
 create portable path on different platforms for std::filesystem path. More...
 
static fs::path UniquePath (std::string specFileStem)
 Create a unique (random) path, based on an input stem string. The returned string is a filename or directory that does not exist. More...
 
int PrintProgressbar (const int position, const int goal, const std::string message, int lastprogress=-1)
 Prints a progressbar. More...
 
template<class T1 , class T2 , class = typename std::enable_if< std::is_floating_point<typename std::remove_cv< typename std::remove_reference<T1>::type>::type>::value && std::is_same<typename std::remove_cv< typename std::remove_reference<T1>::type>::type, typename std::remove_cv<typename std::remove_reference< T2>::type>::type>::value>::type>
bool IsRealEqual (T1 &&lhs, T2 &&rhs, const unsigned int factor=NekConstants::kNekFloatCompFact)
 compare reals of same type with relative tolerance More...
 
template<class T1 , class T2 , class = typename std::enable_if< std::is_floating_point<typename std::remove_cv< typename std::remove_reference<T1>::type>::type>::value && std::is_same<typename std::remove_cv< typename std::remove_reference<T1>::type>::type, typename std::remove_cv<typename std::remove_reference< T2>::type>::type>::value>::type>
bool IsRealClose (T1 &&lhs, T2 &&rhs, const NekDouble tol=NekConstants::kNekMachineEpsilon)
 compare reals of same type with absolute tolerance More...
 
TiXmlElement * GetChildElementOrThrow (const std::string &filename, std::string elementName, const TiXmlHandle &docHandle)
 
int GetNumberOfCoefficients (ShapeType shape, std::vector< unsigned int > &modes, int offset=0)
 
int GetNumberOfCoefficients (ShapeType shape, int na, int nb=0, int nc=0)
 
CommFactoryGetCommFactory ()
 
int CommDataTypeGetSize (CommDataType dt)
 Return the size in bytes of a data type dt. More...
 
NektarFFTFactoryGetNektarFFTFactory ()
 
bool operator< (const BasisKey &lhs, const BasisKey &rhs)
 
bool operator> (const BasisKey &lhs, const BasisKey &rhs)
 
std::ostream & operator<< (std::ostream &os, const BasisKey &rhs)
 
bool operator== (const BasisKey &x, const BasisKey &y)
 
bool operator== (const BasisKey *x, const BasisKey &y)
 
bool operator== (const BasisKey &x, const BasisKey *y)
 
bool operator!= (const BasisKey &x, const BasisKey &y)
 
bool operator!= (const BasisKey *x, const BasisKey &y)
 
bool operator!= (const BasisKey &x, const BasisKey *y)
 
static const BasisKey NullBasisKey (eNoBasisType, 0, NullPointsKey)
 Defines a null basis with no type or points. More...
 
bool operator== (const GraphVertexObject &x, const GraphVertexObject &y)
 
bool operator!= (const GraphVertexObject &x, const GraphVertexObject &y)
 
void Interp1D (const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
 this function interpolates a 1D function \(f\) evaluated at the quadrature points of the basis fbasis0 to the function values at the quadrature points of the basis tbasis0 More...
 
void Interp1D (const PointsKey &fpoints0, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, Array< OneD, NekDouble > &to)
 
void Interp1D (const BasisKey &fbasis0, const NekDouble *from, const BasisKey &tbasis0, NekDouble *to)
 
void Interp1D (const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)
 
void Interp2D (const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
 this function interpolates a 2D function \(f\) evaluated at the quadrature points of the 2D basis, constructed by fbasis0 and fbasis1, to the function values at the quadrature points of the 2D basis, constructed by tbasis0 and tbasis1 More...
 
void Interp2D (const PointsKey &fpoints0, const PointsKey &fpoints1, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, const PointsKey &tpoints1, Array< OneD, NekDouble > &to)
 
void Interp2D (const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)
 
void Interp3D (const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
 this function interpolates a 3D function \(f\) evaluated at the quadrature points of the 3D basis, constructed by fbasis0, fbasis1, and fbasis2 to the function values at the quadrature points of the 3D basis, constructed by tbasis0, tbasis1, and tbasis2. More...
 
void Interp3D (const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, Array< OneD, NekDouble > &to)
 
void Interp3D (const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, NekDouble *to)
 
void InterpCoeff1D (const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
 
void InterpCoeff2D (const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
 
void InterpCoeff2D (const BasisKey &fbasis0, const BasisKey &fbasis1, const NekDouble *from, const BasisKey &tbasis0, const BasisKey &tbasis1, NekDouble *to)
 
void InterpCoeff3D (const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
 
void InterpCoeff3D (const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const NekDouble *from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, NekDouble *to)
 
PointsManagerTPointsManager (void)
 
BasisManagerTBasisManager (void)
 
void PhysGalerkinProject1D (const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject1D (const PointsKey &fpoints0, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject1D (const BasisKey &fbasis0, const NekDouble *from, const BasisKey &tbasis0, NekDouble *to)
 
void PhysGalerkinProject1D (const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)
 
void PhysGalerkinProject2D (const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject2D (const PointsKey &fpoints0, const PointsKey &fpoints1, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, const PointsKey &tpoints1, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject2D (const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)
 
void PhysGalerkinProject3D (const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject3D (const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const Array< OneD, const NekDouble > &from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, Array< OneD, NekDouble > &to)
 
void PhysGalerkinProject3D (const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, NekDouble *to)
 
bool operator== (const PointsKey &lhs, const PointsKey &rhs)
 
bool operator< (const PointsKey &lhs, const PointsKey &rhs)
 
std::ostream & operator<< (std::ostream &os, const PointsKey &rhs)
 
static const PointsKey NullPointsKey (0, eNoPointsType)
 
NekDouble sign (NekDouble arg)
 
NekDouble awgn (NekDouble sigma)
 
static NekDouble rad (NekDouble x, NekDouble y)
 
static NekDouble ang (NekDouble x, NekDouble y)
 
NekLinSysIterFactoryGetNekLinSysIterFactory ()
 
NekNonlinSysIterFactoryGetNekNonlinSysIterFactory ()
 
 FACTORYREGISTER (AdamsBashforth)
 
 FACTORYREGISTER (AdamsBashforthOrder1)
 
 SESSIONREGISTER (AdamsBashforthOrder1)
 
 FACTORYREGISTER (AdamsBashforthOrder2)
 
 SESSIONREGISTER (AdamsBashforthOrder2)
 
 FACTORYREGISTER (AdamsBashforthOrder3)
 
 SESSIONREGISTER (AdamsBashforthOrder3)
 
 FACTORYREGISTER (AdamsBashforthOrder4)
 
 SESSIONREGISTER (AdamsBashforthOrder4)
 
 FACTORYREGISTER (AdamsMoulton)
 
 FACTORYREGISTER (AdamsMoultonOrder1)
 
 SESSIONREGISTER (AdamsMoultonOrder1)
 
 FACTORYREGISTER (AdamsMoultonOrder2)
 
 SESSIONREGISTER (AdamsMoultonOrder2)
 
 FACTORYREGISTER (AdamsMoultonOrder3)
 
 SESSIONREGISTER (AdamsMoultonOrder3)
 
 FACTORYREGISTER (AdamsMoultonOrder4)
 
 SESSIONREGISTER (AdamsMoultonOrder4)
 
 FACTORYREGISTER (BDFImplicit)
 
 FACTORYREGISTER (BDFImplicitOrder1)
 
 SESSIONREGISTER (BDFImplicitOrder1)
 
 FACTORYREGISTER (BDFImplicitOrder2)
 
 SESSIONREGISTER (BDFImplicitOrder2)
 
 FACTORYREGISTER (BDFImplicitOrder3)
 
 SESSIONREGISTER (BDFImplicitOrder3)
 
 FACTORYREGISTER (BDFImplicitOrder4)
 
 SESSIONREGISTER (BDFImplicitOrder4)
 
 FACTORYREGISTER (Euler)
 
 FACTORYREGISTER (BackwardEuler)
 
 SESSIONREGISTER (BackwardEuler)
 
 FACTORYREGISTER (ForwardEuler)
 
 SESSIONREGISTER (ForwardEuler)
 
 FACTORYREGISTER (EulerExponential)
 
 FACTORYREGISTER (CNAB)
 
 SESSIONREGISTER (CNAB)
 
 FACTORYREGISTER (DIRK)
 
 FACTORYREGISTER (DIRKOrder1)
 
 SESSIONREGISTER (DIRKOrder1)
 
 FACTORYREGISTER (DIRKOrder2)
 
 SESSIONREGISTER (DIRKOrder2)
 
 FACTORYREGISTER (DIRKOrder3)
 
 SESSIONREGISTER (DIRKOrder3)
 
 FACTORYREGISTER (DIRKOrder3_ES5)
 
 SESSIONREGISTER (DIRKOrder3_ES5)
 
 FACTORYREGISTER (DIRKOrder4_ES6)
 
 SESSIONREGISTER (DIRKOrder4_ES6)
 
 FACTORYREGISTER (IMEXdirk)
 
 FACTORYREGISTER (IMEXdirk_1_1_1)
 
 SESSIONREGISTER (IMEXdirk_1_1_1)
 
 FACTORYREGISTER (IMEXdirk_1_2_1)
 
 SESSIONREGISTER (IMEXdirk_1_2_1)
 
 FACTORYREGISTER (IMEXdirk_1_2_2)
 
 SESSIONREGISTER (IMEXdirk_1_2_2)
 
 FACTORYREGISTER (IMEXdirk_2_2_2)
 
 SESSIONREGISTER (IMEXdirk_2_2_2)
 
 FACTORYREGISTER (IMEXdirk_2_3_2)
 
 SESSIONREGISTER (IMEXdirk_2_3_2)
 
 FACTORYREGISTER (IMEXdirk_2_3_3)
 
 SESSIONREGISTER (IMEXdirk_2_3_3)
 
 FACTORYREGISTER (IMEXdirk_3_4_3)
 
 SESSIONREGISTER (IMEXdirk_3_4_3)
 
 FACTORYREGISTER (IMEXdirk_4_4_3)
 
 SESSIONREGISTER (IMEXdirk_4_4_3)
 
 FACTORYREGISTER (IMEXGear)
 
 SESSIONREGISTER (IMEXGear)
 
 FACTORYREGISTER (IMEX)
 
 FACTORYREGISTER (IMEXOrder1)
 
 SESSIONREGISTER (IMEXOrder1)
 
 FACTORYREGISTER (IMEXOrder2)
 
 SESSIONREGISTER (IMEXOrder2)
 
 FACTORYREGISTER (IMEXOrder3)
 
 SESSIONREGISTER (IMEXOrder3)
 
 FACTORYREGISTER (IMEXOrder4)
 
 SESSIONREGISTER (IMEXOrder4)
 
 FACTORYREGISTER (MCNAB)
 
 SESSIONREGISTER (MCNAB)
 
 FACTORYREGISTER (RungeKutta)
 
 FACTORYREGISTER (RungeKutta1)
 
 SESSIONREGISTER (RungeKutta1)
 
 FACTORYREGISTER (RungeKutta2)
 
 SESSIONREGISTER (RungeKutta2)
 
 FACTORYREGISTER (RungeKutta2_ImprovedEuler)
 
 SESSIONREGISTER (RungeKutta2_ImprovedEuler)
 
 FACTORYREGISTER (RungeKutta2_SSP)
 
 SESSIONREGISTER (RungeKutta2_SSP)
 
 FACTORYREGISTER (RungeKutta3)
 
 SESSIONREGISTER (RungeKutta3)
 
 FACTORYREGISTER (RungeKutta3_SSP)
 
 SESSIONREGISTER (RungeKutta3_SSP)
 
 FACTORYREGISTER (ClassicalRungeKutta4)
 
 SESSIONREGISTER (ClassicalRungeKutta4)
 
 FACTORYREGISTER (RungeKutta4)
 
 SESSIONREGISTER (RungeKutta4)
 
 FACTORYREGISTER (RungeKutta5)
 
 SESSIONREGISTER (RungeKutta5)
 
 FACTORYREGISTER (NoScheme)
 
 SESSIONREGISTER (NoScheme)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationAlgorithmGLMSharedPtr &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationAlgorithmGLM &rhs)
 
TimeIntegrationSchemeFactoryGetTimeIntegrationSchemeFactory ()
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationScheme &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeSharedPtr &rhs)
 
std::ostream & operator<< (std::ostream &os, const FractionalInTimeIntegrationScheme &rhs)
 
std::ostream & operator<< (std::ostream &os, const FractionalInTimeIntegrationSchemeSharedPtr &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeGEM &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeGEMSharedPtr &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeGLM &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeGLMSharedPtr &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeSDC &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeSDCSharedPtr &rhs)
 

Variables

const std::string EndianTypeMap []
 
static DomainRangeShPtr NullDomainRangeShPtr
 
std::string fldCmdFormat
 
static FieldMetaDataMap NullFieldMetaDataMap
 
static std::map< PtsInfo, int > NullPtsInfoMap
 
static PtsFieldSharedPtr NullPtsField
 
static PtsMetaDataMap NullPtsMetaDataMap
 
const char *const FunctionTypeMap []
 
const char *const ShapeTypeMap [SIZE_ShapeType]
 
constexpr unsigned int ShapeTypeDimMap [SIZE_ShapeType]
 
static std::vector< NekDoubleNullNekDoubleVector
 
static std::vector< unsigned int > NullUnsignedIntVector
 
static std::vector< std::vector< NekDouble > > NullVectorNekDoubleVector
 
const char *const ReduceOperatorMap [] = {"ReduceSum", "ReduceMax", "ReduceMin"}
 
static BasisSharedPtr NullBasisSharedPtr
 
static Array< OneD, BasisSharedPtrNullBasisSharedPtr1DArray
 
const char *const BasisTypeMap []
 
const std::string kPointsTypeStr []
 
static const size_t perm4_3d [4][4]
 
static const size_t perm6_3d [6][4]
 
static const size_t perm12A_3d [12][4]
 
static const size_t perm12B_3d [12][4]
 
static const size_t perm12C_3d [12][4]
 
static const size_t perm24_3d [24][4]
 
const size_t NodalTetElecAvailable = 10
 
static const size_t NodalTetElecNPTS [NodalTetElecAvailable]
 
static const NekDouble NodalTetElecData [][9]
 
const size_t NodalTetSPIAvailable = 10
 
static const size_t NodalTetSPINPTS [NodalTetSPIAvailable]
 
static const NekDouble NodalTetSPIData [][4]
 
static const size_t perm3A_2d [3][3]
 
static const size_t perm3B_2d [3][3]
 
static const size_t perm6_2d [6][3]
 
const size_t NodalTriElecAvailable = 16
 
static const size_t NodalTriElecNPTS [NodalTriElecAvailable]
 
static const NekDouble NodalTriElecData [][6]
 
static const size_t perm3A_2d [3][3]
 
static const size_t perm3B_2d [3][3]
 
static const size_t perm3C_2d [3][3]
 
static const size_t perm6_2d [6][3]
 
const size_t NodalTriFeketeAvailable = 16
 
static const size_t NodalTriFeketeNPTS [NodalTriFeketeAvailable]
 
static const NekDouble NodalTriFeketeData [][6]
 
const size_t NodalTriSPIAvailable = 10
 
static const size_t NodalTriSPINPTS [NodalTriSPIAvailable]
 
static const NekDouble NodalTriSPIData [][3]
 
static std::vector< LibUtilities::PointsTypeNullPointsTypeVector
 
Nektar::LibUtilities::functions functions_p
 

Typedef Documentation

◆ AT

template<class T >
using Nektar::LibUtilities::AT = typedef Array<OneD, T>

Definition at line 45 of file TimeIntegrationTypes.hpp.

◆ BasisKeyVector

Name for a vector of BasisKeys.

Definition at line 68 of file FoundationsFwd.hpp.

◆ BasisManagerT

Definition at line 47 of file ManagerAccess.h.

◆ BasisSharedPtr

typedef std::shared_ptr<Basis> Nektar::LibUtilities::BasisSharedPtr

Definition at line 69 of file FoundationsFwd.hpp.

◆ BasisVector

Definition at line 70 of file FoundationsFwd.hpp.

◆ CmdLineArgMap

typedef std::map<std::string, CmdLineArg> Nektar::LibUtilities::CmdLineArgMap

Definition at line 71 of file SessionReader.h.

◆ CommCwipiSharedPtr

Pointer to a Communicator object.

Definition at line 50 of file CommCwipi.h.

◆ CommDataType

typedef unsigned int Nektar::LibUtilities::CommDataType

Definition at line 65 of file CommDataType.h.

◆ CommFactory

Datatype of the NekFactory used to instantiate classes derived from the EquationSystem class.

Definition at line 59 of file Comm.h.

◆ CommMpiSharedPtr

Pointer to a Communicator object.

Definition at line 56 of file CommMpi.h.

◆ CommRequestMpiSharedPtr

Definition at line 86 of file CommMpi.h.

◆ CommRequestSharedPtr

Definition at line 84 of file Comm.h.

◆ CommSerialSharedPtr

Pointer to a Communicator object.

Definition at line 49 of file CommSerial.h.

◆ CommSharedPtr

typedef std::shared_ptr<Comm> Nektar::LibUtilities::CommSharedPtr

Pointer to a Communicator object.

Definition at line 55 of file Comm.h.

◆ ComplexDoubleArray

Definition at line 57 of file TimeIntegrationTypes.hpp.

◆ ComplexSingleArray

Definition at line 59 of file TimeIntegrationTypes.hpp.

◆ ComplexTripleArray

Definition at line 55 of file TimeIntegrationTypes.hpp.

◆ ConstComplexDoubleArray

typedef const AT<const AT< std::complex<NekDouble> > > Nektar::LibUtilities::ConstComplexDoubleArray

Definition at line 56 of file TimeIntegrationTypes.hpp.

◆ ConstComplexSingleArray

typedef const AT< const std::complex<NekDouble> > Nektar::LibUtilities::ConstComplexSingleArray

Definition at line 58 of file TimeIntegrationTypes.hpp.

◆ ConstDoubleArray

Definition at line 50 of file TimeIntegrationTypes.hpp.

◆ ConstSingleArray

Definition at line 52 of file TimeIntegrationTypes.hpp.

◆ ConstTripleArray

Definition at line 48 of file TimeIntegrationTypes.hpp.

◆ CsvIOSharedPtr

typedef std::shared_ptr<CsvIO> Nektar::LibUtilities::CsvIOSharedPtr

Definition at line 74 of file CsvIO.h.

◆ DataSourceSharedPtr

Definition at line 88 of file FieldIO.h.

◆ DomainRangeShPtr

Definition at line 64 of file DomainRange.h.

◆ DoubleArray

Definition at line 51 of file TimeIntegrationTypes.hpp.

◆ EnumMap

typedef std::map<std::string, int> Nektar::LibUtilities::EnumMap

Definition at line 73 of file SessionReader.h.

◆ EnumMapList

typedef std::map<std::string, EnumMap> Nektar::LibUtilities::EnumMapList

Definition at line 74 of file SessionReader.h.

◆ EquationSharedPtr

Definition at line 125 of file Equation.h.

◆ FieldDefinitionsSharedPtr

Definition at line 184 of file FieldIO.h.

◆ FieldIOFactory

Datatype of the NekFactory used to instantiate classes.

Definition at line 205 of file FieldIO.h.

◆ FieldIOSharedPtr

Definition at line 322 of file FieldIO.h.

◆ FieldMetaDataMap

typedef std::map<std::string, std::string> Nektar::LibUtilities::FieldMetaDataMap

Definition at line 50 of file FieldIO.h.

◆ FilterMap

typedef std::vector<std::pair<std::string, FilterParams> > Nektar::LibUtilities::FilterMap

Definition at line 62 of file SessionReader.h.

◆ FilterParams

typedef std::map<std::string, std::string> Nektar::LibUtilities::FilterParams

Definition at line 61 of file SessionReader.h.

◆ FractionalInTimeIntegrationSchemeSharedPtr

Definition at line 78 of file TimeIntegrationTypes.hpp.

◆ FractionalInTimeIntegrationSchemeVector

Definition at line 81 of file TimeIntegrationTypes.hpp.

◆ FunctionMap

Definition at line 110 of file SessionReader.h.

◆ FunctionVariableMap

typedef std::map<std::pair<std::string, int>, FunctionVariableDefinition> Nektar::LibUtilities::FunctionVariableMap

Definition at line 109 of file SessionReader.h.

◆ GeometricInfoMap

typedef std::map<std::string, std::string> Nektar::LibUtilities::GeometricInfoMap

Definition at line 58 of file SessionReader.h.

◆ GloSysInfoMap

typedef std::map< std::string, std::string > Nektar::LibUtilities::GloSysInfoMap

Definition at line 76 of file SessionReader.h.

◆ GloSysSolnInfoList

typedef std::map< std::string, GloSysInfoMap > Nektar::LibUtilities::GloSysSolnInfoList

Definition at line 77 of file SessionReader.h.

◆ GraphVertexID

Definition at line 74 of file FoundationsFwd.hpp.

◆ H5DataSourceSharedPtr

Definition at line 86 of file FieldIOHdf5.h.

◆ H5TagWriterSharedPtr

Definition at line 117 of file FieldIOHdf5.h.

◆ InterpolatorSharedPtr

Definition at line 223 of file LibUtilities/BasicUtils/Interpolator.h.

◆ InterpreterSharedPtr

Definition at line 322 of file Interpreter.h.

◆ NekFFTWSharedPtr

Definition at line 57 of file NekFFTW.h.

◆ NekLinSysIterCGLocSharedPtr

Definition at line 46 of file NekLinSysIterCGLoc.h.

◆ NekLinSysIterCGSharedPtr

Definition at line 46 of file NekLinSysIterCG.h.

◆ NekLinSysIterFactory

Definition at line 52 of file NekLinSysIter.h.

◆ NekLinSysIterFixedpointJacobiSharedPtr

Definition at line 46 of file NekLinSysIterFixedpointJacobi.h.

◆ NekLinSysIterSharedPtr

Definition at line 47 of file NekLinSysIter.h.

◆ NekNonlinSysIterFactory

Definition at line 51 of file NekNonlinSysIter.h.

◆ NekNonlinSysIterSharedPtr

Definition at line 46 of file NekNonlinSysIter.h.

◆ NekSysSharedPtr

Definition at line 234 of file NekSys.h.

◆ NektarFFTFactory

Datatype of the NekFactory used to instantiate classes derived from the NektarFFT class.

Definition at line 62 of file NektarFFT.h.

◆ NektarFFTSharedPtr

Definition at line 58 of file NektarFFT.h.

◆ NoTimeIntegrationSchemeSharedPtr

Definition at line 72 of file TimeIntegrationTypes.hpp.

◆ ParameterMap

typedef std::map<std::string, NekDouble> Nektar::LibUtilities::ParameterMap

Definition at line 57 of file SessionReader.h.

◆ PFD

typedef NekDouble(* Nektar::LibUtilities::PFD) ()

Definition at line 90 of file Interpreter/Interpreter.cpp.

◆ PFD1

typedef NekDouble(* Nektar::LibUtilities::PFD1) (NekDouble)

Definition at line 91 of file Interpreter/Interpreter.cpp.

◆ PFD2

typedef NekDouble(* Nektar::LibUtilities::PFD2) (NekDouble, NekDouble)

Definition at line 92 of file Interpreter/Interpreter.cpp.

◆ PFD3

typedef NekDouble(* Nektar::LibUtilities::PFD3) (NekDouble, NekDouble, NekDouble)

Definition at line 93 of file Interpreter/Interpreter.cpp.

◆ PFD4

typedef NekDouble(* Nektar::LibUtilities::PFD4) (NekDouble, NekDouble, NekDouble, NekDouble)

Definition at line 94 of file Interpreter/Interpreter.cpp.

◆ PointsBaseType

Definition at line 72 of file FoundationsFwd.hpp.

◆ PointsKeyVector

Definition at line 231 of file Points.h.

◆ PointsManagerT

Definition at line 46 of file ManagerAccess.h.

◆ PointsSharedPtr

Definition at line 73 of file FoundationsFwd.hpp.

◆ PtsFieldSharedPtr

Definition at line 184 of file PtsField.h.

◆ PtsIOSharedPtr

typedef std::shared_ptr<PtsIO> Nektar::LibUtilities::PtsIOSharedPtr

Definition at line 90 of file PtsIO.h.

◆ PtsMetaDataMap

typedef std::map<std::string, std::string> Nektar::LibUtilities::PtsMetaDataMap

Definition at line 56 of file PtsIO.h.

◆ SessionReaderSharedPtr

Definition at line 113 of file SessionReader.h.

◆ SharedMatrix

Definition at line 49 of file NodalUtil.h.

◆ SingleArray

Definition at line 53 of file TimeIntegrationTypes.hpp.

◆ SolverInfoMap

typedef std::map<std::string, std::string> Nektar::LibUtilities::SolverInfoMap

Definition at line 56 of file SessionReader.h.

◆ TagMap

typedef std::map<std::string, std::string> Nektar::LibUtilities::TagMap

Definition at line 60 of file SessionReader.h.

◆ TagWriterSharedPtr

Definition at line 78 of file FieldIO.h.

◆ TimeIntegrationAlgorithmGLMSharedPtr

Definition at line 96 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationAlgorithmGLMVector

Definition at line 99 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeFactory

typedef NekFactory<std::string, TimeIntegrationScheme, std::string, size_t, std::vector<NekDouble> > Nektar::LibUtilities::TimeIntegrationSchemeFactory

Datatype of the NekFactory used to instantiate classes derived from the EquationSystem class.

Definition at line 61 of file TimeIntegrationScheme.h.

◆ TimeIntegrationSchemeGEMSharedPtr

Definition at line 114 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeGEMVector

Definition at line 117 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeGLMSharedPtr

Definition at line 87 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeGLMVector

Definition at line 90 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeOperatorsSharedPtr

Definition at line 56 of file TimeIntegrationSchemeOperators.h.

◆ TimeIntegrationSchemeSDCSharedPtr

Definition at line 123 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeSDCVector

Definition at line 126 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeSharedPtr

Definition at line 65 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeVector

Definition at line 67 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSolutionGLMSharedPtr

Definition at line 105 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSolutionGLMVector

Definition at line 108 of file TimeIntegrationTypes.hpp.

◆ TranspositionSharedPtr

Definition at line 160 of file Transposition.h.

◆ TripleArray

Definition at line 49 of file TimeIntegrationTypes.hpp.

◆ VariableList

typedef std::vector<std::string> Nektar::LibUtilities::VariableList

Definition at line 59 of file SessionReader.h.

◆ XmlDataSourceSharedPtr

Definition at line 109 of file FieldIOXml.h.

◆ XmlTagWriterSharedPtr

Definition at line 166 of file FieldIOXml.h.

Enumeration Type Documentation

◆ BasisType

Enumerator
eNoBasisType 
eOrtho_A 

Principle Orthogonal Functions \(\widetilde{\psi}^a_p(z_i)\).

eOrtho_B 

Principle Orthogonal Functions \(\widetilde{\psi}^b_{pq}(z_i)\).

eOrtho_C 

Principle Orthogonal Functions \(\widetilde{\psi}^c_{pqr}(z_i)\).

eModified_A 

Principle Modified Functions \( \phi^a_p(z_i) \).

eModified_B 

Principle Modified Functions \( \phi^b_{pq}(z_i) \).

eModified_C 

Principle Modified Functions \( \phi^c_{pqr}(z_i) \).

eOrthoPyr_C 

Principle Orthogonal Functions \(\widetilde{\psi}^c_{pqr}(z_i) for Pyramids\).

eModifiedPyr_C 

Principle Modified Functions.

eFourier 

Fourier Expansion \( \exp(i p\pi z_i)\).

eGLL_Lagrange 

Lagrange for SEM basis \( h_p(z_i) \).

eGauss_Lagrange 

Lagrange Polynomials using the Gauss points.

h_p 

Legendre Polynomials \( L_p(z_i) = P^{0,0}_p(z_i)\). Same as Ortho_A.

eChebyshev 

Chebyshev Polynomials.

Monomial polynomials \( L_p(z_i) = z_i^{p}\).

eFourierSingleMode 

Fourier ModifiedExpansion with just the first mode \( \exp(i \pi z_i)\).

eFourierHalfModeRe 

Fourier Modified expansions with just the real part of the first mode \( Re[\exp(i \pi z_i)]\).

eFourierHalfModeIm 

Fourier Modified expansions with just the imaginary part of the first mode \( Im[\exp(i \pi z_i)]\).

SIZE_BasisType 

Length of enum list.

Definition at line 39 of file BasisType.h.

40{
42 eOrtho_A, //!< Principle Orthogonal Functions
43 //!< \f$\widetilde{\psi}^a_p(z_i)\f$
44 eOrtho_B, //!< Principle Orthogonal Functions
45 //!< \f$\widetilde{\psi}^b_{pq}(z_i)\f$
46 eOrtho_C, //!< Principle Orthogonal Functions
47 //!< \f$\widetilde{\psi}^c_{pqr}(z_i)\f$
48 eModified_A, //!< Principle Modified Functions \f$ \phi^a_p(z_i) \f$
49 eModified_B, //!< Principle Modified Functions \f$ \phi^b_{pq}(z_i) \f$
50 eModified_C, //!< Principle Modified Functions \f$ \phi^c_{pqr}(z_i) \f$
51 eOrthoPyr_C, //!< Principle Orthogonal Functions
52 //!< \f$\widetilde{\psi}^c_{pqr}(z_i) for Pyramids\f$
53 eModifiedPyr_C, //!< Principle Modified Functions \f$ \phi^c_{pqr}(z_i) for
54 //!< Pyramids\f$
55 eFourier, //!< Fourier Expansion \f$ \exp(i p\pi z_i)\f$
56 eGLL_Lagrange, //!< Lagrange for SEM basis \f$ h_p(z_i) \f$
57 eGauss_Lagrange, //!< Lagrange Polynomials using the Gauss points \f$
58 //!< h_p(z_i) \f$
59 eLegendre, //!< Legendre Polynomials \f$ L_p(z_i) = P^{0,0}_p(z_i)\f$. Same
60 //!< as Ortho_A
61 eChebyshev, //!< Chebyshev Polynomials \f$ T_p(z_i) =
62 //!< P^{-1/2,-1/2}_p(z_i)\f$
63 eMonomial, //!< Monomial polynomials \f$ L_p(z_i) = z_i^{p}\f$
64 eFourierSingleMode, //!< Fourier ModifiedExpansion with just the first mode
65 //!< \f$ \exp(i \pi z_i)\f$
66 eFourierHalfModeRe, //!< Fourier Modified expansions with just the real part
67 //!< of the first mode \f$ Re[\exp(i \pi z_i)]\f$
68 eFourierHalfModeIm, //!< Fourier Modified expansions with just the imaginary
69 //!< part of the first mode \f$ Im[\exp(i \pi z_i)]\f$
70 SIZE_BasisType //!< Length of enum list
71};
@ eModified_B
Principle Modified Functions .
Definition: BasisType.h:49
@ eGauss_Lagrange
Lagrange Polynomials using the Gauss points.
Definition: BasisType.h:57
@ eOrtho_A
Principle Orthogonal Functions .
Definition: BasisType.h:42
@ eModified_C
Principle Modified Functions .
Definition: BasisType.h:50
@ eGLL_Lagrange
Lagrange for SEM basis .
Definition: BasisType.h:56
@ SIZE_BasisType
Length of enum list.
Definition: BasisType.h:70
@ eFourierSingleMode
Fourier ModifiedExpansion with just the first mode .
Definition: BasisType.h:64
@ eChebyshev
Chebyshev Polynomials.
Definition: BasisType.h:61
@ eOrtho_C
Principle Orthogonal Functions .
Definition: BasisType.h:46
@ eModifiedPyr_C
Principle Modified Functions.
Definition: BasisType.h:53
@ eOrtho_B
Principle Orthogonal Functions .
Definition: BasisType.h:44
@ eModified_A
Principle Modified Functions .
Definition: BasisType.h:48
@ eFourierHalfModeIm
Fourier Modified expansions with just the imaginary part of the first mode .
Definition: BasisType.h:68
@ eFourierHalfModeRe
Fourier Modified expansions with just the real part of the first mode .
Definition: BasisType.h:66
@ eOrthoPyr_C
Principle Orthogonal Functions .
Definition: BasisType.h:51
@ eFourier
Fourier Expansion .
Definition: BasisType.h:55

◆ EndianType

Enumerator
eEndianUnknown 
eEndianBig 
eEndianLittle 
eEndianBigWord 
eEndianLittleWord 

Definition at line 48 of file CompressData.h.

49{
53 eEndianBigWord, /* Middle-endian, Honeywell 316 style */
54 eEndianLittleWord /* Middle-endian, PDP-11 style */
55};

◆ FieldIOType

Enumerator for auto-detection of FieldIO types.

Enumerator
eXML 
eHDF5 

Definition at line 77 of file FieldIO.cpp.

◆ FunctionType

Enumerator
eFunctionTypeExpression 
eFunctionTypeFile 
eFunctionTypeTransientFile 
eSIZE_FunctionType 

Definition at line 90 of file SessionReader.h.

◆ InterpMethod

◆ PointsType

Enumerator
eNoPointsType 
eGaussGaussLegendre 

1D Gauss-Gauss-Legendre quadrature points

eGaussRadauMLegendre 

1D Gauss-Radau-Legendre quadrature points, pinned at x=-1

eGaussRadauPLegendre 

1D Gauss-Radau-Legendre quadrature points, pinned at x=1

eGaussLobattoLegendre 

1D Gauss-Lobatto-Legendre quadrature points

eGaussGaussChebyshev 

1D Gauss-Gauss-Chebyshev quadrature points

eGaussRadauMChebyshev 

1D Gauss-Radau-Chebyshev quadrature points, pinned at x=-1

eGaussRadauPChebyshev 

1D Gauss-Radau-Chebyshev quadrature points, pinned at x=1

eGaussLobattoChebyshev 

1D Gauss-Lobatto-Legendre quadrature points

eGaussRadauMAlpha0Beta1 

Gauss Radau pinned at x=-1,.

beta 

Gauss Radau pinned at x=-1,.

1D Gauss-Kronrod-Legendre quadrature points

beta 

Gauss Radau pinned at x=-1,.

1D Gauss-Kronrod-Legendre quadrature points

beta 

Gauss Radau pinned at x=-1,.

1D Gauss-Kronrod-Legendre quadrature points

beta 

Gauss Radau pinned at x=-1,.

1D Gauss-Kronrod-Legendre quadrature points

eGaussRadauKronrodMLegendre 

1D Gauss-Radau-Kronrod-Legendre quadrature points, pinned at x=-1

eGaussRadauKronrodMAlpha1Beta0 

1D Gauss-Radau-Kronrod-Legendre pinned at x=-1,

eGaussLobattoKronrodLegendre 

1D Lobatto Kronrod quadrature points

ePolyEvenlySpaced 

1D Evenly-spaced points using Lagrange polynomial

eFourierEvenlySpaced 

1D Evenly-spaced points using Fourier Fit

eFourierSingleModeSpaced 

1D Non Evenly-spaced points for Single Mode analysis

eBoundaryLayerPoints 

1D power law distribution for boundary layer points

eBoundaryLayerPointsRev 

1D power law distribution for boundary layer points

eNodalTriElec 

2D Nodal Electrostatic Points on a Triangle

eNodalTriFekete 

2D Nodal Fekete Points on a Triangle

eNodalTriEvenlySpaced 

2D Evenly-spaced points on a Triangle

eNodalTetEvenlySpaced 

3D Evenly-spaced points on a Tetrahedron

eNodalTetElec 

3D Nodal Electrostatic Points on a Tetrahedron

eNodalPrismEvenlySpaced 

3D Evenly-spaced points on a Prism

eNodalPrismElec 

3D electrostatically spaced points on a Prism

eNodalTriSPI 

2D Nodal Symmetric positive internal triangle (Whitherden, Vincent)

eNodalTetSPI 

3D Nodal Symmetric positive internal tet (Whitherden, Vincent)

eNodalPrismSPI 

3D prism SPI

eNodalQuadElec 

2D GLL for quad

eNodalHexElec 

3D GLL for hex

SIZE_PointsType 

Length of enum list.

Definition at line 43 of file PointsType.h.

44{
46 eGaussGaussLegendre, //!< 1D Gauss-Gauss-Legendre quadrature points
47 eGaussRadauMLegendre, //!< 1D Gauss-Radau-Legendre quadrature points,
48 //!< pinned at x=-1
49 eGaussRadauPLegendre, //!< 1D Gauss-Radau-Legendre quadrature points,
50 //!< pinned at x=1
51 eGaussLobattoLegendre, //!< 1D Gauss-Lobatto-Legendre quadrature points
52 eGaussGaussChebyshev, //!< 1D Gauss-Gauss-Chebyshev quadrature points
53 eGaussRadauMChebyshev, //!< 1D Gauss-Radau-Chebyshev quadrature points,
54 //!< pinned at x=-1
55 eGaussRadauPChebyshev, //!< 1D Gauss-Radau-Chebyshev quadrature points,
56 //!< pinned at x=1
57 eGaussLobattoChebyshev, //!< 1D Gauss-Lobatto-Legendre quadrature points
58 eGaussRadauMAlpha0Beta1, //!< Gauss Radau pinned at x=-1, \f$ \alpha = 0,
59 //!< \beta = 1 \f$
60 eGaussRadauMAlpha0Beta2, //!< Gauss Radau pinned at x=-1, \f$ \alpha = 0,
61 //!< \beta = 2 \f$
62 eGaussRadauMAlpha1Beta0, //!< Gauss Radau pinned at x=-1, \f$ \alpha = 1,
63 //!< \beta = 0 \f$
64 eGaussRadauMAlpha2Beta0, //!< Gauss Radau pinned at x=-1, \f$ \alpha = 2,
65 //!< \beta = 0 \f$
66 eGaussKronrodLegendre, //!< 1D Gauss-Kronrod-Legendre quadrature points
67 eGaussRadauKronrodMLegendre, //!< 1D Gauss-Radau-Kronrod-Legendre
68 //!< quadrature points, pinned at x=-1
69 eGaussRadauKronrodMAlpha1Beta0, //!< 1D Gauss-Radau-Kronrod-Legendre pinned
70 //!< at x=-1, \f$ \alpha = 1, \beta = 0
71 //!< \f$
72 eGaussLobattoKronrodLegendre, //!< 1D Lobatto Kronrod quadrature points
73 ePolyEvenlySpaced, //!< 1D Evenly-spaced points using Lagrange polynomial
74 eFourierEvenlySpaced, //!< 1D Evenly-spaced points using Fourier Fit
75 eFourierSingleModeSpaced, //!< 1D Non Evenly-spaced points for Single Mode
76 //!< analysis
77 eBoundaryLayerPoints, //!< 1D power law distribution for boundary layer
78 //!< points
79 eBoundaryLayerPointsRev, //!< 1D power law distribution for boundary layer
80 //!< points
81 eNodalTriElec, //!< 2D Nodal Electrostatic Points on a Triangle
82 eNodalTriFekete, //!< 2D Nodal Fekete Points on a Triangle
83 eNodalTriEvenlySpaced, //!< 2D Evenly-spaced points on a Triangle
84 eNodalTetEvenlySpaced, //!< 3D Evenly-spaced points on a Tetrahedron
85 eNodalTetElec, //!< 3D Nodal Electrostatic Points on a Tetrahedron
86 eNodalPrismEvenlySpaced, //!< 3D Evenly-spaced points on a Prism
87 eNodalPrismElec, //!< 3D electrostatically spaced points on a Prism
88 eNodalTriSPI, //!< 2D Nodal Symmetric positive internal triangle
89 //!< (Whitherden, Vincent)
90 eNodalTetSPI, //!< 3D Nodal Symmetric positive internal tet (Whitherden,
91 //!< Vincent)
92 eNodalPrismSPI, //!< 3D prism SPI
93 eNodalQuadElec, //!< 2D GLL for quad
94 eNodalHexElec, //!< 3D GLL for hex
95 SIZE_PointsType //!< Length of enum list
96};
@ eNodalPrismEvenlySpaced
3D Evenly-spaced points on a Prism
Definition: PointsType.h:86
@ SIZE_PointsType
Length of enum list.
Definition: PointsType.h:95
@ eNodalTriFekete
2D Nodal Fekete Points on a Triangle
Definition: PointsType.h:82
@ eGaussRadauMLegendre
1D Gauss-Radau-Legendre quadrature points, pinned at x=-1
Definition: PointsType.h:47
@ eNodalPrismSPI
3D prism SPI
Definition: PointsType.h:92
@ eBoundaryLayerPoints
1D power law distribution for boundary layer points
Definition: PointsType.h:77
@ eGaussRadauMAlpha0Beta1
Gauss Radau pinned at x=-1,.
Definition: PointsType.h:58
@ eGaussRadauKronrodMLegendre
1D Gauss-Radau-Kronrod-Legendre quadrature points, pinned at x=-1
Definition: PointsType.h:67
@ eGaussLobattoChebyshev
1D Gauss-Lobatto-Legendre quadrature points
Definition: PointsType.h:57
@ eFourierEvenlySpaced
1D Evenly-spaced points using Fourier Fit
Definition: PointsType.h:74
@ eNodalTriElec
2D Nodal Electrostatic Points on a Triangle
Definition: PointsType.h:81
@ eGaussRadauPChebyshev
1D Gauss-Radau-Chebyshev quadrature points, pinned at x=1
Definition: PointsType.h:55
@ eNodalTriEvenlySpaced
2D Evenly-spaced points on a Triangle
Definition: PointsType.h:83
@ eNodalHexElec
3D GLL for hex
Definition: PointsType.h:94
@ eGaussRadauMChebyshev
1D Gauss-Radau-Chebyshev quadrature points, pinned at x=-1
Definition: PointsType.h:53
@ eGaussRadauKronrodMAlpha1Beta0
1D Gauss-Radau-Kronrod-Legendre pinned at x=-1,
Definition: PointsType.h:69
@ eGaussLobattoLegendre
1D Gauss-Lobatto-Legendre quadrature points
Definition: PointsType.h:51
@ eNodalQuadElec
2D GLL for quad
Definition: PointsType.h:93
@ eNodalTetEvenlySpaced
3D Evenly-spaced points on a Tetrahedron
Definition: PointsType.h:84
@ eGaussGaussChebyshev
1D Gauss-Gauss-Chebyshev quadrature points
Definition: PointsType.h:52
@ eNodalTetSPI
3D Nodal Symmetric positive internal tet (Whitherden, Vincent)
Definition: PointsType.h:90
@ eBoundaryLayerPointsRev
1D power law distribution for boundary layer points
Definition: PointsType.h:79
@ ePolyEvenlySpaced
1D Evenly-spaced points using Lagrange polynomial
Definition: PointsType.h:73
@ eGaussLobattoKronrodLegendre
1D Lobatto Kronrod quadrature points
Definition: PointsType.h:72
@ eGaussGaussLegendre
1D Gauss-Gauss-Legendre quadrature points
Definition: PointsType.h:46
@ eFourierSingleModeSpaced
1D Non Evenly-spaced points for Single Mode analysis
Definition: PointsType.h:75
@ eNodalPrismElec
3D electrostatically spaced points on a Prism
Definition: PointsType.h:87
@ eNodalTetElec
3D Nodal Electrostatic Points on a Tetrahedron
Definition: PointsType.h:85
@ eGaussRadauPLegendre
1D Gauss-Radau-Legendre quadrature points, pinned at x=1
Definition: PointsType.h:49
@ eNodalTriSPI
2D Nodal Symmetric positive internal triangle (Whitherden, Vincent)
Definition: PointsType.h:88

◆ PtsInfo

Enumerator
eIsEquiSpacedData 
ePtsPerElmtEdge 

Definition at line 60 of file PtsField.h.

◆ PtsType

Enumerator
ePtsFile 
ePtsLine 
ePtsPlane 
ePtsBox 
ePtsSegBlock 
ePtsTriBlock 
ePtsTetBlock 

Definition at line 49 of file PtsField.h.

◆ ReduceOperator

Type of operation to perform in AllReduce.

Enumerator
ReduceSum 
ReduceMax 
ReduceMin 
SIZE_ReduceOperator 

Definition at line 64 of file Comm.h.

◆ ShapeType

Enumerator
eNoShapeType 
ePoint 
eSegment 
eTriangle 
eQuadrilateral 
eTetrahedron 
ePyramid 
ePrism 
eHexahedron 
SIZE_ShapeType 
Point 
Seg 
Tri 
Quad 
Tet 
Pyr 
Prism 
Hex 

Definition at line 51 of file ShapeType.hpp.

52{
54 ePoint,
60 ePrism,
63
64 // These are the short names used for MatrixFree operators
65 Point = ePoint,
66 Seg = eSegment,
67 Tri = eTriangle,
70 Pyr = ePyramid,
71 Prism = ePrism,
73};

◆ TimeIntegrationSchemeType

Enumerator
eNoTimeIntegrationSchemeType 
eExplicit 

Formally explicit scheme.

eDiagonallyImplicit 

Diagonally implicit scheme (e.g. the DIRK schemes)

eIMEX 

Implicit Explicit General Linear Method.

eImplicit 

Fully implicit scheme.

eExponential 

Exponential scheme.

eFractionalInTime 

Fractional in Time scheme.

Definition at line 129 of file TimeIntegrationTypes.hpp.

130{
132 eExplicit, //!< Formally explicit scheme
133 eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
134 eIMEX, //!< Implicit Explicit General Linear Method
135 eImplicit, //!< Fully implicit scheme
136 eExponential, //!< Exponential scheme
137 eFractionalInTime, //!< Fractional in Time scheme
138};
@ eFractionalInTime
Fractional in Time scheme.
@ eImplicit
Fully implicit scheme.
@ eExplicit
Formally explicit scheme.
@ eExponential
Exponential scheme.
@ eDiagonallyImplicit
Diagonally implicit scheme (e.g. the DIRK schemes)
@ eIMEX
Implicit Explicit General Linear Method.

◆ TranspositionDir

Enumerator
eXYtoZ 
eZtoXY 
eXtoYZ 
eYZtoX 
eYZtoZY 
eZYtoYZ 
eXtoY 
eYtoZ 
eZtoX 
eNoTrans 

Definition at line 49 of file Transposition.h.

Function Documentation

◆ ang()

static NekDouble Nektar::LibUtilities::ang ( NekDouble  x,
NekDouble  y 
)
static

◆ awgn()

NekDouble Nektar::LibUtilities::awgn ( NekDouble  sigma)

Definition at line 68 of file Interpreter/Interpreter.cpp.

69{
70
71 std::random_device rd;
72 std::mt19937 gen(rd());
73 return std::normal_distribution<>(0, sigma)(gen);
74}

Referenced by Nektar::LibUtilities::functions::functions().

◆ BasisManager()

BasisManagerT & Nektar::LibUtilities::BasisManager ( void  )

◆ checked_cast()

template<class To , class Ti , class = typename std::enable_if< std::is_floating_point< typename std::remove_reference<Ti>::type>::value && std::is_integral< typename std::remove_reference<To>::type>::value>::type>
To Nektar::LibUtilities::checked_cast ( const Ti  param)
inline

checked cast from float types only to int types

Definition at line 51 of file CheckedCast.hpp.

52{
53 Ti min = std::numeric_limits<To>::min();
54 Ti max = std::numeric_limits<To>::max();
55 ASSERTL0(param >= min, "Casting would narrow (underflow).");
56 ASSERTL0(param <= max, "Casting would narrow (overflow).");
57 return static_cast<To>(param);
58}
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:208

References ASSERTL0.

◆ CommDataTypeGetSize()

int Nektar::LibUtilities::CommDataTypeGetSize ( CommDataType  dt)

Return the size in bytes of a data type dt.

Parameters
dtData type
Returns
Size of dt in bytes.

Definition at line 52 of file CommDataType.cpp.

53{
54#ifdef NEKTAR_USE_MPI
55 int size;
56 MPI_Type_size(dt, &size);
57 return size;
58#elif NEKTAR_USING_PETSC
59 if (dt == MPI_CHAR)
60 return sizeof(char);
61 else if (dt == MPI_INT)
62 return sizeof(int);
63 else if (dt == MPI_UNSIGNED)
64 return sizeof(unsigned);
65 else if (dt == MPI_LONG)
66 return sizeof(long);
67 else if (dt == MPI_UNSIGNED_LONG)
68 return sizeof(unsigned long);
69 else if (dt == MPI_LONG_LONG)
70 return sizeof(long long);
71 else if (dt == MPI_UNSIGNED_LONG_LONG)
72 return sizeof(unsigned long long);
73 else if (dt == MPI_FLOAT)
74 return sizeof(float);
75 else if (dt == MPI_DOUBLE)
76 return sizeof(double);
77 else if (dt == MPI_LONG_DOUBLE)
78 return sizeof(long double);
79 return sizeof(int);
80#else
81 switch (dt)
82 {
83 case MPI_CHAR:
84 return sizeof(char);
85 case MPI_INT:
86 return sizeof(int);
87 case MPI_UNSIGNED:
88 return sizeof(unsigned);
89 case MPI_LONG:
90 return sizeof(long);
92 return sizeof(unsigned long);
93 case MPI_LONG_LONG:
94 return sizeof(long long);
96 return sizeof(unsigned long long);
97 case MPI_FLOAT:
98 return sizeof(float);
99 case MPI_DOUBLE:
100 return sizeof(double);
101 case MPI_LONG_DOUBLE:
102 return sizeof(long double);
103 default:
104 ASSERTL0(false, "Unrecognised datatype!");
105 }
106 return sizeof(int);
107#endif
108}
#define MPI_UNSIGNED_LONG_LONG
Definition: CommDataType.h:92
#define MPI_INT
Definition: CommDataType.h:72
#define MPI_FLOAT
Definition: CommDataType.h:96
#define MPI_UNSIGNED_LONG
Definition: CommDataType.h:84
#define MPI_DOUBLE
Definition: CommDataType.h:100
#define MPI_LONG
Definition: CommDataType.h:80
#define MPI_CHAR
Definition: CommDataType.h:68
#define MPI_UNSIGNED
Definition: CommDataType.h:76
#define MPI_LONG_LONG
Definition: CommDataType.h:88
#define MPI_LONG_DOUBLE
Definition: CommDataType.h:104

References ASSERTL0, MPI_CHAR, MPI_DOUBLE, MPI_FLOAT, MPI_INT, MPI_LONG, MPI_LONG_DOUBLE, MPI_LONG_LONG, MPI_UNSIGNED, MPI_UNSIGNED_LONG, and MPI_UNSIGNED_LONG_LONG.

Referenced by Nektar::LibUtilities::CommSerial::v_Gather(), and Nektar::LibUtilities::CommSerial::v_Scatter().

◆ Endianness()

EndianType Nektar::LibUtilities::Endianness ( void  )

run time determination of endianness, returning an EndianType

Definition at line 65 of file CompressData.cpp.

66{
67 union
68 {
69 std::uint32_t value;
70 std::uint8_t data[sizeof(std::uint32_t)];
71 } number;
72
73 number.data[0] = 0x00;
74 number.data[1] = 0x01;
75 number.data[2] = 0x02;
76 number.data[3] = 0x03;
77
78 switch (number.value)
79 {
80 case UINT32_C(0x00010203):
81 return eEndianBig;
82 case UINT32_C(0x03020100):
83 return eEndianLittle;
84 case UINT32_C(0x02030001):
85 return eEndianBigWord;
86 case UINT32_C(0x01000302):
87 return eEndianLittleWord;
88 default:
89 return eEndianUnknown;
90 }
91}

References eEndianBig, eEndianBigWord, eEndianLittle, eEndianLittleWord, and eEndianUnknown.

Referenced by Nektar::LibUtilities::CompressData::GetCompressString(), and Nektar::FieldUtils::InputSemtex::v_Process().

◆ FACTORYREGISTER() [1/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsBashforth  )

◆ FACTORYREGISTER() [2/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsBashforthOrder1  )

◆ FACTORYREGISTER() [3/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsBashforthOrder2  )

◆ FACTORYREGISTER() [4/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsBashforthOrder3  )

◆ FACTORYREGISTER() [5/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsBashforthOrder4  )

◆ FACTORYREGISTER() [6/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsMoulton  )

◆ FACTORYREGISTER() [7/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsMoultonOrder1  )

◆ FACTORYREGISTER() [8/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsMoultonOrder2  )

◆ FACTORYREGISTER() [9/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsMoultonOrder3  )

◆ FACTORYREGISTER() [10/53]

Nektar::LibUtilities::FACTORYREGISTER ( AdamsMoultonOrder4  )

◆ FACTORYREGISTER() [11/53]

Nektar::LibUtilities::FACTORYREGISTER ( BackwardEuler  )

◆ FACTORYREGISTER() [12/53]

Nektar::LibUtilities::FACTORYREGISTER ( BDFImplicit  )

◆ FACTORYREGISTER() [13/53]

Nektar::LibUtilities::FACTORYREGISTER ( BDFImplicitOrder1  )

◆ FACTORYREGISTER() [14/53]

Nektar::LibUtilities::FACTORYREGISTER ( BDFImplicitOrder2  )

◆ FACTORYREGISTER() [15/53]

Nektar::LibUtilities::FACTORYREGISTER ( BDFImplicitOrder3  )

◆ FACTORYREGISTER() [16/53]

Nektar::LibUtilities::FACTORYREGISTER ( BDFImplicitOrder4  )

◆ FACTORYREGISTER() [17/53]

Nektar::LibUtilities::FACTORYREGISTER ( ClassicalRungeKutta4  )

◆ FACTORYREGISTER() [18/53]

Nektar::LibUtilities::FACTORYREGISTER ( CNAB  )

◆ FACTORYREGISTER() [19/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRK  )

◆ FACTORYREGISTER() [20/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRKOrder1  )

◆ FACTORYREGISTER() [21/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRKOrder2  )

◆ FACTORYREGISTER() [22/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRKOrder3  )

◆ FACTORYREGISTER() [23/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRKOrder3_ES5  )

◆ FACTORYREGISTER() [24/53]

Nektar::LibUtilities::FACTORYREGISTER ( DIRKOrder4_ES6  )

◆ FACTORYREGISTER() [25/53]

Nektar::LibUtilities::FACTORYREGISTER ( Euler  )

◆ FACTORYREGISTER() [26/53]

Nektar::LibUtilities::FACTORYREGISTER ( EulerExponential  )

◆ FACTORYREGISTER() [27/53]

Nektar::LibUtilities::FACTORYREGISTER ( ForwardEuler  )

◆ FACTORYREGISTER() [28/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEX  )

◆ FACTORYREGISTER() [29/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk  )

◆ FACTORYREGISTER() [30/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_1_1_1  )

◆ FACTORYREGISTER() [31/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_1_2_1  )

◆ FACTORYREGISTER() [32/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_1_2_2  )

◆ FACTORYREGISTER() [33/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_2_2_2  )

◆ FACTORYREGISTER() [34/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_2_3_2  )

◆ FACTORYREGISTER() [35/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_2_3_3  )

◆ FACTORYREGISTER() [36/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_3_4_3  )

◆ FACTORYREGISTER() [37/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXdirk_4_4_3  )

◆ FACTORYREGISTER() [38/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXGear  )

◆ FACTORYREGISTER() [39/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXOrder1  )

◆ FACTORYREGISTER() [40/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXOrder2  )

◆ FACTORYREGISTER() [41/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXOrder3  )

◆ FACTORYREGISTER() [42/53]

Nektar::LibUtilities::FACTORYREGISTER ( IMEXOrder4  )

◆ FACTORYREGISTER() [43/53]

Nektar::LibUtilities::FACTORYREGISTER ( MCNAB  )

◆ FACTORYREGISTER() [44/53]

Nektar::LibUtilities::FACTORYREGISTER ( NoScheme  )

◆ FACTORYREGISTER() [45/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta  )

◆ FACTORYREGISTER() [46/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta1  )

◆ FACTORYREGISTER() [47/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta2  )

◆ FACTORYREGISTER() [48/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta2_ImprovedEuler  )

◆ FACTORYREGISTER() [49/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta2_SSP  )

◆ FACTORYREGISTER() [50/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta3  )

◆ FACTORYREGISTER() [51/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta3_SSP  )

◆ FACTORYREGISTER() [52/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta4  )

◆ FACTORYREGISTER() [53/53]

Nektar::LibUtilities::FACTORYREGISTER ( RungeKutta5  )

◆ GetChildElementOrThrow()

TiXmlElement * Nektar::LibUtilities::GetChildElementOrThrow ( const std::string &  filename,
std::string  elementName,
const TiXmlHandle &  docHandle 
)

Helper function that gets a pointer to a child element, or throws an exception if no such element exists

Definition at line 2571 of file BasicUtils/SessionReader.cpp.

2574{
2575 TiXmlElement *element = docHandle.FirstChildElement(elementName).Element();
2576
2577 if (!element)
2578 {
2579 NEKERROR(ErrorUtil::efatal, "Unable to find '" + elementName +
2580 "' XML node in " + filename);
2581 }
2582
2583 return element;
2584}
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
Definition: ErrorUtil.hpp:202

References Nektar::ErrorUtil::efatal, and NEKERROR.

Referenced by Nektar::LibUtilities::SessionReader::MergeDoc().

◆ GetCommFactory()

CommFactory & Nektar::LibUtilities::GetCommFactory ( )

◆ GetFieldIOFactory()

FieldIOFactory & Nektar::LibUtilities::GetFieldIOFactory ( )

◆ GetNekLinSysIterFactory()

NekLinSysIterFactory & Nektar::LibUtilities::GetNekLinSysIterFactory ( )

◆ GetNekNonlinSysIterFactory()

NekNonlinSysIterFactory & Nektar::LibUtilities::GetNekNonlinSysIterFactory ( )

Definition at line 45 of file NekNonlinSysIter.cpp.

46{
47 static NekNonlinSysIterFactory instance;
48 return instance;
49}

Referenced by Nektar::CFSImplicit::InitialiseNonlinSysSolver(), and Nektar::ShallowWaterSystem::InitialiseNonlinSysSolver().

◆ GetNektarFFTFactory()

NektarFFTFactory & Nektar::LibUtilities::GetNektarFFTFactory ( )

◆ GetNumberOfCoefficients() [1/2]

int Nektar::LibUtilities::GetNumberOfCoefficients ( ShapeType  shape,
int  na,
int  nb = 0,
int  nc = 0 
)
inline

Definition at line 345 of file ShapeType.hpp.

347{
348 int returnval = 0;
349 switch (shape)
350 {
351 case eSegment:
352 returnval = na;
353 break;
354 case eTriangle:
355 returnval = StdTriData::getNumberOfCoefficients(na, nb);
356 break;
357 case eQuadrilateral:
358 returnval = na * nb;
359 break;
360 case eTetrahedron:
361 returnval = StdTetData::getNumberOfCoefficients(na, nb, nc);
362 break;
363 case ePyramid:
364 returnval = StdPyrData::getNumberOfCoefficients(na, nb, nc);
365 break;
366 case ePrism:
367 returnval = StdPrismData::getNumberOfCoefficients(na, nb, nc);
368 break;
369 case eHexahedron:
370 returnval = na * nb * nc;
371 break;
372 default:
373 NEKERROR(ErrorUtil::efatal, "Unknown Shape Type");
374 break;
375 }
376
377 return returnval;
378}
int getNumberOfCoefficients(int Na, int Nb, int Nc)
Definition: ShapeType.hpp:279

References Nektar::ErrorUtil::efatal, eHexahedron, ePrism, ePyramid, eQuadrilateral, eSegment, eTetrahedron, eTriangle, Nektar::LibUtilities::StdTriData::getNumberOfCoefficients(), Nektar::LibUtilities::StdTetData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPyrData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients(), and NEKERROR.

◆ GetNumberOfCoefficients() [2/2]

int Nektar::LibUtilities::GetNumberOfCoefficients ( ShapeType  shape,
std::vector< unsigned int > &  modes,
int  offset = 0 
)
inline

Definition at line 305 of file ShapeType.hpp.

308{
309 int returnval = 0;
310 switch (shape)
311 {
312 case eSegment:
313 returnval = modes[offset];
314 break;
315 case eTriangle:
316 returnval = StdTriData::getNumberOfCoefficients(modes[offset],
317 modes[offset + 1]);
318 break;
319 case eQuadrilateral:
320 returnval = modes[offset] * modes[offset + 1];
321 break;
322 case eTetrahedron:
324 modes[offset], modes[offset + 1], modes[offset + 2]);
325 break;
326 case ePyramid:
328 modes[offset], modes[offset + 1], modes[offset + 2]);
329 break;
330 case ePrism:
332 modes[offset], modes[offset + 1], modes[offset + 2]);
333 break;
334 case eHexahedron:
335 returnval = modes[offset] * modes[offset + 1] * modes[offset + 2];
336 break;
337 default:
338 NEKERROR(ErrorUtil::efatal, "Unknown Shape Type");
339 break;
340 }
341
342 return returnval;
343}

References Nektar::ErrorUtil::efatal, eHexahedron, ePrism, ePyramid, eQuadrilateral, eSegment, eTetrahedron, eTriangle, Nektar::LibUtilities::StdTriData::getNumberOfCoefficients(), Nektar::LibUtilities::StdTetData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPyrData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients(), CG_Iterations::modes, and NEKERROR.

Referenced by Nektar::StdRegions::StdExpansion::PhysInterpToSimplexEquiSpaced(), Nektar::MultiRegions::ExpList::v_ExtractDataToCoeffs(), Nektar::MultiRegions::ExpListHomogeneous1D::v_ExtractDataToCoeffs(), and Nektar::FieldUtils::ProcessHalfModeToFourier::v_Process().

◆ GetNumberOfDataPoints()

int Nektar::LibUtilities::GetNumberOfDataPoints ( const FieldDefinitionsSharedPtr fielddefs,
unsigned int &  cnt 
)

Compute the number of values needed to store elemental expansion.

Parameters
fielddefsField definitions
cntCounter into the fielddefs->m_numModes array. This variable is updated by the function

Definition at line 587 of file FieldIO.cpp.

589{
590 int NCoeffs = 0;
591
592 switch (fielddefs->m_shapeType)
593 {
594 case eSegment:
595 {
596 int l = fielddefs->m_numModes[cnt++];
597 if (fielddefs->m_numHomogeneousDir == 1)
598 {
599 NCoeffs = l * fielddefs->m_homogeneousZIDs.size();
600 cnt++;
601 }
602 else if (fielddefs->m_numHomogeneousDir == 2)
603 {
604 NCoeffs = l * fielddefs->m_homogeneousYIDs.size();
605 cnt += 2;
606 }
607 else
608 {
609 NCoeffs = l;
610 }
611 }
612 break;
613 case eTriangle:
614 {
615 int l = fielddefs->m_numModes[cnt++];
616 int m = fielddefs->m_numModes[cnt++];
617 if (fielddefs->m_numHomogeneousDir == 1)
618 {
620 fielddefs->m_homogeneousZIDs.size();
621 cnt++;
622 }
623 else
624 {
626 }
627 }
628 break;
629 case eQuadrilateral:
630 {
631 int l = fielddefs->m_numModes[cnt++];
632 int m = fielddefs->m_numModes[cnt++];
633 if (fielddefs->m_numHomogeneousDir == 1)
634 {
636 fielddefs->m_homogeneousZIDs.size();
637 cnt++;
638 }
639 else
640 {
642 }
643 }
644 break;
645 case eTetrahedron:
646 {
647 int l = fielddefs->m_numModes[cnt++];
648 int m = fielddefs->m_numModes[cnt++];
649 int n = fielddefs->m_numModes[cnt++];
650 NCoeffs = StdTetData::getNumberOfCoefficients(l, m, n);
651 }
652 break;
653 case ePyramid:
654 {
655 int l = fielddefs->m_numModes[cnt++];
656 int m = fielddefs->m_numModes[cnt++];
657 int n = fielddefs->m_numModes[cnt++];
658 NCoeffs = StdPyrData::getNumberOfCoefficients(l, m, n);
659 }
660 break;
661 case ePrism:
662 {
663 int l = fielddefs->m_numModes[cnt++];
664 int m = fielddefs->m_numModes[cnt++];
665 int n = fielddefs->m_numModes[cnt++];
666 NCoeffs = StdPrismData::getNumberOfCoefficients(l, m, n);
667 }
668 break;
669 case eHexahedron:
670 {
671 int l = fielddefs->m_numModes[cnt++];
672 int m = fielddefs->m_numModes[cnt++];
673 int n = fielddefs->m_numModes[cnt++];
674 NCoeffs = StdHexData::getNumberOfCoefficients(l, m, n);
675 }
676 break;
677 default:
678 NEKERROR(ErrorUtil::efatal, "Unsupported shape type.");
679 break;
680 }
681
682 return NCoeffs;
683}

References Nektar::ErrorUtil::efatal, eHexahedron, ePrism, ePyramid, eQuadrilateral, eSegment, eTetrahedron, eTriangle, Nektar::LibUtilities::StdTriData::getNumberOfCoefficients(), Nektar::LibUtilities::StdQuadData::getNumberOfCoefficients(), Nektar::LibUtilities::StdHexData::getNumberOfCoefficients(), Nektar::LibUtilities::StdTetData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPyrData::getNumberOfCoefficients(), Nektar::LibUtilities::StdPrismData::getNumberOfCoefficients(), and NEKERROR.

Referenced by Nektar::LibUtilities::FieldIO::CheckFieldDefinition(), and Nektar::LibUtilities::FieldIO::GetNumberOfCoeffsPerElement().

◆ GetTimeIntegrationSchemeFactory()

LUE TimeIntegrationSchemeFactory & Nektar::LibUtilities::GetTimeIntegrationSchemeFactory ( )

◆ Import()

void Nektar::LibUtilities::Import ( const std::string &  infilename,
std::vector< FieldDefinitionsSharedPtr > &  fielddefs,
std::vector< std::vector< NekDouble > > &  fielddata,
FieldMetaDataMap fieldinfomap,
const Array< OneD, int > &  ElementIDs 
)

This function allows for data to be imported from an FLD file when a session and/or communicator is not instantiated. Typically used in utilities which only operate in serial.

Parameters
infilenameInput filename (or directory if parallel format)
fielddefsOn return contains field definitions as read from the input.
fielddataOn return, contains binary field data that stores the input corresponding to fielddefs.
fieldinfoOn returnm, contains the associated field metadata map.
ElementIDsElement IDs that lie on this processor, which can be optionally supplied to avoid reading the entire file on each processor.

Definition at line 288 of file FieldIO.cpp.

293{
294#ifdef NEKTAR_USE_MPI
295 int size;
296 int init;
297 MPI_Initialized(&init);
298
299 // If MPI has been initialised we can check the number of processes
300 // and, if > 1, tell the user he should not be running this
301 // function in parallel. If it is not initialised, we do not
302 // initialise it here, and assume the user knows what they are
303 // doing.
304 if (init)
305 {
306 MPI_Comm_size(MPI_COMM_WORLD, &size);
307 ASSERTL0(size == 1,
308 "This static function is not available in parallel. Please"
309 "instantiate a FieldIO object for parallel use.");
310 }
311#endif
312 CommSharedPtr c = GetCommFactory().CreateInstance("Serial", 0, 0);
313 const std::string iofmt = FieldIO::GetFileType(infilename, c);
315 f->Import(infilename, fielddefs, fielddata, fieldinfomap, ElementIDs);
316}
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
std::shared_ptr< FieldIO > FieldIOSharedPtr
Definition: FieldIO.h:322
FieldIOFactory & GetFieldIOFactory()
Returns the FieldIO factory.
Definition: FieldIO.cpp:70
CommFactory & GetCommFactory()
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
Definition: Comm.h:55

References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), GetCommFactory(), GetFieldIOFactory(), and Nektar::LibUtilities::FieldIO::GetFileType().

Referenced by GetStreakLocation(), Nektar::SolverUtils::EquationSystem::ImportFldToMultiDomains(), and main().

◆ Interp1D() [1/4]

void Nektar::LibUtilities::Interp1D ( const BasisKey fbasis0,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
Array< OneD, NekDouble > &  to 
)

this function interpolates a 1D function \(f\) evaluated at the quadrature points of the basis fbasis0 to the function values at the quadrature points of the basis tbasis0

Given a function \( f\) evaluated at the Q quadrature points of the basis fbasis0, this routine calculates, using (Q-1)th order polynomial interpolation, the function values at the Q2 quadrature points of the basis tbasis0.

Parameters
fbasis0the basis at which's quadrature points the function is given
fromthe array containg the function \( f\) evaluated at the quadrature points of fbasis0
tbasis0the basis to which's quadrature points the function should be interpolated
tothe array containg the function \( f\) evaluated at the quadrature points of tbasis0 (output of the function)

Definition at line 47 of file Interp.cpp.

49{
50 Interp1D(fbasis0.GetPointsKey(), from, tbasis0.GetPointsKey(), to);
51}
PointsKey GetPointsKey() const
Return distribution of points.
Definition: Basis.h:137
void Interp1D(const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)
Definition: Interp.cpp:80

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and Interp1D().

Referenced by Nektar::MultiRegions::ExpList::GetElmtNormalLength(), Nektar::SpatialDomains::GeomFactors::Interp(), Interp1D(), Nektar::LocalRegions::NodalTriExp::v_ComputeTraceNormal(), Nektar::LocalRegions::QuadExp::v_ComputeTraceNormal(), Nektar::LocalRegions::TriExp::v_ComputeTraceNormal(), Nektar::LocalRegions::SegExp::v_ExtractDataToCoeffs(), Nektar::LocalRegions::TriExp::v_FwdTransBndConstrained(), Nektar::LocalRegions::Expansion2D::v_GenMatrix(), Nektar::LocalRegions::Expansion::v_GetCoords(), Nektar::MultiRegions::ExpList::v_GetNormals(), Nektar::LocalRegions::QuadExp::v_GetTracePhysVals(), and Nektar::LocalRegions::TriExp::v_GetTracePhysVals().

◆ Interp1D() [2/4]

void Nektar::LibUtilities::Interp1D ( const BasisKey fbasis0,
const NekDouble from,
const BasisKey tbasis0,
NekDouble to 
)

Definition at line 74 of file Interp.cpp.

76{
77 Interp1D(fbasis0.GetPointsKey(), from, tbasis0.GetPointsKey(), to);
78}

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and Interp1D().

◆ Interp1D() [3/4]

void Nektar::LibUtilities::Interp1D ( const PointsKey fpoints0,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
Array< OneD, NekDouble > &  to 
)

Definition at line 53 of file Interp.cpp.

56{
57 if (fpoints0 == tpoints0) // check to see if the same
58 {
59 Vmath::Vcopy(fpoints0.GetNumPoints(), from, 1, to, 1);
60 }
61 else // interpolate
62 {
64
65 I0 = PointsManager()[fpoints0]->GetI(tpoints0);
66
67 NekVector<NekDouble> in(fpoints0.GetNumPoints(), from, eWrapper);
68 NekVector<NekDouble> out(tpoints0.GetNumPoints(), to, eWrapper);
69
70 out = (*I0) * in;
71 }
72}
size_t GetNumPoints() const
Definition: Points.h:85
PointsManagerT & PointsManager(void)
std::shared_ptr< DNekMat > DNekMatSharedPtr
Definition: NekTypeDefs.hpp:75
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Definition: Vmath.hpp:825

References Nektar::eWrapper, Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ Interp1D() [4/4]

void Nektar::LibUtilities::Interp1D ( const PointsKey fpoints0,
const NekDouble from,
const PointsKey tpoints0,
NekDouble to 
)

Definition at line 80 of file Interp.cpp.

82{
83 if (fpoints0 == tpoints0) // check to see if the same
84 {
85 Vmath::Vcopy(fpoints0.GetNumPoints(), from, 1, to, 1);
86 }
87 else // interpolate
88 {
89
91
92 I0 = PointsManager()[fpoints0]->GetI(tpoints0);
93
94 Blas::Dgemv('N', tpoints0.GetNumPoints(), fpoints0.GetNumPoints(), 1.0,
95 I0->GetPtr().get(), tpoints0.GetNumPoints(), from, 1, 0.0,
96 to, 1);
97 }
98}
static void Dgemv(const char &trans, const int &m, const int &n, const double &alpha, const double *a, const int &lda, const double *x, const int &incx, const double &beta, double *y, const int &incy)
BLAS level 2: Matrix vector multiply y = alpha A x plus beta y where A[m x n].
Definition: Blas.hpp:211

References Blas::Dgemv(), Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ Interp2D() [1/3]

void Nektar::LibUtilities::Interp2D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
Array< OneD, NekDouble > &  to 
)

this function interpolates a 2D function \(f\) evaluated at the quadrature points of the 2D basis, constructed by fbasis0 and fbasis1, to the function values at the quadrature points of the 2D basis, constructed by tbasis0 and tbasis1

Given a function \( f\) evaluated at the Q quadrature points of the first expansion basis, this routine calculates, using (Q-1)th order polynomial interpolation, the function values at the Q2 quadrature points of the second basis.

Parameters
fbasis0the basis at which's quadrature points the function is given
fromthe array containg the function \( f\) evaluated at the quadrature points of fbasis0
tbasis0the basis to which's quadrature points the function should be interpolated
tothe array containg the function \( f\) evaluated at the quadrature points of tbasis0 (output of the function)

Definition at line 101 of file Interp.cpp.

104{
105 Interp2D(fbasis0.GetPointsKey(), fbasis1.GetPointsKey(), from.data(),
106 tbasis0.GetPointsKey(), tbasis1.GetPointsKey(), to.data());
107}
void Interp2D(const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)
Definition: Interp.cpp:117

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and Interp2D().

Referenced by Nektar::FieldUtils::ProcessEquiSpacedOutput::GenOrthoModes(), Nektar::MultiRegions::ExpList::GetElmtNormalLength(), Nektar::FieldUtils::ProcessQualityMetric::GetQ(), Nektar::SpatialDomains::GeomFactors::Interp(), Interp2D(), Nektar::GlobalMapping::UpdateGeometry(), Nektar::LocalRegions::HexExp::v_ComputeTraceNormal(), Nektar::LocalRegions::PrismExp::v_ComputeTraceNormal(), Nektar::LocalRegions::PyrExp::v_ComputeTraceNormal(), Nektar::LocalRegions::TetExp::v_ComputeTraceNormal(), Nektar::LocalRegions::QuadExp::v_ExtractDataToCoeffs(), Nektar::SpatialDomains::QuadGeom::v_FillGeom(), Nektar::SpatialDomains::TriGeom::v_FillGeom(), Nektar::LocalRegions::Expansion3D::v_GenMatrix(), Nektar::LocalRegions::Expansion::v_GetCoords(), Nektar::MultiRegions::ExpList::v_GetNormals(), and Nektar::LocalRegions::Expansion3D::v_GetTracePhysVals().

◆ Interp2D() [2/3]

void Nektar::LibUtilities::Interp2D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
const PointsKey tpoints1,
Array< OneD, NekDouble > &  to 
)

Definition at line 109 of file Interp.cpp.

113{
114 Interp2D(fpoints0, fpoints1, from.data(), tpoints0, tpoints1, to.data());
115}

References Interp2D().

◆ Interp2D() [3/3]

void Nektar::LibUtilities::Interp2D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const NekDouble from,
const PointsKey tpoints0,
const PointsKey tpoints1,
NekDouble to 
)

Definition at line 117 of file Interp.cpp.

120{
121 // default interpolation
122 if ((fpoints0 == tpoints0) && (fpoints1 == tpoints1))
123 {
124 Vmath::Vcopy(tpoints0.GetNumPoints() * tpoints1.GetNumPoints(), from, 1,
125 to, 1);
126 return;
127 }
128
129 DNekMatSharedPtr I0, I1;
130 Array<OneD, NekDouble> wsp(tpoints1.GetNumPoints() *
131 fpoints0.GetNumPoints()); // fnp0*tnp1
132
133 size_t fnp0 = fpoints0.GetNumPoints();
134 size_t fnp1 = fpoints1.GetNumPoints();
135 size_t tnp0 = tpoints0.GetNumPoints();
136 size_t tnp1 = tpoints1.GetNumPoints();
137
138 if (fpoints1 == tpoints1)
139 {
140 Vmath::Vcopy(fnp0 * tnp1, from, 1, wsp.get(), 1);
141 }
142 else
143 {
144 I1 = PointsManager()[fpoints1]->GetI(tpoints1);
145 Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
146 I1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
147 }
148
149 if (fpoints0 == tpoints0)
150 {
151 Vmath::Vcopy(tnp0 * tnp1, wsp.get(), 1, to, 1);
152 }
153 else
154 {
155 I0 = PointsManager()[fpoints0]->GetI(tpoints0);
156 Blas::Dgemm('N', 'N', tnp0, tnp1, fnp0, 1.0, I0->GetPtr().get(), tnp0,
157 wsp.get(), fnp0, 0.0, to, tnp0);
158 }
159}
static void Dgemm(const char &transa, const char &transb, const int &m, const int &n, const int &k, const double &alpha, const double *a, const int &lda, const double *b, const int &ldb, const double &beta, double *c, const int &ldc)
BLAS level 3: Matrix-matrix multiply C = A x B where op(A)[m x k], op(B)[k x n], C[m x n] DGEMM perfo...
Definition: Blas.hpp:383

References Blas::Dgemm(), Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ Interp3D() [1/3]

void Nektar::LibUtilities::Interp3D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const BasisKey fbasis2,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
const BasisKey tbasis2,
Array< OneD, NekDouble > &  to 
)

this function interpolates a 3D function \(f\) evaluated at the quadrature points of the 3D basis, constructed by fbasis0, fbasis1, and fbasis2 to the function values at the quadrature points of the 3D basis, constructed by tbasis0, tbasis1, and tbasis2.

Given a function \( f\) evaluated at the Q quadrature points of the first expansion basis, this routine calculates, using (Q-1)th order polynomial interpolation, the function values at the Q2 quadrature points of the second basis, and the function values at the Q3 quadrature points of the third basis.

Parameters
fbasis0the basis at which's quadrature points the function is given
fromthe array containg the function \( f\) evaluated at the quadrature points of fbasis0
tbasis0the basis to which's quadrature points the function should be interpolated
tothe array containg the function \( f\) evaluated at the quadrature points of tbasis0 (output of the function)

Definition at line 162 of file Interp.cpp.

166{
167 Interp3D(fbasis0.GetPointsKey(), fbasis1.GetPointsKey(),
168 fbasis2.GetPointsKey(), from.data(), tbasis0.GetPointsKey(),
169 tbasis1.GetPointsKey(), tbasis2.GetPointsKey(), to.data());
170}
void Interp3D(const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, NekDouble *to)
Definition: Interp.cpp:182

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and Interp3D().

Referenced by Nektar::FieldUtils::ProcessQualityMetric::GetQ(), Nektar::SpatialDomains::GeomFactors::Interp(), Interp3D(), Nektar::LocalRegions::HexExp::v_ExtractDataToCoeffs(), and Nektar::LocalRegions::Expansion::v_GetCoords().

◆ Interp3D() [2/3]

void Nektar::LibUtilities::Interp3D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const PointsKey fpoints2,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
const PointsKey tpoints1,
const PointsKey tpoints2,
Array< OneD, NekDouble > &  to 
)

Definition at line 172 of file Interp.cpp.

177{
178 Interp3D(fpoints0, fpoints1, fpoints2, from.data(), tpoints0, tpoints1,
179 tpoints2, to.data());
180}

References Interp3D().

◆ Interp3D() [3/3]

void Nektar::LibUtilities::Interp3D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const PointsKey fpoints2,
const NekDouble from,
const PointsKey tpoints0,
const PointsKey tpoints1,
const PointsKey tpoints2,
NekDouble to 
)

Definition at line 182 of file Interp.cpp.

186{
187 size_t i;
188 DNekMatSharedPtr I0, I1, I2;
189
190 size_t fnp0 = fpoints0.GetNumPoints();
191 size_t fnp1 = fpoints1.GetNumPoints();
192 size_t fnp2 = fpoints2.GetNumPoints();
193 size_t tnp0 = tpoints0.GetNumPoints();
194 size_t tnp1 = tpoints1.GetNumPoints();
195 size_t tnp2 = tpoints2.GetNumPoints();
196
197 Array<OneD, NekDouble> wsp1(tnp0 * tnp1 * fnp2);
198 Array<OneD, NekDouble> wsp2(tnp0 * fnp1 * fnp2);
199
200 I0 = PointsManager()[fpoints0]->GetI(tpoints0);
201 I1 = PointsManager()[fpoints1]->GetI(tpoints1);
202 I2 = PointsManager()[fpoints2]->GetI(tpoints2);
203
204 Blas::Dgemm('N', 'N', tnp0, fnp1 * fnp2, fnp0, 1.0, I0->GetPtr().get(),
205 tnp0, from, fnp0, 0.0, wsp2.get(), tnp0);
206
207 for (i = 0; i < fnp2; i++)
208 {
209 Blas::Dgemm('N', 'T', tnp0, tnp1, fnp1, 1.0,
210 wsp2.get() + i * tnp0 * fnp1, tnp0, I1->GetPtr().get(),
211 tnp1, 0.0, wsp1.get() + i * tnp0 * tnp1, tnp0);
212 }
213
214 Blas::Dgemm('N', 'T', tnp0 * tnp1, tnp2, fnp2, 1.0, wsp1.get(), tnp0 * tnp1,
215 I2->GetPtr().get(), tnp2, 0.0, to, tnp0 * tnp1);
216}

References Blas::Dgemm(), Nektar::LibUtilities::PointsKey::GetNumPoints(), and PointsManager().

◆ InterpCoeff1D()

void Nektar::LibUtilities::InterpCoeff1D ( const BasisKey fbasis0,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
Array< OneD, NekDouble > &  to 
)

Definition at line 42 of file InterpCoeff.cpp.

45{
46 ASSERTL0(fbasis0.GetNumModes() == tbasis0.GetNumModes(),
47 "Number of modes must be the same for "
48 "interpolating coefficients");
49
50 // Check to see if the same basis
51 if (fbasis0.GetBasisType() == tbasis0.GetBasisType())
52 {
53 Vmath::Vcopy(fbasis0.GetNumModes(), from, 1, to, 1);
54 }
55 else
56 {
57 // interpolate
58 DNekMatSharedPtr ftB = BasisManager()[fbasis0]->GetI(tbasis0);
59
60 NekVector<NekDouble> in(fbasis0.GetNumModes(), from, eWrapper);
61 NekVector<NekDouble> out(tbasis0.GetNumModes(), to, eWrapper);
62
63 out = (*ftB) * in;
64 }
65}
BasisType GetBasisType() const
Return type of expansion basis.
Definition: Basis.h:131
int GetNumModes() const
Returns the order of the basis.
Definition: Basis.h:74
BasisManagerT & BasisManager(void)

References ASSERTL0, BasisManager(), Nektar::eWrapper, Nektar::LibUtilities::BasisKey::GetBasisType(), Nektar::LibUtilities::BasisKey::GetNumModes(), and Vmath::Vcopy().

Referenced by Nektar::LocalRegions::Expansion2D::v_AddEdgeNormBoundaryInt(), Nektar::StdRegions::StdSegExp::v_ReduceOrderCoeffs(), and Nektar::SolverUtils::FilterEnergy1D::v_Update().

◆ InterpCoeff2D() [1/2]

void Nektar::LibUtilities::InterpCoeff2D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
Array< OneD, NekDouble > &  to 
)

Definition at line 67 of file InterpCoeff.cpp.

71{
72 InterpCoeff2D(fbasis0, fbasis1, from.data(), tbasis0, tbasis1, to.data());
73}
void InterpCoeff2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const NekDouble *from, const BasisKey &tbasis0, const BasisKey &tbasis1, NekDouble *to)
Definition: InterpCoeff.cpp:75

References InterpCoeff2D().

Referenced by InterpCoeff2D(), Nektar::LocalRegions::QuadExp::v_ReduceOrderCoeffs(), and Nektar::StdRegions::StdQuadExp::v_ReduceOrderCoeffs().

◆ InterpCoeff2D() [2/2]

void Nektar::LibUtilities::InterpCoeff2D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const NekDouble from,
const BasisKey tbasis0,
const BasisKey tbasis1,
NekDouble to 
)

Definition at line 75 of file InterpCoeff.cpp.

78{
79 const size_t fnm0 = fbasis0.GetNumModes();
80 const size_t fnm1 = fbasis1.GetNumModes();
81 const size_t tnm0 = tbasis0.GetNumModes();
82 const size_t tnm1 = tbasis1.GetNumModes();
83
84 Array<OneD, NekDouble> wsp(tnm1 * fnm0);
85
86 if (fbasis1.GetBasisType() == tbasis1.GetBasisType())
87 {
88 Vmath::Vcopy(fnm0 * tnm1, from, 1, wsp.get(), 1);
89 }
90 else
91 {
92 // interpolate
93 DNekMatSharedPtr ft1 = BasisManager()[fbasis1]->GetI(tbasis1);
94
95 Blas::Dgemm('N', 'T', fnm0, tnm1, fnm1, 1.0, from, fnm0,
96 ft1->GetPtr().get(), tnm1, 0.0, wsp.get(), fnm0);
97 }
98
99 if (fbasis0.GetBasisType() == tbasis0.GetBasisType())
100 {
101 Vmath::Vcopy(tnm0 * tnm1, wsp.get(), 1, to, 1);
102 }
103 else
104 {
105 // interpolate
106 DNekMatSharedPtr ft0 = BasisManager()[fbasis0]->GetI(tbasis0);
107
108 Blas::Dgemm('N', 'N', tnm0, tnm1, fnm0, 1.0, ft0->GetPtr().get(), tnm0,
109 wsp.get(), fnm0, 0.0, to, tnm0);
110 }
111}

References BasisManager(), Blas::Dgemm(), Nektar::LibUtilities::BasisKey::GetBasisType(), Nektar::LibUtilities::BasisKey::GetNumModes(), and Vmath::Vcopy().

◆ InterpCoeff3D() [1/2]

void Nektar::LibUtilities::InterpCoeff3D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const BasisKey fbasis2,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
const BasisKey tbasis2,
Array< OneD, NekDouble > &  to 
)

Definition at line 113 of file InterpCoeff.cpp.

118{
119 InterpCoeff3D(fbasis0, fbasis1, fbasis2, from.data(), tbasis0, tbasis1,
120 tbasis2, to.data());
121}
void InterpCoeff3D(const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const NekDouble *from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, NekDouble *to)

References InterpCoeff3D().

Referenced by InterpCoeff3D(), and Nektar::LocalRegions::HexExp::v_ReduceOrderCoeffs().

◆ InterpCoeff3D() [2/2]

void Nektar::LibUtilities::InterpCoeff3D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const BasisKey fbasis2,
const NekDouble from,
const BasisKey tbasis0,
const BasisKey tbasis1,
const BasisKey tbasis2,
NekDouble to 
)

Definition at line 123 of file InterpCoeff.cpp.

127{
128 const size_t fnm0 = fbasis0.GetNumModes();
129 const size_t fnm1 = fbasis1.GetNumModes();
130 const size_t fnm2 = fbasis2.GetNumModes();
131 const size_t tnm0 = tbasis0.GetNumModes();
132 const size_t tnm1 = tbasis1.GetNumModes();
133 const size_t tnm2 = tbasis2.GetNumModes();
134
135 Array<OneD, NekDouble> wsp1(tnm0 * tnm1 * fnm2);
136 Array<OneD, NekDouble> wsp2(tnm0 * fnm1 * fnm2);
137
138 DNekMatSharedPtr ft0 = BasisManager()[fbasis0]->GetI(tbasis0);
139 DNekMatSharedPtr ft1 = BasisManager()[fbasis1]->GetI(tbasis1);
140 DNekMatSharedPtr ft2 = BasisManager()[fbasis2]->GetI(tbasis2);
141
142 Blas::Dgemm('N', 'N', tnm0, fnm1 * fnm2, fnm0, 1.0, ft0->GetPtr().get(),
143 tnm0, from, fnm0, 0.0, wsp2.get(), tnm0);
144
145 for (size_t i = 0; i < fnm2; i++)
146 {
147 Blas::Dgemm('N', 'T', tnm0, tnm1, fnm1, 1.0,
148 wsp2.get() + i * tnm0 * fnm1, tnm0, ft1->GetPtr().get(),
149 tnm1, 0.0, wsp1.get() + i * tnm0 * tnm1, tnm0);
150 }
151
152 Blas::Dgemm('N', 'T', tnm0 * tnm1, tnm2, fnm2, 1.0, wsp1.get(), tnm0 * tnm1,
153 ft2->GetPtr().get(), tnm2, 0.0, to, tnm0 * tnm1);
154}

References BasisManager(), Blas::Dgemm(), and Nektar::LibUtilities::BasisKey::GetNumModes().

◆ IsRealClose()

template<class T1 , class T2 , class = typename std::enable_if< std::is_floating_point<typename std::remove_cv< typename std::remove_reference<T1>::type>::type>::value && std::is_same<typename std::remove_cv< typename std::remove_reference<T1>::type>::type, typename std::remove_cv<typename std::remove_reference< T2>::type>::type>::value>::type>
bool Nektar::LibUtilities::IsRealClose ( T1 &&  lhs,
T2 &&  rhs,
const NekDouble  tol = NekConstants::kNekMachineEpsilon 
)
inline

compare reals of same type with absolute tolerance

Definition at line 76 of file RealComparison.hpp.

78{
79 // Check if tolerance is positive
80 ASSERTL1(tol >= 0, "real comparison tolerance needs to be >= 0");
81 // Check if distance is within tolerance
82 return std::abs(lhs - rhs) < tol;
83}
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Definition: ErrorUtil.hpp:242
scalarT< T > abs(scalarT< T > in)
Definition: scalar.hpp:298

References tinysimd::abs(), and ASSERTL1.

◆ IsRealEqual()

template<class T1 , class T2 , class = typename std::enable_if< std::is_floating_point<typename std::remove_cv< typename std::remove_reference<T1>::type>::type>::value && std::is_same<typename std::remove_cv< typename std::remove_reference<T1>::type>::type, typename std::remove_cv<typename std::remove_reference< T2>::type>::type>::value>::type>
bool Nektar::LibUtilities::IsRealEqual ( T1 &&  lhs,
T2 &&  rhs,
const unsigned int  factor = NekConstants::kNekFloatCompFact 
)
inline

compare reals of same type with relative tolerance

Definition at line 56 of file RealComparison.hpp.

59{
60 // Check precondition in debug mode
61 ASSERTL1(factor >= 1, "real comparison factor needs to be >= 1");
62 // Relative distance normalized by machine epsilon
63 return boost::math::epsilon_difference(lhs, rhs) < factor;
64}

References ASSERTL1.

Referenced by Nektar::RealComparisonUnitTests::BOOST_AUTO_TEST_CASE(), and Nektar::IsEqualImpl().

◆ NullBasisKey()

static const BasisKey Nektar::LibUtilities::NullBasisKey ( eNoBasisType  ,
,
NullPointsKey   
)
static

◆ NullPointsKey()

static const PointsKey Nektar::LibUtilities::NullPointsKey ( ,
eNoPointsType   
)
static

◆ operator!=() [1/4]

bool Nektar::LibUtilities::operator!= ( const BasisKey x,
const BasisKey y 
)

Definition at line 922 of file Foundations/Basis.cpp.

923{
924 return (!(x == y));
925}

◆ operator!=() [2/4]

bool Nektar::LibUtilities::operator!= ( const BasisKey x,
const BasisKey y 
)

Definition at line 934 of file Foundations/Basis.cpp.

935{
936 return (!(x == *y));
937}

◆ operator!=() [3/4]

bool Nektar::LibUtilities::operator!= ( const BasisKey x,
const BasisKey y 
)

Definition at line 928 of file Foundations/Basis.cpp.

929{
930 return (!(*x == y));
931}

◆ operator!=() [4/4]

bool Nektar::LibUtilities::operator!= ( const GraphVertexObject x,
const GraphVertexObject y 
)

Definition at line 60 of file Graph.cpp.

61{
62 return (x.m_id != y.m_id);
63}

◆ operator<() [1/2]

bool Nektar::LibUtilities::operator< ( const BasisKey lhs,
const BasisKey rhs 
)

Definition at line 44 of file Foundations/Basis.cpp.

45{
46 PointsKey lhsPointsKey = lhs.GetPointsKey();
47 PointsKey rhsPointsKey = rhs.GetPointsKey();
48
49 if (lhsPointsKey < rhsPointsKey)
50 {
51 return true;
52 }
53 if (lhsPointsKey != rhsPointsKey)
54 {
55 return false;
56 }
57
58 if (lhs.m_nummodes < rhs.m_nummodes)
59 {
60 return true;
61 }
62 if (lhs.m_nummodes > rhs.m_nummodes)
63 {
64 return false;
65 }
66
67 return (lhs.m_basistype < rhs.m_basistype);
68}
size_t m_nummodes
Expansion order.
Definition: Basis.h:185
BasisType m_basistype
Expansion type.
Definition: Basis.h:186
Defines a specification for a set of points.
Definition: Points.h:50

◆ operator<() [2/2]

bool Nektar::LibUtilities::operator< ( const PointsKey lhs,
const PointsKey rhs 
)

Definition at line 51 of file Foundations/Points.cpp.

52{
53 if (lhs.m_pointstype < rhs.m_pointstype)
54 {
55 return true;
56 }
57
58 if (lhs.m_pointstype > rhs.m_pointstype)
59 {
60 return false;
61 }
62
63 if (lhs.m_numpoints < rhs.m_numpoints)
64 {
65 return true;
66 }
67
68 if (lhs.m_numpoints > rhs.m_numpoints)
69 {
70 return false;
71 }
72
73 if (lhs.m_factor < rhs.m_factor)
74 {
75 return true;
76 }
77
78 if (lhs.m_factor > rhs.m_factor)
79 {
80 return false;
81 }
82
83 return false;
84}
size_t m_numpoints
number of the points (as appropriately defined for PointsType)
Definition: Points.h:216
PointsType m_pointstype
Type of Points.
Definition: Points.h:218
NekDouble m_factor
optional factor
Definition: Points.h:219

◆ operator<<() [1/14]

std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const BasisKey rhs 
)

Definition at line 81 of file Foundations/Basis.cpp.

82{
83 os << "NumModes: " << rhs.GetNumModes()
84 << " BasisType: " << BasisTypeMap[rhs.GetBasisType()];
85 os << " " << rhs.GetPointsKey() << std::endl;
86
87 return os;
88}
const char *const BasisTypeMap[]
Definition: Foundations.hpp:44

References BasisTypeMap, Nektar::LibUtilities::BasisKey::GetBasisType(), Nektar::LibUtilities::BasisKey::GetNumModes(), and Nektar::LibUtilities::BasisKey::GetPointsKey().

◆ operator<<() [2/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const FractionalInTimeIntegrationScheme rhs 
)

Definition at line 1070 of file TimeIntegrationSchemeFIT.cpp.

1072{
1073 rhs.print(os);
1074
1075 return os;
1076}

◆ operator<<() [3/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const FractionalInTimeIntegrationSchemeSharedPtr rhs 
)

Definition at line 1078 of file TimeIntegrationSchemeFIT.cpp.

1080{
1081 os << *rhs.get();
1082
1083 return os;
1084}

◆ operator<<() [4/14]

std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const PointsKey rhs 
)

Definition at line 92 of file Foundations/Points.cpp.

93{
94 os << "NumPoints: " << rhs.GetNumPoints()
95 << " PointsType: " << kPointsTypeStr[rhs.GetPointsType()] << std::endl;
96
97 return os;
98}
PointsType GetPointsType() const
Definition: Points.h:90
const std::string kPointsTypeStr[]
Definition: Foundations.hpp:52

References Nektar::LibUtilities::PointsKey::GetNumPoints(), Nektar::LibUtilities::PointsKey::GetPointsType(), and kPointsTypeStr.

◆ operator<<() [5/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationAlgorithmGLM rhs 
)

Definition at line 932 of file TimeIntegrationAlgorithmGLM.cpp.

934{
935 size_t r = rhs.m_numsteps;
936 size_t s = rhs.m_numstages;
938
939 size_t oswidth = 9;
940 size_t osprecision = 6;
941
942 os << "Time Integration Scheme (Master): " << rhs.m_parent->GetFullName()
943 << "\n"
944 << "Time Integration Phase : " << rhs.m_name << "\n"
945 << "- number of steps: " << r << "\n"
946 << "- number of stages: " << s << "\n"
947 << "General linear method tableau:\n";
948
949 for (size_t i = 0; i < s; i++)
950 {
951 for (size_t j = 0; j < s; j++)
952 {
953 os.width(oswidth);
954 os.precision(osprecision);
955 os << std::right << rhs.A(i, j) << " ";
956 }
957 if (type == eIMEX)
958 {
959 os << " '";
960 for (size_t j = 0; j < s; j++)
961 {
962 os.width(oswidth);
963 os.precision(osprecision);
964 os << std::right << rhs.A_IMEX(i, j) << " ";
965 }
966 }
967
968 os << " |";
969
970 for (size_t j = 0; j < r; j++)
971 {
972 os.width(oswidth);
973 os.precision(osprecision);
974 os << std::right << rhs.U(i, j);
975 }
976 os << std::endl;
977 }
978
979 size_t imexflag = (type == eIMEX) ? 2 : 1;
980 for (size_t i = 0;
981 i < (r + imexflag * s) * (oswidth + 1) + imexflag * 2 - 1; i++)
982 {
983 os << "-";
984 }
985 os << std::endl;
986
987 for (size_t i = 0; i < r; i++)
988 {
989 for (size_t j = 0; j < s; j++)
990 {
991 os.width(oswidth);
992 os.precision(osprecision);
993 os << std::right << rhs.B(i, j) << " ";
994 }
995 if (type == eIMEX)
996 {
997 os << " '";
998 for (size_t j = 0; j < s; j++)
999 {
1000 os.width(oswidth);
1001 os.precision(osprecision);
1002 os << std::right << rhs.B_IMEX(i, j) << " ";
1003 }
1004 }
1005
1006 os << " |";
1007
1008 for (size_t j = 0; j < r; j++)
1009 {
1010 os.width(oswidth);
1011 os.precision(osprecision);
1012 os << std::right << rhs.V(i, j);
1013 }
1014
1015 os << " |";
1016
1017 os.width(oswidth);
1018 os.precision(osprecision);
1019 os << std::right << rhs.m_timeLevelOffset[i];
1020
1021 if (i < rhs.m_numMultiStepValues)
1022 {
1023 os << std::right << " value";
1024 }
1025 else
1026 {
1027 os << std::right << " derivative";
1028 }
1029
1030 os << std::endl;
1031 }
1032
1033 if (type == eExponential)
1034 {
1035 for (size_t k = 0; k < rhs.m_nvars; k++)
1036 {
1037 os << std::endl
1038 << "General linear method exponential tableau for variable " << k
1039 << ":\n";
1040
1041 for (size_t i = 0; i < s; i++)
1042 {
1043 for (size_t j = 0; j < s; j++)
1044 {
1045 os.width(oswidth);
1046 os.precision(osprecision);
1047 os << std::right << rhs.A(k, i, j) << " ";
1048 }
1049
1050 os << " |";
1051
1052 for (size_t j = 0; j < r; j++)
1053 {
1054 os.width(oswidth);
1055 os.precision(osprecision);
1056 os << std::right << rhs.B(k, i, j);
1057 }
1058 os << std::endl;
1059 }
1060
1061 for (size_t i = 0;
1062 i < (r + imexflag * s) * (oswidth + 1) + imexflag * 2 - 1; i++)
1063 {
1064 os << "-";
1065 }
1066 os << std::endl;
1067
1068 for (size_t i = 0; i < r; i++)
1069 {
1070 for (size_t j = 0; j < s; j++)
1071 {
1072 os.width(oswidth);
1073 os.precision(osprecision);
1074 os << std::right << rhs.B(k, i, j) << " ";
1075 }
1076
1077 os << " |";
1078
1079 for (size_t j = 0; j < r; j++)
1080 {
1081 os.width(oswidth);
1082 os.precision(osprecision);
1083 os << std::right << rhs.V(k, i, j);
1084 }
1085 os << std::endl;
1086 }
1087 }
1088 }
1089
1090 return os;
1091} // end function operator<<
NekDouble V(const size_t i, const size_t j) const
const TimeIntegrationSchemeGLM * m_parent
Parent scheme object.
NekDouble A(const size_t i, const size_t j) const
NekDouble B_IMEX(const size_t i, const size_t j) const
NekDouble A_IMEX(const size_t i, const size_t j) const
NekDouble B(const size_t i, const size_t j) const
NekDouble U(const size_t i, const size_t j) const

◆ operator<<() [6/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationAlgorithmGLMSharedPtr rhs 
)

Definition at line 926 of file TimeIntegrationAlgorithmGLM.cpp.

928{
929 return operator<<(os, *rhs);
930}
std::ostream & operator<<(std::ostream &os, const TimeIntegrationAlgorithmGLM &rhs)

◆ operator<<() [7/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationScheme rhs 
)

Definition at line 66 of file TimeIntegration/TimeIntegrationScheme.cpp.

67{
68 rhs.print(os);
69
70 return os;
71}

◆ operator<<() [8/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeGEM rhs 
)

Definition at line 428 of file TimeIntegrationSchemeGEM.cpp.

429{
430 rhs.print(os);
431
432 return os;
433}

References Nektar::LibUtilities::TimeIntegrationScheme::print().

◆ operator<<() [9/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeGEMSharedPtr rhs 
)

Definition at line 435 of file TimeIntegrationSchemeGEM.cpp.

437{
438 os << *rhs.get();
439
440 return os;
441}

◆ operator<<() [10/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeGLM rhs 
)

Definition at line 145 of file TimeIntegrationSchemeGLM.cpp.

146{
147 rhs.print(os);
148
149 return os;
150}

◆ operator<<() [11/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeGLMSharedPtr rhs 
)

Definition at line 152 of file TimeIntegrationSchemeGLM.cpp.

154{
155 os << *rhs.get();
156
157 return os;
158}

◆ operator<<() [12/14]

std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeSDC rhs 
)

Definition at line 341 of file TimeIntegrationSchemeSDC.cpp.

342{
343 rhs.print(os);
344
345 return os;
346}

References Nektar::LibUtilities::TimeIntegrationScheme::print().

◆ operator<<() [13/14]

std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeSDCSharedPtr rhs 
)

Definition at line 348 of file TimeIntegrationSchemeSDC.cpp.

350{
351 os << *rhs.get();
352
353 return os;
354}

◆ operator<<() [14/14]

LUE std::ostream & Nektar::LibUtilities::operator<< ( std::ostream &  os,
const TimeIntegrationSchemeSharedPtr rhs 
)

Definition at line 73 of file TimeIntegration/TimeIntegrationScheme.cpp.

75{
76 os << *rhs.get();
77
78 return os;
79}

◆ operator==() [1/5]

bool Nektar::LibUtilities::operator== ( const BasisKey x,
const BasisKey y 
)

Definition at line 902 of file Foundations/Basis.cpp.

903{
904 return (x.GetPointsKey() == y.GetPointsKey() &&
905 x.m_basistype == y.m_basistype &&
906 x.GetNumModes() == y.GetNumModes());
907}

◆ operator==() [2/5]

bool Nektar::LibUtilities::operator== ( const BasisKey x,
const BasisKey y 
)

Definition at line 916 of file Foundations/Basis.cpp.

917{
918 return (x == *y);
919}

◆ operator==() [3/5]

bool Nektar::LibUtilities::operator== ( const BasisKey x,
const BasisKey y 
)

Definition at line 910 of file Foundations/Basis.cpp.

911{
912 return (*x == y);
913}

◆ operator==() [4/5]

bool Nektar::LibUtilities::operator== ( const GraphVertexObject x,
const GraphVertexObject y 
)

Definition at line 55 of file Graph.cpp.

56{
57 return (x.m_id == y.m_id);
58}

◆ operator==() [5/5]

bool Nektar::LibUtilities::operator== ( const PointsKey lhs,
const PointsKey rhs 
)

Definition at line 45 of file Foundations/Points.cpp.

46{
47 return (lhs.m_numpoints == rhs.m_numpoints &&
48 lhs.m_pointstype == rhs.m_pointstype);
49}

◆ operator>()

bool Nektar::LibUtilities::operator> ( const BasisKey lhs,
const BasisKey rhs 
)

Definition at line 70 of file Foundations/Basis.cpp.

71{
72 return (rhs < lhs);
73}

◆ PhysGalerkinProject1D() [1/4]

void Nektar::LibUtilities::PhysGalerkinProject1D ( const BasisKey fbasis0,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
Array< OneD, NekDouble > &  to 
)

Definition at line 49 of file PhysGalerkinProject.cpp.

52{
53 PhysGalerkinProject1D(fbasis0.GetPointsKey(), from, tbasis0.GetPointsKey(),
54 to);
55}
void PhysGalerkinProject1D(const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and PhysGalerkinProject1D().

Referenced by PhysGalerkinProject1D().

◆ PhysGalerkinProject1D() [2/4]

void Nektar::LibUtilities::PhysGalerkinProject1D ( const BasisKey fbasis0,
const NekDouble from,
const BasisKey tbasis0,
NekDouble to 
)

Definition at line 80 of file PhysGalerkinProject.cpp.

82{
83 PhysGalerkinProject1D(fbasis0.GetPointsKey(), from, tbasis0.GetPointsKey(),
84 to);
85}

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and PhysGalerkinProject1D().

◆ PhysGalerkinProject1D() [3/4]

void Nektar::LibUtilities::PhysGalerkinProject1D ( const PointsKey fpoints0,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
Array< OneD, NekDouble > &  to 
)

Definition at line 57 of file PhysGalerkinProject.cpp.

61{
62 if (fpoints0 == tpoints0) // check to see if the same
63 {
64 Vmath::Vcopy(fpoints0.GetNumPoints(), from, 1, to, 1);
65 }
66 else // interpolate
67 {
69
70 GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
71
72 NekVector<NekDouble> in(fpoints0.GetNumPoints(), from, eWrapper);
73 NekVector<NekDouble> out(tpoints0.GetNumPoints(), to, eWrapper);
74
75 GP0->Transpose();
76 out = (*GP0) * in;
77 }
78}

References Nektar::eWrapper, Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ PhysGalerkinProject1D() [4/4]

void Nektar::LibUtilities::PhysGalerkinProject1D ( const PointsKey fpoints0,
const NekDouble from,
const PointsKey tpoints0,
NekDouble to 
)

Definition at line 87 of file PhysGalerkinProject.cpp.

89{
90 if (fpoints0 == tpoints0) // check to see if the same
91 {
92 Vmath::Vcopy(fpoints0.GetNumPoints(), from, 1, to, 1);
93 }
94 else // interpolate
95 {
96
98
99 GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
100
101 Blas::Dgemv('T', tpoints0.GetNumPoints(), fpoints0.GetNumPoints(), 1.0,
102 GP0->GetPtr().get(), tpoints0.GetNumPoints(), from, 1, 0.0,
103 to, 1);
104 }
105}

References Blas::Dgemv(), Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ PhysGalerkinProject2D() [1/3]

void Nektar::LibUtilities::PhysGalerkinProject2D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
Array< OneD, NekDouble > &  to 
)

Definition at line 108 of file PhysGalerkinProject.cpp.

112{
114 from.data(), tbasis0.GetPointsKey(),
115 tbasis1.GetPointsKey(), to.data());
116}
void PhysGalerkinProject2D(const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and PhysGalerkinProject2D().

Referenced by PhysGalerkinProject2D(), and Nektar::MultiRegions::ExpList::v_PhysGalerkinProjection1DScaled().

◆ PhysGalerkinProject2D() [2/3]

void Nektar::LibUtilities::PhysGalerkinProject2D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
const PointsKey tpoints1,
Array< OneD, NekDouble > &  to 
)

Definition at line 118 of file PhysGalerkinProject.cpp.

122{
123 PhysGalerkinProject2D(fpoints0, fpoints1, from.data(), tpoints0, tpoints1,
124 to.data());
125}

References PhysGalerkinProject2D().

◆ PhysGalerkinProject2D() [3/3]

void Nektar::LibUtilities::PhysGalerkinProject2D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const NekDouble from,
const PointsKey tpoints0,
const PointsKey tpoints1,
NekDouble to 
)

Definition at line 127 of file PhysGalerkinProject.cpp.

130{
131 DNekMatSharedPtr GP0, GP1;
132 Array<OneD, NekDouble> wsp(tpoints1.GetNumPoints() *
133 fpoints0.GetNumPoints()); // fnp0*tnp1
134
135 size_t fnp0 = fpoints0.GetNumPoints();
136 size_t fnp1 = fpoints1.GetNumPoints();
137 size_t tnp0 = tpoints0.GetNumPoints();
138 size_t tnp1 = tpoints1.GetNumPoints();
139
140 if (fpoints1 == tpoints1)
141 {
142 Vmath::Vcopy(fnp0 * tnp1, from, 1, wsp.get(), 1);
143 }
144 else
145 {
146 GP1 = PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
147 Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
148 GP1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
149 }
150
151 if (fpoints0 == tpoints0)
152 {
153 Vmath::Vcopy(tnp0 * tnp1, wsp.get(), 1, to, 1);
154 }
155 else
156 {
157 GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
158 Blas::Dgemm('N', 'N', tnp0, tnp1, fnp0, 1.0, GP0->GetPtr().get(), tnp0,
159 wsp.get(), fnp0, 0.0, to, tnp0);
160 }
161}

References Blas::Dgemm(), Nektar::LibUtilities::PointsKey::GetNumPoints(), PointsManager(), and Vmath::Vcopy().

◆ PhysGalerkinProject3D() [1/3]

void Nektar::LibUtilities::PhysGalerkinProject3D ( const BasisKey fbasis0,
const BasisKey fbasis1,
const BasisKey fbasis2,
const Array< OneD, const NekDouble > &  from,
const BasisKey tbasis0,
const BasisKey tbasis1,
const BasisKey tbasis2,
Array< OneD, NekDouble > &  to 
)

Definition at line 164 of file PhysGalerkinProject.cpp.

169{
171 fbasis2.GetPointsKey(), from.data(),
172 tbasis0.GetPointsKey(), tbasis1.GetPointsKey(),
173 tbasis2.GetPointsKey(), to.data());
174}
void PhysGalerkinProject3D(const PointsKey &fpoints0, const PointsKey &fpoints1, const PointsKey &fpoints2, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, const PointsKey &tpoints2, NekDouble *to)

References Nektar::LibUtilities::BasisKey::GetPointsKey(), and PhysGalerkinProject3D().

Referenced by PhysGalerkinProject3D(), and Nektar::MultiRegions::ExpList::v_PhysGalerkinProjection1DScaled().

◆ PhysGalerkinProject3D() [2/3]

void Nektar::LibUtilities::PhysGalerkinProject3D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const PointsKey fpoints2,
const Array< OneD, const NekDouble > &  from,
const PointsKey tpoints0,
const PointsKey tpoints1,
const PointsKey tpoints2,
Array< OneD, NekDouble > &  to 
)

Definition at line 176 of file PhysGalerkinProject.cpp.

182{
183 PhysGalerkinProject3D(fpoints0, fpoints1, fpoints2, from.data(), tpoints0,
184 tpoints1, tpoints2, to.data());
185}

References PhysGalerkinProject3D().

◆ PhysGalerkinProject3D() [3/3]

void Nektar::LibUtilities::PhysGalerkinProject3D ( const PointsKey fpoints0,
const PointsKey fpoints1,
const PointsKey fpoints2,
const NekDouble from,
const PointsKey tpoints0,
const PointsKey tpoints1,
const PointsKey tpoints2,
NekDouble to 
)

Definition at line 187 of file PhysGalerkinProject.cpp.

191{
192 DNekMatSharedPtr GP0, GP1, GP2;
193
194 size_t fnp0 = fpoints0.GetNumPoints();
195 size_t fnp1 = fpoints1.GetNumPoints();
196 size_t fnp2 = fpoints2.GetNumPoints();
197 size_t tnp0 = tpoints0.GetNumPoints();
198 size_t tnp1 = tpoints1.GetNumPoints();
199 size_t tnp2 = tpoints2.GetNumPoints();
200
201 Array<OneD, NekDouble> wsp1(fnp0 * tnp1 * tnp2);
202 Array<OneD, NekDouble> wsp2(fnp0 * fnp1 * tnp2);
203
204 GP2 = PointsManager()[tpoints2]->GetGalerkinProjection(fpoints2);
205 Blas::Dgemm('N', 'T', fnp0 * fnp1, tnp2, fnp2, 1.0, from, fnp0 * fnp1,
206 GP2->GetPtr().get(), tnp2, 0.0, wsp2.get(), fnp0 * fnp1);
207
208 GP1 = PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
209 for (size_t i = 0; i < tnp2; i++)
210 {
211 Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0,
212 wsp2.get() + i * fnp0 * fnp1, fnp0, GP1->GetPtr().get(),
213 tnp1, 0.0, wsp1.get() + i * fnp0 * tnp1, fnp0);
214 }
215
216 GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
217 Blas::Dgemm('N', 'N', tnp0, tnp1 * tnp2, fnp0, 1.0, GP0->GetPtr().get(),
218 tnp0, wsp1.get(), fnp0, 0.0, to, tnp0);
219}

References Blas::Dgemm(), Nektar::LibUtilities::PointsKey::GetNumPoints(), and PointsManager().

◆ PointsManager()

PointsManagerT & Nektar::LibUtilities::PointsManager ( void  )

Definition at line 40 of file ManagerAccess.cpp.

41{
42 static PointsManagerT instance;
43 return instance;
44}

Referenced by Nektar::LibUtilities::GaussPoints::CalculateGalerkinProjectionMatrix(), Nektar::LibUtilities::FourierPoints::CreateMatrix(), Nektar::LibUtilities::GaussPoints::CreateMatrix(), Nektar::LibUtilities::Basis::GenBasis(), Nektar::StdRegions::StdNodalTriExp::GetNodalPoints(), Nektar::StdRegions::StdNodalPrismExp::GetNodalPoints(), Nektar::StdRegions::StdNodalTetExp::GetNodalPoints(), Interp1D(), Interp2D(), Interp3D(), Nektar::Collections::PhysInterp1DScaled_NoCollection::operator()(), PhysGalerkinProject1D(), PhysGalerkinProject2D(), PhysGalerkinProject3D(), Points_Create(), Nektar::SolverUtils::DriverPFASST::SetTimeInterpolator(), Nektar::MultiRegions::LocTraceToTraceMap::Setup(), Nektar::LibUtilities::TimeIntegrationSchemeSDC::TimeIntegrationSchemeSDC(), Nektar::LibUtilities::NodalHexElec::v_CalculatePoints(), Nektar::LibUtilities::NodalPrismElec::v_CalculatePoints(), Nektar::LibUtilities::NodalPrismSPI::v_CalculatePoints(), Nektar::LibUtilities::NodalQuadElec::v_CalculatePoints(), Nektar::LibUtilities::PolyEPoints::v_CalculateWeights(), Nektar::SpatialDomains::SegGeom::v_FillGeom(), Nektar::SpatialDomains::TriGeom::v_FillGeom(), Nektar::LibUtilities::NodalPrismElec::v_GetI(), Nektar::LibUtilities::NodalPrismEvenlySpaced::v_GetI(), Nektar::LibUtilities::NodalTetElec::v_GetI(), Nektar::LibUtilities::NodalTetEvenlySpaced::v_GetI(), Nektar::LibUtilities::NodalTriElec::v_GetI(), Nektar::LibUtilities::NodalTriEvenlySpaced::v_GetI(), Nektar::LibUtilities::NodalTriFekete::v_GetI(), and Nektar::LibUtilities::PolyEPoints::v_GetI().

◆ PortablePath()

static std::string Nektar::LibUtilities::PortablePath ( const fs::path &  path)
inlinestatic

◆ PrintProgressbar()

int Nektar::LibUtilities::PrintProgressbar ( const int  position,
const int  goal,
const std::string  message,
int  lastprogress = -1 
)
inline

Prints a progressbar.

Parameters
positionState of the current process
goalGoal of the current process
messageShort Description of the current process

This function plots a simple progressbar to the console or log file to visualize the current state of an ongoing process. Make sure you minimize calling this routine. Ideally, this should be called only when the percentage is increased by an integer.

Definition at line 65 of file Progressbar.hpp.

67{
68 std::cout.unsetf(std::ios::floatfield);
69 if (ISTTY)
70 {
71 float progress = position / float(goal);
72 int numeq = static_cast<int>(ceil(progress * 49));
73 if (lastprogress == numeq)
74 {
75 return numeq;
76 }
77 else
78 {
79 // carriage return
80 std::cout << "\r";
81
82 std::cout << message << ": ";
83
84 std::cout << std::setw(3) << ceil(100 * progress) << "% [";
85 for (int j = 0; j < numeq; j++)
86 {
87 std::cout << "=";
88 }
89 for (int j = numeq; j < 49; j++)
90 {
91 std::cout << " ";
92 }
93 std::cout << "]" << std::flush;
94 return numeq;
95 }
96 }
97 else
98 {
99 // print only every 2 percent
100 if (int(ceil(double(100 * position / goal))) % 2 == 0)
101 {
102 std::cout << "." << std::flush;
103 }
104 return -1;
105 }
106}
#define ISTTY
Definition: Progressbar.hpp:47

References ISTTY.

Referenced by Nektar::FieldUtils::Iso::GlobalCondense(), Nektar::FieldUtils::ProcessInterpField::PrintProgressbar(), Nektar::FieldUtils::ProcessInterpPointDataToFld::PrintProgressbar(), Nektar::FieldUtils::ProcessInterpPoints::PrintProgressbar(), Nektar::FieldUtils::ProcessInterpPtsToPts::PrintProgressbar(), Nektar::SolverUtils::SessionFunction::PrintProgressbar(), Nektar::SolverUtils::EquationSystem::PrintProgressbar(), and Nektar::FieldUtils::Iso::SeparateRegions().

◆ rad()

static NekDouble Nektar::LibUtilities::rad ( NekDouble  x,
NekDouble  y 
)
static

◆ SESSIONREGISTER() [1/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsBashforthOrder1  )

◆ SESSIONREGISTER() [2/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsBashforthOrder2  )

◆ SESSIONREGISTER() [3/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsBashforthOrder3  )

◆ SESSIONREGISTER() [4/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsBashforthOrder4  )

◆ SESSIONREGISTER() [5/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsMoultonOrder1  )

◆ SESSIONREGISTER() [6/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsMoultonOrder2  )

◆ SESSIONREGISTER() [7/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsMoultonOrder3  )

◆ SESSIONREGISTER() [8/44]

Nektar::LibUtilities::SESSIONREGISTER ( AdamsMoultonOrder4  )

◆ SESSIONREGISTER() [9/44]

Nektar::LibUtilities::SESSIONREGISTER ( BackwardEuler  )

◆ SESSIONREGISTER() [10/44]

Nektar::LibUtilities::SESSIONREGISTER ( BDFImplicitOrder1  )

◆ SESSIONREGISTER() [11/44]

Nektar::LibUtilities::SESSIONREGISTER ( BDFImplicitOrder2  )

◆ SESSIONREGISTER() [12/44]

Nektar::LibUtilities::SESSIONREGISTER ( BDFImplicitOrder3  )

◆ SESSIONREGISTER() [13/44]

Nektar::LibUtilities::SESSIONREGISTER ( BDFImplicitOrder4  )

◆ SESSIONREGISTER() [14/44]

Nektar::LibUtilities::SESSIONREGISTER ( ClassicalRungeKutta4  )

◆ SESSIONREGISTER() [15/44]

Nektar::LibUtilities::SESSIONREGISTER ( CNAB  )

◆ SESSIONREGISTER() [16/44]

Nektar::LibUtilities::SESSIONREGISTER ( DIRKOrder1  )

◆ SESSIONREGISTER() [17/44]

Nektar::LibUtilities::SESSIONREGISTER ( DIRKOrder2  )

◆ SESSIONREGISTER() [18/44]

Nektar::LibUtilities::SESSIONREGISTER ( DIRKOrder3  )

◆ SESSIONREGISTER() [19/44]

Nektar::LibUtilities::SESSIONREGISTER ( DIRKOrder3_ES5  )

◆ SESSIONREGISTER() [20/44]

Nektar::LibUtilities::SESSIONREGISTER ( DIRKOrder4_ES6  )

◆ SESSIONREGISTER() [21/44]

Nektar::LibUtilities::SESSIONREGISTER ( ForwardEuler  )

◆ SESSIONREGISTER() [22/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_1_1_1  )

◆ SESSIONREGISTER() [23/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_1_2_1  )

◆ SESSIONREGISTER() [24/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_1_2_2  )

◆ SESSIONREGISTER() [25/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_2_2_2  )

◆ SESSIONREGISTER() [26/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_2_3_2  )

◆ SESSIONREGISTER() [27/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_2_3_3  )

◆ SESSIONREGISTER() [28/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_3_4_3  )

◆ SESSIONREGISTER() [29/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXdirk_4_4_3  )

◆ SESSIONREGISTER() [30/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXGear  )

◆ SESSIONREGISTER() [31/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXOrder1  )

◆ SESSIONREGISTER() [32/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXOrder2  )

◆ SESSIONREGISTER() [33/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXOrder3  )

◆ SESSIONREGISTER() [34/44]

Nektar::LibUtilities::SESSIONREGISTER ( IMEXOrder4  )

◆ SESSIONREGISTER() [35/44]

Nektar::LibUtilities::SESSIONREGISTER ( MCNAB  )

◆ SESSIONREGISTER() [36/44]

Nektar::LibUtilities::SESSIONREGISTER ( NoScheme  )

◆ SESSIONREGISTER() [37/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta1  )

◆ SESSIONREGISTER() [38/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta2  )

◆ SESSIONREGISTER() [39/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta2_ImprovedEuler  )

◆ SESSIONREGISTER() [40/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta2_SSP  )

◆ SESSIONREGISTER() [41/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta3  )

◆ SESSIONREGISTER() [42/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta3_SSP  )

◆ SESSIONREGISTER() [43/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta4  )

◆ SESSIONREGISTER() [44/44]

Nektar::LibUtilities::SESSIONREGISTER ( RungeKutta5  )

◆ sign()

NekDouble Nektar::LibUtilities::sign ( NekDouble  arg)

◆ UniquePath()

static fs::path Nektar::LibUtilities::UniquePath ( std::string  specFileStem)
inlinestatic

Create a unique (random) path, based on an input stem string. The returned string is a filename or directory that does not exist.

Given specFileStem as a parameter, this returns a string in the form tmp_<stem>_abcdef where the final 6 characters are random characters and digits.

Definition at line 69 of file Filesystem.hpp.

70{
71 std::random_device rd;
72 std::mt19937 generator(rd());
73 fs::path tmp;
74
75 do
76 {
77 std::string chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
78 "abcdefghijklmnopqrstuvwxyz";
79
80 std::shuffle(chars.begin(), chars.end(), generator);
81 tmp = fs::path("tmp_" + specFileStem + "_" + chars.substr(0, 6));
82 } while (fs::exists(tmp));
83
84 return tmp;
85}

Referenced by Nektar::VarcoeffHashingTest::createSessionFile(), and main().

◆ Write()

void Nektar::LibUtilities::Write ( const std::string &  outFile,
std::vector< FieldDefinitionsSharedPtr > &  fielddefs,
std::vector< std::vector< NekDouble > > &  fielddata,
const FieldMetaDataMap fieldinfomap,
const bool  backup 
)

This function allows for data to be written to an FLD file when a session and/or communicator is not instantiated. Typically used in utilities which do not take XML input and operate in serial only.

Parameters
outFileOutput filename
fielddefsField definitions that define the output
fielddataBinary field data that stores the output corresponding to fielddefs.
fieldinfomapAssociated field metadata map.

Definition at line 245 of file FieldIO.cpp.

249{
250#ifdef NEKTAR_USE_MPI
251 int size;
252 int init;
253 MPI_Initialized(&init);
254
255 // If MPI has been initialised we can check the number of processes
256 // and, if > 1, tell the user he should not be running this
257 // function in parallel. If it is not initialised, we do not
258 // initialise it here, and assume the user knows what they are
259 // doing.
260 if (init)
261 {
262 MPI_Comm_size(MPI_COMM_WORLD, &size);
263 ASSERTL0(size == 1,
264 "This static function is not available in parallel. Please"
265 "instantiate a FieldIO object for parallel use.");
266 }
267#endif
268 CommSharedPtr c = GetCommFactory().CreateInstance("Serial", 0, 0);
270 f->Write(outFile, fielddefs, fielddata, fieldinfomap, backup);
271}

References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), GetCommFactory(), and GetFieldIOFactory().

Referenced by main().

Variable Documentation

◆ BasisTypeMap

const char* const Nektar::LibUtilities::BasisTypeMap[]
Initial value:
= {
"NoBasisType", "Ortho_A", "Ortho_B",
"Ortho_C", "Modified_A", "Modified_B",
"Modified_C", "OrthoPyr_C", "ModifiedPyr_C",
"Fourier", "GLL_Lagrange", "Gauss_Lagrange",
"Legendre", "Chebyshev", "Monomial",
"FourierSingleMode", "FourierHalfModeRe", "FourierHalfModeIm"}

Definition at line 44 of file Foundations.hpp.

Referenced by export_Basis(), Nektar::LibUtilities::FieldIOXml::ImportFieldDefs(), operator<<(), Nektar::SpatialDomains::MeshGraph::ReadExpansionInfo(), Nektar::SolverUtils::DriverAdaptive::ReplaceExpansion(), and Nektar::LibUtilities::FieldIOXml::v_Write().

◆ EndianTypeMap

const std::string Nektar::LibUtilities::EndianTypeMap[]
Initial value:
= {"UnknownEndian", "BigEndian",
"LittleEndian", "BigWordEndian",
"LittleWordEndian"}

Definition at line 57 of file CompressData.h.

Referenced by Nektar::LibUtilities::CompressData::GetCompressString().

◆ fldCmdFormat

std::string Nektar::LibUtilities::fldCmdFormat
Initial value:
= SessionReader::RegisterCmdLineArgument(
"io-format", "i", "Default input/output format (e.g. Xml, Hdf5)")

Definition at line 64 of file FieldIO.cpp.

◆ functions_p

Nektar::LibUtilities::functions Nektar::LibUtilities::functions_p
static

◆ FunctionTypeMap

const char* const Nektar::LibUtilities::FunctionTypeMap[]
Initial value:
= {"No Function type", "Expression",
"File"}

Definition at line 97 of file SessionReader.h.

◆ kPointsTypeStr

const std::string Nektar::LibUtilities::kPointsTypeStr[]

◆ NodalTetElecAvailable

const size_t Nektar::LibUtilities::NodalTetElecAvailable = 10

Definition at line 65 of file NodalTetElecData.h.

◆ NodalTetElecData

const NekDouble Nektar::LibUtilities::NodalTetElecData[][9]
static

◆ NodalTetElecNPTS

const size_t Nektar::LibUtilities::NodalTetElecNPTS[NodalTetElecAvailable]
static
Initial value:
= {
1, 2, 3, 5, 6, 9, 11, 15, 18, 23}

Definition at line 66 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ NodalTetSPIAvailable

const size_t Nektar::LibUtilities::NodalTetSPIAvailable = 10

Definition at line 40 of file NodalTetSPIData.h.

◆ NodalTetSPIData

const NekDouble Nektar::LibUtilities::NodalTetSPIData[][4]
static

◆ NodalTetSPINPTS

const size_t Nektar::LibUtilities::NodalTetSPINPTS[NodalTetSPIAvailable]
static
Initial value:
= {
1, 4, 8, 14, 14, 28, 36, 81, 121, 180}

Definition at line 41 of file NodalTetSPIData.h.

Referenced by Nektar::LibUtilities::NodalTetSPI::v_CalculatePoints(), and Nektar::LibUtilities::NodalTetSPI::v_CalculateWeights().

◆ NodalTriElecAvailable

const size_t Nektar::LibUtilities::NodalTriElecAvailable = 16

Definition at line 44 of file NodalTriElecData.h.

◆ NodalTriElecData

const NekDouble Nektar::LibUtilities::NodalTriElecData[][6]
static

◆ NodalTriElecNPTS

const size_t Nektar::LibUtilities::NodalTriElecNPTS[NodalTriElecAvailable]
static
Initial value:
= {
1, 2, 3, 4, 5, 7, 8, 10, 12, 14, 16, 19, 21, 24, 27, 30}

Definition at line 45 of file NodalTriElecData.h.

Referenced by Nektar::LibUtilities::NodalTriElec::v_CalculatePoints().

◆ NodalTriFeketeAvailable

const size_t Nektar::LibUtilities::NodalTriFeketeAvailable = 16

Definition at line 46 of file NodalTriFeketeData.h.

◆ NodalTriFeketeData

const NekDouble Nektar::LibUtilities::NodalTriFeketeData[][6]
static

◆ NodalTriFeketeNPTS

const size_t Nektar::LibUtilities::NodalTriFeketeNPTS[NodalTriFeketeAvailable]
static
Initial value:
= {
1, 2, 3, 4, 5, 7, 8, 10, 12, 14, 16, 19, 21, 24, 27, 30}

Definition at line 47 of file NodalTriFeketeData.h.

Referenced by Nektar::LibUtilities::NodalTriFekete::v_CalculatePoints().

◆ NodalTriSPIAvailable

const size_t Nektar::LibUtilities::NodalTriSPIAvailable = 10

Definition at line 40 of file NodalTriSPIData.h.

◆ NodalTriSPIData

const NekDouble Nektar::LibUtilities::NodalTriSPIData[][3]
static

◆ NodalTriSPINPTS

const size_t Nektar::LibUtilities::NodalTriSPINPTS[NodalTriSPIAvailable]
static
Initial value:
= {
1, 3, 6, 6, 7, 13, 16, 18, 22, 25}

Definition at line 41 of file NodalTriSPIData.h.

Referenced by Nektar::LibUtilities::NodalTriSPI::v_CalculatePoints(), and Nektar::LibUtilities::NodalTriSPI::v_CalculateWeights().

◆ NullBasisSharedPtr

BasisSharedPtr Nektar::LibUtilities::NullBasisSharedPtr
static

Definition at line 350 of file Basis.h.

Referenced by Nektar::MultiRegions::ExpList::v_GetHomogeneousBasis().

◆ NullBasisSharedPtr1DArray

Array<OneD, BasisSharedPtr> Nektar::LibUtilities::NullBasisSharedPtr1DArray
static

Definition at line 351 of file Basis.h.

◆ NullDomainRangeShPtr

DomainRangeShPtr Nektar::LibUtilities::NullDomainRangeShPtr
static

◆ NullFieldMetaDataMap

FieldMetaDataMap Nektar::LibUtilities::NullFieldMetaDataMap
static

◆ NullNekDoubleVector

std::vector<NekDouble> Nektar::LibUtilities::NullNekDoubleVector
static

Definition at line 988 of file BasicUtils/SharedArray.hpp.

◆ NullPointsTypeVector

std::vector<LibUtilities::PointsType> Nektar::LibUtilities::NullPointsTypeVector
static

Definition at line 98 of file PointsType.h.

◆ NullPtsField

PtsFieldSharedPtr Nektar::LibUtilities::NullPtsField
static

◆ NullPtsInfoMap

std::map<PtsInfo, int> Nektar::LibUtilities::NullPtsInfoMap
static

◆ NullPtsMetaDataMap

PtsMetaDataMap Nektar::LibUtilities::NullPtsMetaDataMap
static

Definition at line 57 of file PtsIO.h.

◆ NullUnsignedIntVector

std::vector<unsigned int> Nektar::LibUtilities::NullUnsignedIntVector
static

◆ NullVectorNekDoubleVector

std::vector<std::vector<NekDouble> > Nektar::LibUtilities::NullVectorNekDoubleVector
static

◆ perm12A_3d

const size_t Nektar::LibUtilities::perm12A_3d[12][4]
static
Initial value:
= {
{0, 1, 2, 3}, {0, 1, 3, 2}, {0, 2, 1, 3}, {0, 2, 3, 1},
{0, 3, 1, 2}, {0, 3, 2, 1}, {2, 0, 1, 3}, {2, 0, 3, 1},
{2, 3, 0, 1}, {3, 0, 1, 2}, {3, 0, 2, 1}, {3, 2, 0, 1}}

Definition at line 45 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ perm12B_3d

const size_t Nektar::LibUtilities::perm12B_3d[12][4]
static
Initial value:
= {
{0, 1, 2, 3}, {0, 2, 1, 3}, {0, 2, 3, 1}, {1, 0, 2, 3},
{1, 2, 0, 3}, {1, 2, 3, 0}, {2, 0, 1, 3}, {2, 0, 3, 1},
{2, 1, 0, 3}, {2, 1, 3, 0}, {2, 3, 0, 1}, {2, 3, 1, 0}}

Definition at line 49 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ perm12C_3d

const size_t Nektar::LibUtilities::perm12C_3d[12][4]
static
Initial value:
= {
{0, 1, 2, 3}, {0, 1, 3, 2}, {0, 3, 1, 2}, {1, 0, 2, 3},
{1, 0, 3, 2}, {1, 2, 0, 3}, {1, 2, 3, 0}, {1, 3, 0, 2},
{1, 3, 2, 0}, {3, 0, 1, 2}, {3, 1, 0, 2}, {3, 1, 2, 0}}

Definition at line 53 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ perm24_3d

const size_t Nektar::LibUtilities::perm24_3d[24][4]
static
Initial value:
= {
{0, 1, 2, 3}, {0, 1, 3, 2}, {0, 2, 1, 3}, {0, 2, 3, 1}, {0, 3, 1, 2},
{0, 3, 2, 1}, {1, 0, 2, 3}, {1, 0, 3, 2}, {1, 2, 0, 3}, {1, 2, 3, 0},
{1, 3, 0, 2}, {1, 3, 2, 0}, {2, 0, 1, 3}, {2, 0, 3, 1}, {2, 1, 0, 3},
{2, 1, 3, 0}, {2, 3, 0, 1}, {2, 3, 1, 0}, {3, 0, 1, 2}, {3, 0, 2, 1},
{3, 1, 0, 2}, {3, 1, 2, 0}, {3, 2, 0, 1}, {3, 2, 1, 0}}

Definition at line 58 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ perm3A_2d [1/2]

const size_t Nektar::LibUtilities::perm3A_2d[3][3]
static
Initial value:
= {
{0, 1, 2}, {2, 0, 1}, {0, 2, 1}}

Definition at line 37 of file NodalTriElecData.h.

Referenced by Nektar::LibUtilities::NodalTriElec::v_CalculatePoints(), and Nektar::LibUtilities::NodalTriFekete::v_CalculatePoints().

◆ perm3A_2d [2/2]

const size_t Nektar::LibUtilities::perm3A_2d[3][3]
static
Initial value:
= {
{0, 1, 2}, {2, 0, 1}, {0, 2, 1}}

Definition at line 37 of file NodalTriFeketeData.h.

◆ perm3B_2d [1/2]

const size_t Nektar::LibUtilities::perm3B_2d[3][3]
static
Initial value:
= {
{0, 1, 2}, {1, 0, 2}, {1, 2, 0}}

Definition at line 39 of file NodalTriElecData.h.

Referenced by Nektar::LibUtilities::NodalTriElec::v_CalculatePoints(), and Nektar::LibUtilities::NodalTriFekete::v_CalculatePoints().

◆ perm3B_2d [2/2]

const size_t Nektar::LibUtilities::perm3B_2d[3][3]
static
Initial value:
= {
{0, 1, 2}, {1, 0, 2}, {1, 2, 0}}

Definition at line 39 of file NodalTriFeketeData.h.

◆ perm3C_2d

const size_t Nektar::LibUtilities::perm3C_2d[3][3]
static
Initial value:
= {
{0, 1, 2}, {2, 0, 1}, {1, 2, 0}}

Definition at line 41 of file NodalTriFeketeData.h.

◆ perm4_3d

const size_t Nektar::LibUtilities::perm4_3d[4][4]
static
Initial value:
= {{0, 1, 2, 3},
{3, 0, 1, 2},
{2, 3, 0, 1},
{1, 2, 3, 0}}

Definition at line 37 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ perm6_2d [1/2]

const size_t Nektar::LibUtilities::perm6_2d[6][3]
static
Initial value:
= {
{0, 1, 2}, {1, 0, 2}, {2, 0, 1},
{2, 1, 0}, {0, 2, 1}, {1, 2, 0}}

Definition at line 41 of file NodalTriElecData.h.

Referenced by Nektar::LibUtilities::NodalTriElec::v_CalculatePoints(), and Nektar::LibUtilities::NodalTriFekete::v_CalculatePoints().

◆ perm6_2d [2/2]

const size_t Nektar::LibUtilities::perm6_2d[6][3]
static
Initial value:
= {{0, 1, 2}, {1, 0, 2},
{2, 0, 1}, {2, 1, 0},
{0, 2, 1}, {1, 2, 0}}

Definition at line 43 of file NodalTriFeketeData.h.

◆ perm6_3d

const size_t Nektar::LibUtilities::perm6_3d[6][4]
static
Initial value:
= {
{0, 1, 2, 3}, {0, 2, 1, 3}, {0, 2, 3, 1},
{2, 0, 1, 3}, {2, 0, 3, 1}, {2, 3, 0, 1}}

Definition at line 41 of file NodalTetElecData.h.

Referenced by Nektar::LibUtilities::NodalTetElec::v_CalculatePoints().

◆ ReduceOperatorMap

const char* const Nektar::LibUtilities::ReduceOperatorMap[] = {"ReduceSum", "ReduceMax", "ReduceMin"}

Definition at line 72 of file Comm.h.

Referenced by export_Comm().

◆ ShapeTypeDimMap

constexpr unsigned int Nektar::LibUtilities::ShapeTypeDimMap[SIZE_ShapeType]
constexpr
Initial value:
= {
0,
0,
1,
2,
2,
3,
3,
3,
3,
}

Definition at line 81 of file ShapeType.hpp.

Referenced by Nektar::StdRegions::operator<<(), and Nektar::Collections::CollectionOptimisation::ReadCollOps().

◆ ShapeTypeMap

const char* const Nektar::LibUtilities::ShapeTypeMap[SIZE_ShapeType]