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

Namespaces

 CompressData
 
 H5
 
 StdHexData
 
 StdPrismData
 
 StdPyrData
 
 StdQuadData
 
 StdSegData
 
 StdTetData
 
 StdTriData
 

Classes

class  GitConsts
 
class  CsvIO
 
struct  DomainRange
 
class  Equation
 
class  TagWriter
 Base class for writing hierarchical data (XML or HDF5). More...
 
class  DataSource
 
struct  FieldDefinitions
 Metadata that describes the storage properties of field output. More...
 
class  FieldIO
 Class for operating on Nektar++ input/output files. More...
 
class  H5DataSource
 
class  H5TagWriter
 
class  FieldIOHdf5
 
class  XmlDataSource
 
class  XmlTagWriter
 
class  FieldIOXml
 
class  Interpolator
 A class that contains algorithms for interpolation between pts fields, expansions and different meshes. More...
 
class  NekFactory
 Provides a generic Factory class. More...
 
struct  defOpLessCreator
 
class  NekManager
 
class  PtsField
 
class  PtsIO
 
struct  CmdLineArg
 
struct  TimeIntScheme
 
struct  FunctionVariableDefinition
 
class  SessionReader
 Reads and parses information from a Nektar++ XML session file. More...
 
class  Timer
 
class  CommRequest
 Class for communicator request type. More...
 
class  Comm
 Base communications class. More...
 
class  CommCwipi
 A global linear system. More...
 
class  CommDataTypeTraits
 
class  CommDataTypeTraits< std::vector< elemT > >
 
class  CommDataTypeTraits< Array< OneD, elemT > >
 
class  CommRequestMpi
 Class for communicator request type. More...
 
class  CommMpi
 A global linear system. More...
 
class  CommSerial
 A global linear system. More...
 
class  Transposition
 
class  NekFFTW
 
class  NektarFFT
 
class  BasisKey
 Describes the specification for a Basis. More...
 
class  Basis
 Represents a basis of a given type. More...
 
class  BLPoints
 
class  Points
 Stores a set of points of datatype DataT, defined by a PointKey. More...
 
class  FourierPoints
 
class  FourierSingleModePoints
 
class  GaussPoints
 
class  GraphVertexObject
 
class  GraphEdgeObject
 
class  Graph
 
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  NodalUtilTriangle
 Specialisation of the NodalUtil class to support nodal triangular elements. More...
 
class  NodalUtilTetrahedron
 Specialisation of the NodalUtil class to support nodal tetrahedral 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  NodalUtilHex
 Specialisation of the NodalUtil class to support nodal hex elements. More...
 
class  PointsKey
 Defines a specification for a set of points. More...
 
class  PolyEPoints
 
struct  func
 
struct  functions
 
class  Interpreter
 Interpreter class for the evaluation of mathematical expressions. More...
 
class  Kernel
 
class  NekLinSysIter
 
class  NekLinSysIterCG
 
class  NekLinSysIterFixedpointJacobi
 
class  NekLinSysIterGMRES
 
class  NekNonlinSys
 
class  NekNonlinSysNewton
 
class  NekSysOperators
 
class  NekSysKey
 
class  NekSys
 
class  AdamsBashforthTimeIntegrationScheme
 
class  AdamsBashforthOrder1TimeIntegrationScheme
 
class  AdamsBashforthOrder2TimeIntegrationScheme
 
class  AdamsBashforthOrder3TimeIntegrationScheme
 
class  AdamsBashforthOrder4TimeIntegrationScheme
 
class  AdamsMoultonTimeIntegrationScheme
 
class  AdamsMoultonOrder1TimeIntegrationScheme
 
class  AdamsMoultonOrder2TimeIntegrationScheme
 
class  AdamsMoultonOrder3TimeIntegrationScheme
 
class  AdamsMoultonOrder4TimeIntegrationScheme
 
class  BDFImplicitTimeIntegrationScheme
 
class  BDFImplicitOrder1TimeIntegrationScheme
 
class  BDFImplicitOrder2TimeIntegrationScheme
 
class  CNABTimeIntegrationScheme
 
class  DIRKTimeIntegrationScheme
 
class  DIRKOrder2TimeIntegrationScheme
 
class  DIRKOrder3TimeIntegrationScheme
 
class  DIRKOrder3_ES5TimeIntegrationScheme
 
class  DIRKOrder4_ES6TimeIntegrationScheme
 
class  EulerExponentialTimeIntegrationScheme
 
class  EulerTimeIntegrationScheme
 
class  BackwardEulerTimeIntegrationScheme
 
class  ForwardEulerTimeIntegrationScheme
 
class  IMEXdirkTimeIntegrationScheme
 
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  IMEXGearTimeIntegrationScheme
 
class  IMEXTimeIntegrationScheme
 
class  IMEXOrder1TimeIntegrationScheme
 
class  IMEXOrder2TimeIntegrationScheme
 
class  IMEXOrder3TimeIntegrationScheme
 
class  IMEXOrder4TimeIntegrationScheme
 
class  MCNABTimeIntegrationScheme
 
class  RungeKuttaTimeIntegrationScheme
 
class  RungeKutta2TimeIntegrationScheme
 
class  ClassicalRungeKutta4TimeIntegrationScheme
 
class  RungeKutta5TimeIntegrationScheme
 
class  RungeKutta2_ImprovedEulerTimeIntegrationScheme
 
class  RungeKutta2_SSPTimeIntegrationScheme
 
class  RungeKutta3_SSPTimeIntegrationScheme
 
class  TimeIntegrationAlgorithmGLM
 
class  TimeIntegrationScheme
 Base class for time integration schemes. More...
 
class  FractionalInTimeIntegrationScheme
 Class for fractional-in-time 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  TimeIntegrationSolutionGLM
 

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::map< std::string, std::string > ExpressionMap
 
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 int 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< KernelKernelSharedPtr
 
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< NekLinSysIterFixedpointJacobiNekLinSysIterFixedpointJacobiSharedPtr
 
typedef std::shared_ptr< NekNonlinSysNekNonlinSysSharedPtr
 
typedef LibUtilities::NekFactory< std::string, NekNonlinSys, const LibUtilities::SessionReaderSharedPtr &, const LibUtilities::CommSharedPtr &, const int, const NekSysKey & > NekNonlinSysFactory
 
typedef std::shared_ptr< NekSysNekSysSharedPtr
 
typedef NekFactory< std::string, TimeIntegrationScheme, std::string, unsigned int, 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::function< void(ConstDoubleArray &, DoubleArray &, const NekDouble)> FunctorType1
 
typedef std::function< void(ConstDoubleArray &, DoubleArray &, const NekDouble, const NekDouble)> FunctorType2
 
typedef std::shared_ptr< TimeIntegrationSchemeTimeIntegrationSchemeSharedPtr
 
typedef std::vector< TimeIntegrationSchemeSharedPtrTimeIntegrationSchemeVector
 
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
 

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
}
 
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 ,
  eLegendre , eChebyshev , eMonomial , eFourierSingleMode ,
  eFourierHalfModeRe , eFourierHalfModeIm , SIZE_BasisType
}
 
enum  PointsType {
  eNoPointsType , eGaussGaussLegendre , eGaussRadauMLegendre , eGaussRadauPLegendre ,
  eGaussLobattoLegendre , eGaussGaussChebyshev , eGaussRadauMChebyshev , eGaussRadauPChebyshev ,
  eGaussLobattoChebyshev , eGaussRadauMAlpha0Beta1 , eGaussRadauMAlpha0Beta2 , eGaussRadauMAlpha1Beta0 ,
  eGaussRadauMAlpha2Beta0 , eGaussKronrodLegendre , 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...
 
std::string PortablePath (const boost::filesystem::path &path)
 create portable path on different platforms for boost::filesystem path 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...
 
int GetNumberOfCoefficients (ShapeType shape, std::vector< unsigned int > &modes, int offset)
 
int GetNumberOfCoefficients (ShapeType shape, int na, int nb, int nc)
 
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 ()
 
NekNonlinSysFactoryGetNekNonlinSysFactory ()
 
 REGISTER (AdamsBashforth)
 
 REGISTER (AdamsBashforthOrder1)
 
 REGISTER (AdamsBashforthOrder2)
 
 REGISTER (AdamsBashforthOrder3)
 
 REGISTER (AdamsBashforthOrder4)
 
 REGISTER (AdamsMoulton)
 
 REGISTER (AdamsMoultonOrder1)
 
 REGISTER (AdamsMoultonOrder2)
 
 REGISTER (AdamsMoultonOrder3)
 
 REGISTER (AdamsMoultonOrder4)
 
 REGISTER (BDFImplicit)
 
 REGISTER (BDFImplicitOrder1)
 
 REGISTER (BDFImplicitOrder2)
 
 REGISTER (Euler)
 
 REGISTER (BackwardEuler)
 
 REGISTER (ForwardEuler)
 
 REGISTER (EulerExponential)
 
 REGISTER (CNAB)
 
 REGISTER (DIRK)
 
 REGISTER (DIRKOrder2)
 
 REGISTER (DIRKOrder3)
 
 REGISTER (DIRKOrder3_ES5)
 
 REGISTER (DIRKOrder4_ES6)
 
 REGISTER (IMEXdirk)
 
 REGISTER (IMEXdirk_1_1_1)
 
 REGISTER (IMEXdirk_1_2_1)
 
 REGISTER (IMEXdirk_1_2_2)
 
 REGISTER (IMEXdirk_2_2_2)
 
 REGISTER (IMEXdirk_2_3_2)
 
 REGISTER (IMEXdirk_2_3_3)
 
 REGISTER (IMEXdirk_3_4_3)
 
 REGISTER (IMEXdirk_4_4_3)
 
 REGISTER (IMEXGear)
 
 REGISTER (IMEX)
 
 REGISTER (IMEXOrder1)
 
 REGISTER (IMEXOrder2)
 
 REGISTER (IMEXOrder3)
 
 REGISTER (IMEXOrder4)
 
 REGISTER (MCNAB)
 
 REGISTER (RungeKutta)
 
 REGISTER (RungeKutta2)
 
 REGISTER (RungeKutta2_ImprovedEuler)
 
 REGISTER (RungeKutta2_SSP)
 
 REGISTER (RungeKutta3_SSP)
 
 REGISTER (ClassicalRungeKutta4)
 
 REGISTER (RungeKutta5)
 
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 TimeIntegrationSchemeGLM &rhs)
 
std::ostream & operator<< (std::ostream &os, const TimeIntegrationSchemeGLMSharedPtr &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 []
 
const unsigned int ShapeTypeDimMap [SIZE_ShapeType]
 
static std::vector< NekDoubleNullNekDoubleVector
 
static std::vector< unsigned int > NullUnsignedIntVector
 
static std::vector< std::vector< NekDouble > > NullVectorNekDoubleVector = { NullNekDoubleVector }
 
const char *const ReduceOperatorMap [] = {"ReduceSum", "ReduceMax", "ReduceMin"}
 
static BasisSharedPtr NullBasisSharedPtr
 
static Array< OneD, BasisSharedPtrNullBasisSharedPtr1DArray
 
const char *const BasisTypeMap []
 
const std::string kPointsTypeStr []
 
static const unsigned int perm4_3d [4][4] = {{0,1,2,3},{3,0,1,2},{2,3,0,1},{1,2,3,0}}
 
static const unsigned int perm6_3d [6][4] = {{0,1,2,3},{0,2,1,3},{0,2,3,1},{2,0,1,3},{2,0,3,1},{2,3,0,1}}
 
static const unsigned int perm12A_3d [12][4]
 
static const unsigned int perm12B_3d [12][4]
 
static const unsigned int perm12C_3d [12][4]
 
static const unsigned int perm24_3d [24][4]
 
const unsigned int NodalTetElecAvailable = 10
 
static const unsigned int NodalTetElecNPTS [NodalTetElecAvailable] = {1,2,3,5,6,9,11,15,18,23}
 
static const NekDouble NodalTetElecData [][9]
 
const unsigned int NodalTetSPIAvailable = 10
 
static const unsigned int NodalTetSPINPTS [NodalTetSPIAvailable]
 
static const NekDouble NodalTetSPIData [][4]
 
static const unsigned int perm3A_2d [3][3] = {{0,1,2},{2,0,1},{0,2,1}}
 
static const unsigned int perm3B_2d [3][3] = {{0,1,2},{1,0,2},{1,2,0}}
 
static const unsigned int perm6_2d [6][3]
 
const unsigned int NodalTriElecAvailable = 16
 
static const unsigned int NodalTriElecNPTS [NodalTriElecAvailable] = {1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30}
 
static const NekDouble NodalTriElecData [][6]
 
static const unsigned int perm3A_2d [3][3] = {{0,1,2},{2,0,1},{0,2,1}}
 
static const unsigned int perm3B_2d [3][3] = {{0,1,2},{1,0,2},{1,2,0}}
 
static const unsigned int perm3C_2d [3][3] = {{0,1,2},{2,0,1},{1,2,0}}
 
static const unsigned int perm6_2d [6][3]
 
const unsigned int NodalTriFeketeAvailable = 16
 
static const unsigned int NodalTriFeketeNPTS [NodalTriFeketeAvailable] = {1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30}
 
static const NekDouble NodalTriFeketeData [][6]
 
const unsigned int NodalTriSPIAvailable = 10
 
static const unsigned int 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 47 of file TimeIntegrationTypes.hpp.

◆ BasisKeyVector

Name for a vector of BasisKeys.

Definition at line 73 of file FoundationsFwd.hpp.

◆ BasisManagerT

Definition at line 50 of file ManagerAccess.h.

◆ BasisSharedPtr

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

Definition at line 74 of file FoundationsFwd.hpp.

◆ BasisVector

Definition at line 75 of file FoundationsFwd.hpp.

◆ CmdLineArgMap

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

Definition at line 74 of file SessionReader.h.

◆ CommCwipiSharedPtr

Pointer to a Communicator object.

Definition at line 52 of file CommCwipi.h.

◆ CommDataType

typedef unsigned int Nektar::LibUtilities::CommDataType

Definition at line 70 of file CommDataType.h.

◆ CommFactory

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

Definition at line 61 of file Comm.h.

◆ CommMpiSharedPtr

Pointer to a Communicator object.

Definition at line 58 of file CommMpi.h.

◆ CommRequestMpiSharedPtr

Definition at line 88 of file CommMpi.h.

◆ CommRequestSharedPtr

Definition at line 86 of file Comm.h.

◆ CommSerialSharedPtr

Pointer to a Communicator object.

Definition at line 51 of file CommSerial.h.

◆ CommSharedPtr

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

Pointer to a Communicator object.

Definition at line 57 of file Comm.h.

◆ ComplexDoubleArray

Definition at line 59 of file TimeIntegrationTypes.hpp.

◆ ComplexSingleArray

Definition at line 61 of file TimeIntegrationTypes.hpp.

◆ ComplexTripleArray

Definition at line 57 of file TimeIntegrationTypes.hpp.

◆ ConstComplexDoubleArray

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

Definition at line 58 of file TimeIntegrationTypes.hpp.

◆ ConstComplexSingleArray

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

Definition at line 60 of file TimeIntegrationTypes.hpp.

◆ ConstDoubleArray

Definition at line 52 of file TimeIntegrationTypes.hpp.

◆ ConstSingleArray

Definition at line 54 of file TimeIntegrationTypes.hpp.

◆ ConstTripleArray

Definition at line 50 of file TimeIntegrationTypes.hpp.

◆ CsvIOSharedPtr

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

Definition at line 87 of file CsvIO.h.

◆ DataSourceSharedPtr

Definition at line 79 of file FieldIO.h.

◆ DomainRangeShPtr

Definition at line 61 of file DomainRange.h.

◆ DoubleArray

Definition at line 53 of file TimeIntegrationTypes.hpp.

◆ EnumMap

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

Definition at line 76 of file SessionReader.h.

◆ EnumMapList

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

Definition at line 77 of file SessionReader.h.

◆ EquationSharedPtr

Definition at line 131 of file Equation.h.

◆ ExpressionMap

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

Definition at line 60 of file SessionReader.h.

◆ FieldDefinitionsSharedPtr

Definition at line 179 of file FieldIO.h.

◆ FieldIOFactory

Datatype of the NekFactory used to instantiate classes.

Definition at line 201 of file FieldIO.h.

◆ FieldIOSharedPtr

Definition at line 306 of file FieldIO.h.

◆ FieldMetaDataMap

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

Definition at line 52 of file FieldIO.h.

◆ FilterMap

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

Definition at line 65 of file SessionReader.h.

◆ FilterParams

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

Definition at line 63 of file SessionReader.h.

◆ FractionalInTimeIntegrationSchemeSharedPtr

Definition at line 82 of file TimeIntegrationTypes.hpp.

◆ FractionalInTimeIntegrationSchemeVector

Definition at line 85 of file TimeIntegrationTypes.hpp.

◆ FunctionMap

typedef std::map<std::string, FunctionVariableMap > Nektar::LibUtilities::FunctionMap

Definition at line 118 of file SessionReader.h.

◆ FunctionVariableMap

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

Definition at line 116 of file SessionReader.h.

◆ FunctorType1

Definition at line 66 of file TimeIntegrationTypes.hpp.

◆ FunctorType2

Definition at line 69 of file TimeIntegrationTypes.hpp.

◆ GeometricInfoMap

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

Definition at line 59 of file SessionReader.h.

◆ GloSysInfoMap

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

Definition at line 79 of file SessionReader.h.

◆ GloSysSolnInfoList

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

Definition at line 80 of file SessionReader.h.

◆ GraphVertexID

Definition at line 79 of file FoundationsFwd.hpp.

◆ H5DataSourceSharedPtr

Definition at line 88 of file FieldIOHdf5.h.

◆ H5TagWriterSharedPtr

Definition at line 116 of file FieldIOHdf5.h.

◆ InterpolatorSharedPtr

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

◆ InterpreterSharedPtr

Definition at line 325 of file Interpreter.h.

◆ KernelSharedPtr

Definition at line 214 of file kernel.h.

◆ NekFFTWSharedPtr

Definition at line 58 of file NekFFTW.h.

◆ NekLinSysIterCGSharedPtr

Definition at line 47 of file NekLinSysIterCG.h.

◆ NekLinSysIterFactory

Definition at line 54 of file NekLinSysIter.h.

◆ NekLinSysIterFixedpointJacobiSharedPtr

Definition at line 48 of file NekLinSysIterFixedpointJacobi.h.

◆ NekLinSysIterSharedPtr

Definition at line 48 of file NekLinSysIter.h.

◆ NekNonlinSysFactory

Definition at line 54 of file NekNonlinSys.h.

◆ NekNonlinSysSharedPtr

Definition at line 48 of file NekNonlinSys.h.

◆ NekSysSharedPtr

Definition at line 218 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.

◆ ParameterMap

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

Definition at line 58 of file SessionReader.h.

◆ PFD

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

Definition at line 100 of file Interpreter.cpp.

◆ PFD1

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

Definition at line 101 of file Interpreter.cpp.

◆ PFD2

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

Definition at line 102 of file Interpreter.cpp.

◆ PFD3

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

Definition at line 103 of file Interpreter.cpp.

◆ PFD4

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

Definition at line 104 of file Interpreter.cpp.

◆ PointsBaseType

Definition at line 77 of file FoundationsFwd.hpp.

◆ PointsKeyVector

Definition at line 246 of file Points.h.

◆ PointsManagerT

Definition at line 49 of file ManagerAccess.h.

◆ PointsSharedPtr

Definition at line 78 of file FoundationsFwd.hpp.

◆ PtsFieldSharedPtr

Definition at line 182 of file PtsField.h.

◆ PtsIOSharedPtr

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

Definition at line 101 of file PtsIO.h.

◆ PtsMetaDataMap

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

Definition at line 59 of file PtsIO.h.

◆ SessionReaderSharedPtr

Definition at line 121 of file SessionReader.h.

◆ SharedMatrix

Definition at line 55 of file NodalUtil.h.

◆ SingleArray

Definition at line 55 of file TimeIntegrationTypes.hpp.

◆ SolverInfoMap

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

Definition at line 57 of file SessionReader.h.

◆ TagMap

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

Definition at line 62 of file SessionReader.h.

◆ TagWriterSharedPtr

Definition at line 69 of file FieldIO.h.

◆ TimeIntegrationAlgorithmGLMSharedPtr

Definition at line 100 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationAlgorithmGLMVector

Definition at line 103 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeFactory

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

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

Definition at line 64 of file TimeIntegrationScheme.h.

◆ TimeIntegrationSchemeGLMSharedPtr

Definition at line 91 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeGLMVector

Definition at line 94 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeOperatorsSharedPtr

Definition at line 60 of file TimeIntegrationSchemeOperators.h.

◆ TimeIntegrationSchemeSharedPtr

Definition at line 74 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSchemeVector

Definition at line 76 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSolutionGLMSharedPtr

Definition at line 109 of file TimeIntegrationTypes.hpp.

◆ TimeIntegrationSolutionGLMVector

Definition at line 112 of file TimeIntegrationTypes.hpp.

◆ TranspositionSharedPtr

Definition at line 165 of file Transposition.h.

◆ TripleArray

Definition at line 51 of file TimeIntegrationTypes.hpp.

◆ VariableList

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

Definition at line 61 of file SessionReader.h.

◆ XmlDataSourceSharedPtr

Definition at line 109 of file FieldIOXml.h.

◆ XmlTagWriterSharedPtr

Definition at line 163 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 \( \phi^c_{pqr}(z_i) for Pyramids\).

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(z_i) \).

eLegendre 

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

eChebyshev 

Chebyshev Polynomials \( T_p(z_i) = P^{-1/2,-1/2}_p(z_i)\).

eMonomial 

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 42 of file BasisType.h.

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

◆ EndianType

Enumerator
eEndianUnknown 
eEndianBig 
eEndianLittle 
eEndianBigWord 
eEndianLittleWord 

Definition at line 50 of file CompressData.h.

51  {
53  eEndianBig,
55  eEndianBigWord, /* Middle-endian, Honeywell 316 style */
56  eEndianLittleWord /* Middle-endian, PDP-11 style */
57  };

◆ FieldIOType

Enumerator for auto-detection of FieldIO types.

Enumerator
eXML 
eHDF5 

Definition at line 79 of file FieldIO.cpp.

79  {
80  eXML,
81  eHDF5
82 };

◆ FunctionType

Enumerator
eFunctionTypeExpression 
eFunctionTypeFile 
eFunctionTypeTransientFile 
eSIZE_FunctionType 

Definition at line 93 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, \( \alpha = 0, \beta = 1 \).

eGaussRadauMAlpha0Beta2 

Gauss Radau pinned at x=-1, \( \alpha = 0, \beta = 2 \).

eGaussRadauMAlpha1Beta0 

Gauss Radau pinned at x=-1, \( \alpha = 1, \beta = 0 \).

eGaussRadauMAlpha2Beta0 

Gauss Radau pinned at x=-1, \( \alpha = 2, \beta = 0 \).

eGaussKronrodLegendre 

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, \( \alpha = 1, \beta = 0 \)

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 45 of file PointsType.h.

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

◆ PtsInfo

Enumerator
eIsEquiSpacedData 
ePtsPerElmtEdge 

Definition at line 64 of file PtsField.h.

◆ PtsType

Enumerator
ePtsFile 
ePtsLine 
ePtsPlane 
ePtsBox 
ePtsSegBlock 
ePtsTriBlock 
ePtsTetBlock 

Definition at line 53 of file PtsField.h.

◆ ReduceOperator

Type of operation to perform in AllReduce.

Enumerator
ReduceSum 
ReduceMax 
ReduceMin 
SIZE_ReduceOperator 

Definition at line 66 of file Comm.h.

67 {
68  ReduceSum,
69  ReduceMax,
70  ReduceMin,
72 };

◆ ShapeType

Enumerator
eNoShapeType 
ePoint 
eSegment 
eTriangle 
eQuadrilateral 
eTetrahedron 
ePyramid 
ePrism 
eHexahedron 
SIZE_ShapeType 

Definition at line 53 of file ShapeType.hpp.

◆ 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 115 of file TimeIntegrationTypes.hpp.

116 {
118  eExplicit, //!< Formally explicit scheme
119  eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
120  eIMEX, //!< Implicit Explicit General Linear Method
121  eImplicit, //!< Fully implicit scheme
122  eExponential, //!< Exponential scheme
123  eFractionalInTime, //!< Fractional in Time scheme
124 };
@ 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 54 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 78 of file Interpreter.cpp.

79 {
80  boost::mt19937 rng;
81  boost::variate_generator<boost::mt19937 &, boost::normal_distribution<>>
82  _normal(rng, boost::normal_distribution<>(0, sigma));
83  return _normal();
84 }

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 56 of file CheckedCast.hpp.

57 {
58  Ti min = std::numeric_limits<To>::min();
59  Ti max = std::numeric_limits<To>::max();
60  ASSERTL0(param >= min, "Casting would narrow (underflow).");
61  ASSERTL0(param <= max, "Casting would narrow (overflow).");
62  return static_cast<To>(param);
63 }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:216

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 54 of file CommDataType.cpp.

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

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 68 of file CompressData.cpp.

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

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

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

◆ GetCommFactory()

CommFactory & Nektar::LibUtilities::GetCommFactory ( )

◆ GetFieldIOFactory()

FieldIOFactory & Nektar::LibUtilities::GetFieldIOFactory ( )

Returns the FieldIO factory.

Definition at line 72 of file FieldIO.cpp.

73 {
74  static FieldIOFactory instance;
75  return instance;
76 }
LibUtilities::NekFactory< std::string, FieldIO, LibUtilities::CommSharedPtr, bool > FieldIOFactory
Datatype of the NekFactory used to instantiate classes.
Definition: FieldIO.h:195

Referenced by Nektar::LibUtilities::FieldIO::CreateDefault(), Nektar::LibUtilities::FieldIO::CreateForFile(), Nektar::MultiRegions::ExpList::ExtractFileBCs(), Nektar::FieldUtils::Field::FieldIOForFile(), Import(), Nektar::FieldUtils::OutputFld::OutputFromData(), Nektar::FieldUtils::OutputFld::OutputFromExp(), Nektar::FieldUtils::OutputInfo::Process(), Nektar::SpatialDomains::MeshPartition::ReadExpansions(), and Write().

◆ GetNekLinSysIterFactory()

NekLinSysIterFactory & Nektar::LibUtilities::GetNekLinSysIterFactory ( )

Definition at line 50 of file NekLinSysIter.cpp.

51 {
52  static NekLinSysIterFactory instance;
53  return instance;
54 }
LibUtilities::NekFactory< std::string, NekLinSysIter, const LibUtilities::SessionReaderSharedPtr &, const LibUtilities::CommSharedPtr &, const int, const NekSysKey & > NekLinSysIterFactory
Definition: NekLinSysIter.h:54

Referenced by Nektar::LibUtilities::NekNonlinSys::NekNonlinSys(), and Nektar::MultiRegions::GlobalLinSysIterative::v_SolveLinearSystem().

◆ GetNekNonlinSysFactory()

NekNonlinSysFactory & Nektar::LibUtilities::GetNekNonlinSysFactory ( )

Definition at line 49 of file NekNonlinSys.cpp.

50 {
51  static NekNonlinSysFactory instance;
52  return instance;
53 }
LibUtilities::NekFactory< std::string, NekNonlinSys, const LibUtilities::SessionReaderSharedPtr &, const LibUtilities::CommSharedPtr &, const int, const NekSysKey & > NekNonlinSysFactory
Definition: NekNonlinSys.h:54

Referenced by Nektar::CFSImplicit::InitialiseNonlinSysSolver().

◆ GetNektarFFTFactory()

NektarFFTFactory & Nektar::LibUtilities::GetNektarFFTFactory ( )

Definition at line 69 of file NektarFFT.cpp.

70  {
71  static NektarFFTFactory instance;
72  return instance;
73  }
LibUtilities::NekFactory< std::string, NektarFFT, int > NektarFFTFactory
Datatype of the NekFactory used to instantiate classes derived from the NektarFFT class.
Definition: NektarFFT.h:62

Referenced by Nektar::LinearisedAdvection::DFT(), Nektar::MultiRegions::ExpListHomogeneous1D::ExpListHomogeneous1D(), Nektar::MultiRegions::ExpListHomogeneous2D::ExpListHomogeneous2D(), and Nektar::ForcingMovingBody::InitialiseCableModel().

◆ GetNumberOfCoefficients() [1/2]

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

Definition at line 348 of file ShapeType.hpp.

349  {
350  int returnval = 0;
351  switch(shape)
352  {
353  case eSegment:
354  returnval = na;
355  break;
356  case eTriangle:
357  returnval = StdTriData::getNumberOfCoefficients(na,nb);
358  break;
359  case eQuadrilateral:
360  returnval = na*nb;
361  break;
362  case eTetrahedron:
363  returnval = StdTetData::getNumberOfCoefficients(na,nb,nc);
364  break;
365  case ePyramid:
366  returnval = StdPyrData::getNumberOfCoefficients(na,nb,nc);
367  break;
368  case ePrism:
369  returnval = StdPrismData::getNumberOfCoefficients(na,nb,nc);
370  break;
371  case eHexahedron:
372  returnval = na*nb*nc;
373  break;
374  default:
375  NEKERROR(ErrorUtil::efatal,"Unknown Shape Type");
376  break;
377  }
378 
379  return returnval;
380  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
Definition: ErrorUtil.hpp:209
int getNumberOfCoefficients(int Na, int Nb, int Nc)
Definition: ShapeType.hpp:287

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 
)
inline

Definition at line 313 of file ShapeType.hpp.

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

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(), and Nektar::MultiRegions::ExpListHomogeneous1D::v_ExtractDataToCoeffs().

◆ GetTimeIntegrationSchemeFactory()

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

Definition at line 46 of file TimeIntegrationScheme.cpp.

47 {
48  static TimeIntegrationSchemeFactory instance;
49  return instance;
50 }
NekFactory< std::string, TimeIntegrationScheme, std::string, unsigned int, std::vector< NekDouble > > TimeIntegrationSchemeFactory
Datatype of the NekFactory used to instantiate classes derived from the EquationSystem class.

Referenced by Nektar::UnsteadyAdvectionDiffusion::SetUpSubSteppingTimeIntegration(), Diffusion::TimeIntegrate(), Nektar::SolverUtils::UnsteadySystem::v_InitObject(), and Nektar::SubSteppingExtrapolate::v_SubSteppingTimeIntegration().

◆ 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 293 of file FieldIO.cpp.

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

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 53 of file Interp.cpp.

57  {
58  Interp1D(fbasis0.GetPointsKey(),from,tbasis0.GetPointsKey(),to);
59  }
void Interp1D(const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)
Definition: Interp.cpp:91

References Nektar::LibUtilities::BasisKey::GetPointsKey().

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_FwdTrans_BndConstrained(), 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 83 of file Interp.cpp.

87  {
88  Interp1D(fbasis0.GetPointsKey(),from,tbasis0.GetPointsKey(),to);
89  }

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 61 of file Interp.cpp.

65  {
66  if(fpoints0 == tpoints0) //check to see if the same
67  {
68  Vmath::Vcopy(fpoints0.GetNumPoints(),from,1,to,1);
69  }
70  else // interpolate
71  {
73 
74  I0 = PointsManager()[fpoints0]->GetI(tpoints0);
75 
76  NekVector<NekDouble> in(fpoints0.GetNumPoints(),from,eWrapper);
77  NekVector<NekDouble> out(tpoints0.GetNumPoints(),to,eWrapper);
78 
79  out = (*I0)*in;
80  }
81  }
PointsManagerT & PointsManager(void)
std::shared_ptr< DNekMat > DNekMatSharedPtr
Definition: NekTypeDefs.hpp:69
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Definition: Vmath.cpp:1199

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 91 of file Interp.cpp.

95  {
96  if(fpoints0 == tpoints0) //check to see if the same
97  {
98  Vmath::Vcopy(fpoints0.GetNumPoints(),from,1,to,1);
99  }
100  else // interpolate
101  {
102 
103  DNekMatSharedPtr I0;
104 
105  I0 = PointsManager()[fpoints0]
106  ->GetI(tpoints0);
107 
108  Blas::Dgemv('N', tpoints0.GetNumPoints(), fpoints0.GetNumPoints(),
109  1.0, I0->GetPtr().get(), tpoints0.GetNumPoints(),
110  from, 1, 0.0, to, 1);
111  }
112  }
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 = A x where A[m x n].
Definition: Blas.hpp:265

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 115 of file Interp.cpp.

121  {
122  Interp2D(fbasis0.GetPointsKey(),fbasis1.GetPointsKey(),from.data(),
123  tbasis0.GetPointsKey(),tbasis1.GetPointsKey(),to.data());
124  }
void Interp2D(const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)
Definition: Interp.cpp:136

References Nektar::LibUtilities::BasisKey::GetPointsKey().

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::Expansion::v_GetCoords(), Nektar::MultiRegions::ExpList::v_GetNormals(), Nektar::LocalRegions::Expansion3D::v_GetTracePhysVals(), and Nektar::MultiRegions::ExpList::v_PhysInterp1DScaled().

◆ 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 126 of file Interp.cpp.

132  {
133  Interp2D(fpoints0,fpoints1,from.data(),tpoints0,tpoints1,to.data());
134  }

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 136 of file Interp.cpp.

142  {
143  // default interpolation
144  if((fpoints0 == tpoints0)&&(fpoints1 == tpoints1))
145  {
146  Vmath::Vcopy(tpoints0.GetNumPoints()*tpoints1.GetNumPoints(),
147  from,1,to,1);
148  return;
149  }
150 
151  DNekMatSharedPtr I0,I1;
152  Array<OneD, NekDouble> wsp(tpoints1.GetNumPoints()*fpoints0.GetNumPoints()); // fnp0*tnp1
153 
154  int fnp0 = fpoints0.GetNumPoints();
155  int fnp1 = fpoints1.GetNumPoints();
156  int tnp0 = tpoints0.GetNumPoints();
157  int tnp1 = tpoints1.GetNumPoints();
158 
159  if(fpoints1 == tpoints1)
160  {
161  Vmath::Vcopy(fnp0*tnp1,from,1,wsp.get(),1);
162  }
163  else
164  {
165  I1 = PointsManager()[fpoints1]->GetI(tpoints1);
166  Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
167  I1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
168  }
169 
170  if(fpoints0 == tpoints0)
171  {
172  Vmath::Vcopy(tnp0*tnp1,wsp.get(),1,to,1);
173  }
174  else
175  {
176  I0 = PointsManager()[fpoints0]->GetI(tpoints0);
177  Blas::Dgemm('N', 'N', tnp0, tnp1, fnp0, 1.0, I0->GetPtr().get(),
178  tnp0, wsp.get(), fnp0, 0.0, to, tnp0);
179  }
180  }
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:394

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 185 of file Interp.cpp.

193  {
194  Interp3D(fbasis0.GetPointsKey(),fbasis1.GetPointsKey(),
195  fbasis2.GetPointsKey(),from.data(),
196  tbasis0.GetPointsKey(),tbasis1.GetPointsKey(),
197  tbasis2.GetPointsKey(),to.data());
198  }
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:214

References Nektar::LibUtilities::BasisKey::GetPointsKey().

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

◆ 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 201 of file Interp.cpp.

209  {
210  Interp3D(fpoints0,fpoints1,fpoints2,from.data(),
211  tpoints0,tpoints1,tpoints2,to.data());
212  }

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 214 of file Interp.cpp.

222  {
223  int i;
224  DNekMatSharedPtr I0, I1, I2;
225 
226  int fnp0 = fpoints0.GetNumPoints();
227  int fnp1 = fpoints1.GetNumPoints();
228  int fnp2 = fpoints2.GetNumPoints();
229  int tnp0 = tpoints0.GetNumPoints();
230  int tnp1 = tpoints1.GetNumPoints();
231  int tnp2 = tpoints2.GetNumPoints();
232 
233  Array<OneD, NekDouble> wsp1(tnp0*tnp1*fnp2);
234  Array<OneD, NekDouble> wsp2(tnp0*fnp1*fnp2);
235 
236  I0 = PointsManager()[fpoints0]->GetI(tpoints0);
237  I1 = PointsManager()[fpoints1]->GetI(tpoints1);
238  I2 = PointsManager()[fpoints2]->GetI(tpoints2);
239 
240  Blas::Dgemm('N', 'N', tnp0, fnp1*fnp2, fnp0, 1.0, I0->GetPtr().get(),
241  tnp0, from, fnp0, 0.0, wsp2.get(), tnp0);
242 
243  for(i = 0; i < fnp2; i++)
244  {
245  Blas::Dgemm('N', 'T', tnp0, tnp1, fnp1, 1.0, wsp2.get()+i*tnp0*fnp1,
246  tnp0, I1->GetPtr().get(), tnp1, 0.0, wsp1.get()+i*tnp0*tnp1, tnp0);
247  }
248 
249  Blas::Dgemm('N', 'T', tnp0*tnp1, tnp2, fnp2, 1.0, wsp1.get(),
250  tnp0*tnp1, I2->GetPtr().get(), tnp2, 0.0, to, tnp0*tnp1);
251  }

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 46 of file InterpCoeff.cpp.

50  {
51  ASSERTL0(fbasis0.GetNumModes() == tbasis0.GetNumModes(),
52  "Number of modes must be the same for "
53  "interpolating coefficients");
54 
55  // Check to see if the same basis
56  if (fbasis0.GetBasisType() == tbasis0.GetBasisType())
57  {
58  Vmath::Vcopy(fbasis0.GetNumModes(), from, 1, to, 1);
59  }
60  else
61  {
62  // interpolate
63  DNekMatSharedPtr ftB = BasisManager()[fbasis0]->GetI(tbasis0);
64 
65  NekVector<NekDouble> in (fbasis0.GetNumModes(), from, eWrapper);
66  NekVector<NekDouble> out(tbasis0.GetNumModes(), to, eWrapper);
67 
68  out = (*ftB)*in;
69  }
70  }
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 72 of file InterpCoeff.cpp.

78  {
79  InterpCoeff2D(fbasis0, fbasis1, from.data(),
80  tbasis0, tbasis1, to. data());
81  }
void InterpCoeff2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const NekDouble *from, const BasisKey &tbasis0, const BasisKey &tbasis1, NekDouble *to)
Definition: InterpCoeff.cpp:83

Referenced by 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 83 of file InterpCoeff.cpp.

89  {
90  const int fnm0 = fbasis0.GetNumModes();
91  const int fnm1 = fbasis1.GetNumModes();
92  const int tnm0 = tbasis0.GetNumModes();
93  const int tnm1 = tbasis1.GetNumModes();
94 
95  Array<OneD, NekDouble> wsp(tnm1 * fnm0);
96 
97  if (fbasis1.GetBasisType() == tbasis1.GetBasisType())
98  {
99  Vmath::Vcopy(fnm0*tnm1, from, 1, wsp.get(), 1);
100  }
101  else
102  {
103  // interpolate
104  DNekMatSharedPtr ft1 = BasisManager()[fbasis1]->GetI(tbasis1);
105 
106  Blas::Dgemm('N', 'T', fnm0, tnm1, fnm1, 1.0, from, fnm0,
107  ft1->GetPtr().get(), tnm1, 0.0, wsp.get(), fnm0);
108  }
109 
110  if (fbasis0.GetBasisType() == tbasis0.GetBasisType())
111  {
112  Vmath::Vcopy(tnm0*tnm1, wsp.get(), 1, to, 1);
113  }
114  else
115  {
116  // interpolate
117  DNekMatSharedPtr ft0 = BasisManager()[fbasis0]->GetI(tbasis0);
118 
119  Blas::Dgemm('N', 'N', tnm0, tnm1, fnm0, 1.0, ft0->GetPtr().get(),
120  tnm0, wsp.get(), fnm0, 0.0, to, tnm0);
121  }
122  }

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 124 of file InterpCoeff.cpp.

132  {
133  InterpCoeff3D(fbasis0, fbasis1, fbasis2, from.data(),
134  tbasis0, tbasis1, tbasis2, to. data());
135  }
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)

Referenced by 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 137 of file InterpCoeff.cpp.

145  {
146  const int fnm0 = fbasis0.GetNumModes();
147  const int fnm1 = fbasis1.GetNumModes();
148  const int fnm2 = fbasis2.GetNumModes();
149  const int tnm0 = tbasis0.GetNumModes();
150  const int tnm1 = tbasis1.GetNumModes();
151  const int tnm2 = tbasis2.GetNumModes();
152 
153  Array<OneD, NekDouble> wsp1(tnm0 * tnm1 * fnm2);
154  Array<OneD, NekDouble> wsp2(tnm0 * fnm1 * fnm2);
155 
156  DNekMatSharedPtr ft0 = BasisManager()[fbasis0]->GetI(tbasis0);
157  DNekMatSharedPtr ft1 = BasisManager()[fbasis1]->GetI(tbasis1);
158  DNekMatSharedPtr ft2 = BasisManager()[fbasis2]->GetI(tbasis2);
159 
160  Blas::Dgemm('N', 'N', tnm0, fnm1*fnm2, fnm0, 1.0,
161  ft0->GetPtr().get(), tnm0, from, fnm0, 0.0,
162  wsp2.get(), tnm0);
163 
164  for (int i = 0; i < fnm2; i++)
165  {
166  Blas::Dgemm('N', 'T', tnm0, tnm1, fnm1, 1.0,
167  wsp2.get()+i*tnm0*fnm1, tnm0, ft1->GetPtr().get(),
168  tnm1, 0.0, wsp1.get()+i*tnm0*tnm1, tnm0);
169  }
170 
171  Blas::Dgemm('N', 'T', tnm0*tnm1, tnm2, fnm2, 1.0, wsp1.get(),
172  tnm0*tnm1, ft2->GetPtr().get(), tnm2,
173  0.0, to, tnm0*tnm1);
174  }

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 97 of file RealComparison.hpp.

99 {
100  // Check if tolerance is positive
101  ASSERTL1(tol >= 0, "real comparison tolerance needs to be >= 0");
102  // Check if distance is within tolerance
103  return std::abs(lhs-rhs) < tol;
104 }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Definition: ErrorUtil.hpp:250
scalarT< T > abs(scalarT< T > in)
Definition: scalar.hpp:272

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 68 of file RealComparison.hpp.

70 {
71  // Check precondition in debug mode
72  ASSERTL1(factor >= 1, "real comparison factor needs to be >= 1");
73  // Relative distance normalized by machine epsilon
74  return boost::math::epsilon_difference(lhs, rhs) < factor;
75 }

References ASSERTL1.

Referenced by 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 891 of file Foundations/Basis.cpp.

892  {
893  return (!(x == y));
894  }

◆ operator!=() [2/4]

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

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

904  {
905  return (!(x == *y));
906  }

◆ operator!=() [3/4]

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

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

898  {
899  return (!(*x == y));
900  }

◆ operator!=() [4/4]

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

Definition at line 62 of file Graph.cpp.

63  {
64  return (x.m_id != y.m_id);
65  }

◆ operator<() [1/2]

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

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

52  {
53  PointsKey lhsPointsKey = lhs.GetPointsKey();
54  PointsKey rhsPointsKey = rhs.GetPointsKey();
55 
56  if (lhsPointsKey < rhsPointsKey)
57  {
58  return true;
59  }
60  if (lhsPointsKey != rhsPointsKey)
61  {
62  return false;
63  }
64 
65  if (lhs.m_nummodes < rhs.m_nummodes)
66  {
67  return true;
68  }
69  if (lhs.m_nummodes > rhs.m_nummodes)
70  {
71  return false;
72  }
73 
74  return (lhs.m_basistype < rhs.m_basistype);
75  }

◆ operator<() [2/2]

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

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

55  {
56  if (lhs.m_pointstype < rhs.m_pointstype)
57  {
58  return true;
59  }
60 
61  if (lhs.m_pointstype > rhs.m_pointstype)
62  {
63  return false;
64  }
65 
66  if (lhs.m_numpoints < rhs.m_numpoints)
67  {
68  return true;
69  }
70 
71  if (lhs.m_numpoints > rhs.m_numpoints)
72  {
73  return false;
74  }
75 
76  if(lhs.m_factor < rhs.m_factor)
77  {
78  return true;
79  }
80 
81  if(lhs.m_factor > rhs.m_factor)
82  {
83  return true;
84  }
85 
86  return false;
87  }

◆ operator<<() [1/10]

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

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

88  {
89  os << "NumModes: " << rhs.GetNumModes() << " BasisType: " << BasisTypeMap[rhs.GetBasisType()];
90  os << " " << rhs.GetPointsKey() << std::endl;
91 
92  return os;
93  }
const char *const BasisTypeMap[]
Definition: Foundations.hpp:46

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

◆ operator<<() [2/10]

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/10]

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/10]

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

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

95  {
96  os << "NumPoints: " << rhs.GetNumPoints() << " PointsType: " << kPointsTypeStr[rhs.GetPointsType()] << std::endl;
97 
98  return os;
99  }
const std::string kPointsTypeStr[]
Definition: Foundations.hpp:70

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

◆ operator<<() [5/10]

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

Definition at line 943 of file TimeIntegrationAlgorithmGLM.cpp.

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

◆ operator<<() [6/10]

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

Definition at line 937 of file TimeIntegrationAlgorithmGLM.cpp.

939 {
940  return operator << (os, *rhs);
941 }
std::ostream & operator<<(std::ostream &os, const TimeIntegrationAlgorithmGLM &rhs)

◆ operator<<() [7/10]

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

Definition at line 59 of file TimeIntegrationScheme.cpp.

60 {
61  rhs.print(os);
62 
63  return os;
64 }

◆ operator<<() [8/10]

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

Definition at line 152 of file TimeIntegrationSchemeGLM.cpp.

153 {
154  rhs.print( os );
155 
156  return os;
157 }

◆ operator<<() [9/10]

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

Definition at line 159 of file TimeIntegrationSchemeGLM.cpp.

161 {
162  os << *rhs.get();
163 
164  return os;
165 }

◆ operator<<() [10/10]

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

Definition at line 66 of file TimeIntegrationScheme.cpp.

68 {
69  os << *rhs.get();
70 
71  return os;
72 }

◆ operator==() [1/5]

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

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

872  {
873  return (x.GetPointsKey() == y.GetPointsKey() &&
874  x.m_basistype == y.m_basistype &&
875  x.GetNumModes() == y.GetNumModes());
876  }

◆ operator==() [2/5]

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

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

886  {
887  return (x == *y);
888  }

◆ operator==() [3/5]

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

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

880  {
881  return (*x == y);
882  }

◆ operator==() [4/5]

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

Definition at line 57 of file Graph.cpp.

58  {
59  return (x.m_id == y.m_id);
60  }

◆ operator==() [5/5]

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

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

49  {
50  return (lhs.m_numpoints == rhs.m_numpoints &&
51  lhs.m_pointstype == rhs.m_pointstype);
52  }

◆ operator>()

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

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

78  {
79  return (rhs < lhs);
80  }

◆ 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 52 of file PhysGalerkinProject.cpp.

56  {
57  PhysGalerkinProject1D(fbasis0.GetPointsKey(),from,tbasis0.GetPointsKey(),to);
58  }
void PhysGalerkinProject1D(const PointsKey &fpoints0, const NekDouble *from, const PointsKey &tpoints0, NekDouble *to)

References Nektar::LibUtilities::BasisKey::GetPointsKey().

Referenced by PhysGalerkinProject1D().

◆ PhysGalerkinProject1D() [2/4]

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

Definition at line 83 of file PhysGalerkinProject.cpp.

87  {
88  PhysGalerkinProject1D(fbasis0.GetPointsKey(),from,tbasis0.GetPointsKey(),to);
89  }

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 60 of file PhysGalerkinProject.cpp.

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

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 91 of file PhysGalerkinProject.cpp.

95  {
96  if(fpoints0 == tpoints0) //check to see if the same
97  {
98  Vmath::Vcopy(fpoints0.GetNumPoints(),from,1,to,1);
99  }
100  else // interpolate
101  {
102 
103  DNekMatSharedPtr GP0;
104 
105  GP0 = PointsManager()[tpoints0]
106  ->GetGalerkinProjection(fpoints0);
107 
108  Blas::Dgemv('T', tpoints0.GetNumPoints(), fpoints0.GetNumPoints(),
109  1.0, GP0->GetPtr().get(), tpoints0.GetNumPoints(),
110  from, 1, 0.0, to, 1);
111  }
112  }

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 115 of file PhysGalerkinProject.cpp.

121  {
122  PhysGalerkinProject2D(fbasis0.GetPointsKey(),fbasis1.GetPointsKey(),from.data(),
123  tbasis0.GetPointsKey(),tbasis1.GetPointsKey(),to.data());
124  }
void PhysGalerkinProject2D(const PointsKey &fpoints0, const PointsKey &fpoints1, const NekDouble *from, const PointsKey &tpoints0, const PointsKey &tpoints1, NekDouble *to)

References Nektar::LibUtilities::BasisKey::GetPointsKey().

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 126 of file PhysGalerkinProject.cpp.

132  {
133  PhysGalerkinProject2D(fpoints0,fpoints1,from.data(),tpoints0,tpoints1,to.data());
134  }

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 136 of file PhysGalerkinProject.cpp.

142  {
143  DNekMatSharedPtr GP0,GP1;
144  Array<OneD, NekDouble> wsp(tpoints1.GetNumPoints()*fpoints0.GetNumPoints()); // fnp0*tnp1
145 
146  int fnp0 = fpoints0.GetNumPoints();
147  int fnp1 = fpoints1.GetNumPoints();
148  int tnp0 = tpoints0.GetNumPoints();
149  int tnp1 = tpoints1.GetNumPoints();
150 
151  if(fpoints1 == tpoints1)
152  {
153  Vmath::Vcopy(fnp0*tnp1,from,1,wsp.get(),1);
154  }
155  else
156  {
157  GP1 = PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
158  Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
159  GP1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
160  }
161 
162  if(fpoints0 == tpoints0)
163  {
164  Vmath::Vcopy(tnp0*tnp1,wsp.get(),1,to,1);
165  }
166  else
167  {
168  GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
169  Blas::Dgemm('N', 'N', tnp0, tnp1, fnp0, 1.0,
170  GP0->GetPtr().get(),
171  tnp0, wsp.get(), fnp0, 0.0, to, tnp0);
172  }
173  }

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 177 of file PhysGalerkinProject.cpp.

185  {
186  PhysGalerkinProject3D(fbasis0.GetPointsKey(),
187  fbasis1.GetPointsKey(),
188  fbasis2.GetPointsKey(),
189  from.data(),
190  tbasis0.GetPointsKey(),
191  tbasis1.GetPointsKey(),
192  tbasis2.GetPointsKey(),
193  to.data());
194  }
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().

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 196 of file PhysGalerkinProject.cpp.

204  {
205  PhysGalerkinProject3D(fpoints0,fpoints1,fpoints2,from.data(),
206  tpoints0,tpoints1,tpoints2,to.data());
207  }

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 209 of file PhysGalerkinProject.cpp.

217  {
218  DNekMatSharedPtr GP0,GP1,GP2;
219 
220  int fnp0 = fpoints0.GetNumPoints();
221  int fnp1 = fpoints1.GetNumPoints();
222  int fnp2 = fpoints2.GetNumPoints();
223  int tnp0 = tpoints0.GetNumPoints();
224  int tnp1 = tpoints1.GetNumPoints();
225  int tnp2 = tpoints2.GetNumPoints();
226 
227  Array<OneD, NekDouble> wsp1(fnp0*tnp1*tnp2);
228  Array<OneD, NekDouble> wsp2(fnp0*fnp1*tnp2);
229 
230  GP2 = PointsManager()[tpoints2]->GetGalerkinProjection(fpoints2);
231  Blas::Dgemm('N', 'T', fnp0*fnp1, tnp2, fnp2, 1.0, from, fnp0*fnp1,
232  GP2->GetPtr().get(), tnp2, 0.0, wsp2.get(), fnp0*fnp1);
233 
234  GP1 = PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
235  for(int i = 0; i < tnp2; i++)
236  {
237  Blas::Dgemm('N', 'T', fnp0, tnp1, fnp1, 1.0,
238  wsp2.get()+i*fnp0*fnp1,
239  fnp0, GP1->GetPtr().get(),tnp1, 0.0,
240  wsp1.get()+i*fnp0*tnp1,
241  fnp0);
242  }
243 
244  GP0 = PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
245  Blas::Dgemm('N', 'N', tnp0, tnp1*tnp2, fnp0, 1.0,
246  GP0->GetPtr().get(), tnp0, wsp1.get(), fnp0, 0.0,
247  to, tnp0);
248  }

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

◆ PointsManager()

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

Definition at line 42 of file ManagerAccess.cpp.

43 {
44  static PointsManagerT instance;
45  return instance;
46 }
NekManager< PointsKey, Points< NekDouble >, PointsKey::opLess > PointsManagerT
Definition: ManagerAccess.h:49

Referenced by Nektar::LibUtilities::GaussPoints::CalculateGalerkinProjectionMatrix(), Nektar::LibUtilities::NodalHexElec::CalculatePoints(), Nektar::LibUtilities::NodalPrismElec::CalculatePoints(), Nektar::LibUtilities::NodalPrismSPI::CalculatePoints(), Nektar::LibUtilities::NodalQuadElec::CalculatePoints(), Nektar::LibUtilities::PolyEPoints::CalculateWeights(), Nektar::LibUtilities::BLPoints::CreateMatrix(), Nektar::LibUtilities::FourierPoints::CreateMatrix(), Nektar::LibUtilities::FourierSingleModePoints::CreateMatrix(), Nektar::LibUtilities::GaussPoints::CreateMatrix(), Nektar::LibUtilities::Basis::GenBasis(), Nektar::LibUtilities::NodalPrismElec::GetI(), Nektar::LibUtilities::NodalPrismEvenlySpaced::GetI(), Nektar::LibUtilities::NodalTetElec::GetI(), Nektar::LibUtilities::NodalTetEvenlySpaced::GetI(), Nektar::LibUtilities::NodalTriElec::GetI(), Nektar::LibUtilities::NodalTriEvenlySpaced::GetI(), Nektar::LibUtilities::NodalTriFekete::GetI(), Nektar::LibUtilities::PolyEPoints::GetI(), Nektar::StdRegions::StdNodalTriExp::GetNodalPoints(), Nektar::StdRegions::StdNodalPrismExp::GetNodalPoints(), Nektar::StdRegions::StdNodalTetExp::GetNodalPoints(), Interp1D(), Interp2D(), Interp3D(), PhysGalerkinProject1D(), PhysGalerkinProject2D(), PhysGalerkinProject3D(), Points_Create(), Nektar::MultiRegions::LocTraceToTraceMap::Setup(), Nektar::SpatialDomains::SegGeom::v_FillGeom(), and Nektar::SpatialDomains::TriGeom::v_FillGeom().

◆ PortablePath()

std::string Nektar::LibUtilities::PortablePath ( const boost::filesystem::path &  path)

◆ 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 67 of file Progressbar.hpp.

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

◆ REGISTER() [1/46]

Nektar::LibUtilities::REGISTER ( AdamsBashforth  )

◆ REGISTER() [2/46]

Nektar::LibUtilities::REGISTER ( AdamsBashforthOrder1  )

◆ REGISTER() [3/46]

Nektar::LibUtilities::REGISTER ( AdamsBashforthOrder2  )

◆ REGISTER() [4/46]

Nektar::LibUtilities::REGISTER ( AdamsBashforthOrder3  )

◆ REGISTER() [5/46]

Nektar::LibUtilities::REGISTER ( AdamsBashforthOrder4  )

◆ REGISTER() [6/46]

Nektar::LibUtilities::REGISTER ( AdamsMoulton  )

◆ REGISTER() [7/46]

Nektar::LibUtilities::REGISTER ( AdamsMoultonOrder1  )

◆ REGISTER() [8/46]

Nektar::LibUtilities::REGISTER ( AdamsMoultonOrder2  )

◆ REGISTER() [9/46]

Nektar::LibUtilities::REGISTER ( AdamsMoultonOrder3  )

◆ REGISTER() [10/46]

Nektar::LibUtilities::REGISTER ( AdamsMoultonOrder4  )

◆ REGISTER() [11/46]

Nektar::LibUtilities::REGISTER ( BackwardEuler  )

◆ REGISTER() [12/46]

Nektar::LibUtilities::REGISTER ( BDFImplicit  )

◆ REGISTER() [13/46]

Nektar::LibUtilities::REGISTER ( BDFImplicitOrder1  )

◆ REGISTER() [14/46]

Nektar::LibUtilities::REGISTER ( BDFImplicitOrder2  )

◆ REGISTER() [15/46]

Nektar::LibUtilities::REGISTER ( ClassicalRungeKutta4  )

◆ REGISTER() [16/46]

Nektar::LibUtilities::REGISTER ( CNAB  )

◆ REGISTER() [17/46]

Nektar::LibUtilities::REGISTER ( DIRK  )

◆ REGISTER() [18/46]

Nektar::LibUtilities::REGISTER ( DIRKOrder2  )

◆ REGISTER() [19/46]

Nektar::LibUtilities::REGISTER ( DIRKOrder3  )

◆ REGISTER() [20/46]

Nektar::LibUtilities::REGISTER ( DIRKOrder3_ES5  )

◆ REGISTER() [21/46]

Nektar::LibUtilities::REGISTER ( DIRKOrder4_ES6  )

◆ REGISTER() [22/46]

Nektar::LibUtilities::REGISTER ( Euler  )

◆ REGISTER() [23/46]

Nektar::LibUtilities::REGISTER ( EulerExponential  )

◆ REGISTER() [24/46]

Nektar::LibUtilities::REGISTER ( ForwardEuler  )

◆ REGISTER() [25/46]

Nektar::LibUtilities::REGISTER ( IMEX  )

◆ REGISTER() [26/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk  )

◆ REGISTER() [27/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_1_1_1  )

◆ REGISTER() [28/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_1_2_1  )

◆ REGISTER() [29/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_1_2_2  )

◆ REGISTER() [30/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_2_2_2  )

◆ REGISTER() [31/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_2_3_2  )

◆ REGISTER() [32/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_2_3_3  )

◆ REGISTER() [33/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_3_4_3  )

◆ REGISTER() [34/46]

Nektar::LibUtilities::REGISTER ( IMEXdirk_4_4_3  )

◆ REGISTER() [35/46]

Nektar::LibUtilities::REGISTER ( IMEXGear  )

◆ REGISTER() [36/46]

Nektar::LibUtilities::REGISTER ( IMEXOrder1  )

◆ REGISTER() [37/46]

Nektar::LibUtilities::REGISTER ( IMEXOrder2  )

◆ REGISTER() [38/46]

Nektar::LibUtilities::REGISTER ( IMEXOrder3  )

◆ REGISTER() [39/46]

Nektar::LibUtilities::REGISTER ( IMEXOrder4  )

◆ REGISTER() [40/46]

Nektar::LibUtilities::REGISTER ( MCNAB  )

◆ REGISTER() [41/46]

Nektar::LibUtilities::REGISTER ( RungeKutta  )

◆ REGISTER() [42/46]

Nektar::LibUtilities::REGISTER ( RungeKutta2  )

◆ REGISTER() [43/46]

Nektar::LibUtilities::REGISTER ( RungeKutta2_ImprovedEuler  )

◆ REGISTER() [44/46]

Nektar::LibUtilities::REGISTER ( RungeKutta2_SSP  )

◆ REGISTER() [45/46]

Nektar::LibUtilities::REGISTER ( RungeKutta3_SSP  )

◆ REGISTER() [46/46]

Nektar::LibUtilities::REGISTER ( RungeKutta5  )

◆ sign()

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

Definition at line 70 of file Interpreter.cpp.

71 {
72  return (arg > 0.0) - (arg < 0.0);
73 }

Referenced by Nektar::LibUtilities::Interpreter::ExpressionEvaluator::ExpressionEvaluator(), and Nektar::LibUtilities::functions::functions().

◆ 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 249 of file FieldIO.cpp.

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

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

Referenced by main(), and Nektar::PulseWaveSystem::WriteVessels().

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 46 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 59 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 66 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 100 of file SessionReader.h.

◆ kPointsTypeStr

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

◆ NodalTetElecAvailable

const unsigned int Nektar::LibUtilities::NodalTetElecAvailable = 10

Definition at line 23 of file NodalTetElecData.h.

◆ NodalTetElecData

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

◆ NodalTetElecNPTS

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

◆ NodalTetSPIAvailable

const unsigned int Nektar::LibUtilities::NodalTetSPIAvailable = 10

Definition at line 42 of file NodalTetSPIData.h.

◆ NodalTetSPIData

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

◆ NodalTetSPINPTS

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

Definition at line 43 of file NodalTetSPIData.h.

Referenced by Nektar::LibUtilities::NodalTetSPI::CalculatePoints(), and Nektar::LibUtilities::NodalTetSPI::CalculateWeights().

◆ NodalTriElecAvailable

const unsigned int Nektar::LibUtilities::NodalTriElecAvailable = 16

Definition at line 10 of file NodalTriElecData.h.

◆ NodalTriElecData

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

◆ NodalTriElecNPTS

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

◆ NodalTriFeketeAvailable

const unsigned int Nektar::LibUtilities::NodalTriFeketeAvailable = 16

Definition at line 10 of file NodalTriFeketeData.h.

◆ NodalTriFeketeData

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

◆ NodalTriFeketeNPTS

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

◆ NodalTriSPIAvailable

const unsigned int Nektar::LibUtilities::NodalTriSPIAvailable = 10

Definition at line 42 of file NodalTriSPIData.h.

◆ NodalTriSPIData

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

◆ NodalTriSPINPTS

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

Definition at line 43 of file NodalTriSPIData.h.

Referenced by Nektar::LibUtilities::NodalTriSPI::CalculatePoints(), and Nektar::LibUtilities::NodalTriSPI::CalculateWeights().

◆ NullBasisSharedPtr

BasisSharedPtr Nektar::LibUtilities::NullBasisSharedPtr
static

Definition at line 370 of file Basis.h.

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

◆ NullBasisSharedPtr1DArray

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

Definition at line 371 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 910 of file SharedArray.hpp.

◆ NullPointsTypeVector

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

Definition at line 84 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 60 of file PtsIO.h.

◆ NullUnsignedIntVector

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

◆ NullVectorNekDoubleVector

std::vector<std::vector<NekDouble> > Nektar::LibUtilities::NullVectorNekDoubleVector = { NullNekDoubleVector }
static

◆ perm12A_3d

const unsigned int 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 9 of file NodalTetElecData.h.

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

◆ perm12B_3d

const unsigned int 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 11 of file NodalTetElecData.h.

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

◆ perm12C_3d

const unsigned int 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 13 of file NodalTetElecData.h.

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

◆ perm24_3d

const unsigned int 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 16 of file NodalTetElecData.h.

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

◆ perm3A_2d [1/2]

const unsigned int Nektar::LibUtilities::perm3A_2d[3][3] = {{0,1,2},{2,0,1},{0,2,1}}
static

◆ perm3A_2d [2/2]

const unsigned int Nektar::LibUtilities::perm3A_2d[3][3] = {{0,1,2},{2,0,1},{0,2,1}}
static

Definition at line 5 of file NodalTriFeketeData.h.

◆ perm3B_2d [1/2]

const unsigned int Nektar::LibUtilities::perm3B_2d[3][3] = {{0,1,2},{1,0,2},{1,2,0}}
static

◆ perm3B_2d [2/2]

const unsigned int Nektar::LibUtilities::perm3B_2d[3][3] = {{0,1,2},{1,0,2},{1,2,0}}
static

Definition at line 6 of file NodalTriFeketeData.h.

◆ perm3C_2d

const unsigned int Nektar::LibUtilities::perm3C_2d[3][3] = {{0,1,2},{2,0,1},{1,2,0}}
static

Definition at line 7 of file NodalTriFeketeData.h.

◆ perm4_3d

const unsigned int Nektar::LibUtilities::perm4_3d[4][4] = {{0,1,2,3},{3,0,1,2},{2,3,0,1},{1,2,3,0}}
static

◆ perm6_2d [1/2]

const unsigned int 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 8 of file NodalTriElecData.h.

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

◆ perm6_2d [2/2]

const unsigned int 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 8 of file NodalTriFeketeData.h.

◆ perm6_3d

const unsigned int Nektar::LibUtilities::perm6_3d[6][4] = {{0,1,2,3},{0,2,1,3},{0,2,3,1},{2,0,1,3},{2,0,3,1},{2,3,0,1}}
static

◆ ReduceOperatorMap

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

Definition at line 74 of file Comm.h.

Referenced by export_Comm().

◆ ShapeTypeDimMap

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

Definition at line 82 of file ShapeType.hpp.

Referenced by Nektar::StdRegions::operator<<().

◆ ShapeTypeMap

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