39#include <boost/format.hpp>
45namespace berrc = boost::system::errc;
63 :
FieldIO(pComm, sharedFilesystem)
88 std::vector<FieldDefinitionsSharedPtr> &fielddefs,
89 std::vector<std::vector<NekDouble>> &fielddata,
93 double tm0 = 0.0, tm1 = 0.0;
94 if (
m_comm->TreatAsRankZero())
100 ASSERTL1(fielddefs.size() == fielddata.size(),
101 "Length of fielddefs and fielddata incompatible");
102 for (
int f = 0; f < fielddefs.size(); ++f)
105 "Fielddata vector must contain at least one value.");
107 ASSERTL1(fielddata[f].size() == fielddefs[f]->m_fields.size() *
109 "Invalid size of fielddata vector.");
115 std::string filename =
SetUpOutput(outFile,
true, backup);
120 TiXmlDeclaration *decl =
new TiXmlDeclaration(
"1.0",
"utf-8",
"");
121 doc.LinkEndChild(decl);
123 TiXmlElement *root =
new TiXmlElement(
"NEKTAR");
124 doc.LinkEndChild(root);
128 for (
int f = 0; f < fielddefs.size(); ++f)
132 TiXmlElement *elemTag =
new TiXmlElement(
"ELEMENTS");
133 root->LinkEndChild(elemTag);
136 std::string fieldsString;
138 std::stringstream fieldsStringStream;
140 for (std::vector<int>::size_type i = 0;
141 i < fielddefs[f]->m_fields.size(); i++)
145 fieldsStringStream <<
",";
147 fieldsStringStream << fielddefs[f]->m_fields[i];
150 fieldsString = fieldsStringStream.str();
152 elemTag->SetAttribute(
"FIELDS", fieldsString);
155 std::string shapeString;
157 std::stringstream shapeStringStream;
158 shapeStringStream <<
ShapeTypeMap[fielddefs[f]->m_shapeType];
159 if (fielddefs[f]->m_numHomogeneousDir == 1)
161 shapeStringStream <<
"-HomogenousExp1D";
163 else if (fielddefs[f]->m_numHomogeneousDir == 2)
165 shapeStringStream <<
"-HomogenousExp2D";
168 if (fielddefs[f]->m_homoStrips)
170 shapeStringStream <<
"-Strips";
173 shapeString = shapeStringStream.str();
175 elemTag->SetAttribute(
"SHAPE", shapeString);
178 std::string basisString;
180 std::stringstream basisStringStream;
182 for (std::vector<BasisType>::size_type i = 0;
183 i < fielddefs[f]->m_basis.size(); i++)
187 basisStringStream <<
",";
189 basisStringStream <<
BasisTypeMap[fielddefs[f]->m_basis[i]];
192 basisString = basisStringStream.str();
194 elemTag->SetAttribute(
"BASIS", basisString);
197 if (fielddefs[f]->m_numHomogeneousDir)
199 std::string homoLenString;
201 std::stringstream homoLenStringStream;
203 for (
int i = 0; i < fielddefs[f]->m_numHomogeneousDir; ++i)
206 homoLenStringStream <<
",";
208 << fielddefs[f]->m_homogeneousLengths[i];
211 homoLenString = homoLenStringStream.str();
213 elemTag->SetAttribute(
"HOMOGENEOUSLENGTHS", homoLenString);
217 if (fielddefs[f]->m_numHomogeneousDir)
219 if (fielddefs[f]->m_homogeneousYIDs.size() > 0)
221 std::string homoYIDsString;
223 std::stringstream homoYIDsStringStream;
225 for (
int i = 0; i < fielddefs[f]->m_homogeneousYIDs.size();
230 homoYIDsStringStream <<
",";
233 << fielddefs[f]->m_homogeneousYIDs[i];
236 homoYIDsString = homoYIDsStringStream.str();
238 elemTag->SetAttribute(
"HOMOGENEOUSYIDS", homoYIDsString);
241 if (fielddefs[f]->m_homogeneousZIDs.size() > 0)
243 std::string homoZIDsString;
245 std::stringstream homoZIDsStringStream;
247 for (
int i = 0; i < fielddefs[f]->m_homogeneousZIDs.size();
252 homoZIDsStringStream <<
",";
255 << fielddefs[f]->m_homogeneousZIDs[i];
258 homoZIDsString = homoZIDsStringStream.str();
260 elemTag->SetAttribute(
"HOMOGENEOUSZIDS", homoZIDsString);
263 if (fielddefs[f]->m_homogeneousSIDs.size() > 0)
265 std::string homoSIDsString;
267 std::stringstream homoSIDsStringStream;
269 for (
int i = 0; i < fielddefs[f]->m_homogeneousSIDs.size();
274 homoSIDsStringStream <<
",";
277 << fielddefs[f]->m_homogeneousSIDs[i];
280 homoSIDsString = homoSIDsStringStream.str();
282 elemTag->SetAttribute(
"HOMOGENEOUSSIDS", homoSIDsString);
287 std::string numModesString;
289 std::stringstream numModesStringStream;
291 if (fielddefs[f]->m_uniOrder)
293 numModesStringStream <<
"UNIORDER:";
296 for (std::vector<int>::size_type i = 0;
297 i < fielddefs[f]->m_basis.size(); i++)
301 numModesStringStream <<
",";
303 numModesStringStream << fielddefs[f]->m_numModes[i];
309 numModesStringStream <<
"MIXORDER:";
311 for (std::vector<int>::size_type i = 0;
312 i < fielddefs[f]->m_numModes.size(); i++)
316 numModesStringStream <<
",";
318 numModesStringStream << fielddefs[f]->m_numModes[i];
323 numModesString = numModesStringStream.str();
325 elemTag->SetAttribute(
"NUMMODESPERDIR", numModesString);
330 std::string idString;
332 std::stringstream idStringStream;
336 elemTag->SetAttribute(
"ID", idString);
337 elemTag->SetAttribute(
"COMPRESSED",
343 elemTag->SetAttribute(
"BITSIZE",
345 std::string base64string;
348 "Failed to compress field data.");
350 elemTag->LinkEndChild(
new TiXmlText(base64string));
352 doc.SaveFile(filename);
354 m_comm->GetSpaceComm()->Block();
357 if (
m_comm->TreatAsRankZero())
360 std::cout <<
" (" << tm1 - tm0 <<
"s, XML)" << std::endl;
377 const std::string &outFile,
const std::vector<std::string> fileNames,
378 std::vector<std::vector<unsigned int>> &elementList,
382 TiXmlDeclaration *decl =
new TiXmlDeclaration(
"1.0",
"utf-8",
"");
383 doc.LinkEndChild(decl);
385 ASSERTL0(fileNames.size() == elementList.size(),
386 "Outfile names and list of elements ids does not match");
388 TiXmlElement *root =
new TiXmlElement(
"NEKTAR");
389 doc.LinkEndChild(root);
393 for (
int t = 0; t < fileNames.size(); ++t)
395 if (elementList[t].size())
397 TiXmlElement *elemIDs =
new TiXmlElement(
"Partition");
398 root->LinkEndChild(elemIDs);
400 elemIDs->SetAttribute(
"FileName", fileNames[t]);
404 elemIDs->LinkEndChild(
new TiXmlText(IDstr));
408 doc.SaveFile(outFile);
424 const std::string &inFile, std::vector<std::string> &fileNames,
425 std::vector<std::vector<unsigned int>> &elementList,
428 boost::ignore_unused(fieldmetadatamap);
430 TiXmlDocument doc(inFile);
431 bool loadOkay = doc.LoadFile();
433 std::stringstream errstr;
434 errstr <<
"Unable to load file: " << inFile << std::endl;
435 errstr <<
"Reason: " << doc.ErrorDesc() << std::endl;
436 errstr <<
"Position: Line " << doc.ErrorRow() <<
", Column "
437 << doc.ErrorCol() << std::endl;
441 TiXmlHandle docHandle(&doc);
445 TiXmlElement *master = doc.FirstChildElement(
"NEKTAR");
446 ASSERTL0(master,
"Unable to find NEKTAR tag in file.");
449 std::string strPartition =
"Partition";
452 TiXmlElement *fldfileIDs = master->FirstChildElement(strPartition.c_str());
456 strPartition =
"MultipleFldFiles";
457 fldfileIDs = master->FirstChildElement(
"MultipleFldFiles");
459 ASSERTL0(fldfileIDs,
"Unable to find 'Partition' or 'MultipleFldFiles' tag "
460 "within nektar tag.");
465 const char *attr = fldfileIDs->Attribute(
"FileName");
466 ASSERTL0(attr,
"'FileName' not provided as an attribute of '" +
467 strPartition +
"' tag.");
468 fileNames.push_back(std::string(attr));
470 const char *elementIDs = fldfileIDs->GetText();
471 ASSERTL0(elementIDs,
"Element IDs not specified.");
473 std::string elementIDsStr(elementIDs);
475 std::vector<unsigned int> idvec;
478 elementList.push_back(idvec);
480 fldfileIDs = fldfileIDs->NextSiblingElement(strPartition.c_str());
497 std::vector<FieldDefinitionsSharedPtr> &fielddefs,
498 std::vector<std::vector<NekDouble>> &fielddata,
502 std::string infile = infilename;
504 fs::path pinfilename(infilename);
508 if (fs::is_directory(pinfilename))
510 fs::path infofile(
"Info.xml");
511 fs::path fullpath = pinfilename / infofile;
514 std::vector<std::string> filenames;
515 std::vector<std::vector<unsigned int>> elementIDs_OnPartitions;
525 for (
int i = 0; i < filenames.size(); ++i)
527 fs::path pfilename(filenames[i]);
528 fullpath = pinfilename / pfilename;
541 std::map<int, std::vector<int>> FileIDs;
542 std::set<int> LoadFile;
544 for (i = 0; i < elementIDs_OnPartitions.size(); ++i)
546 for (j = 0; j < elementIDs_OnPartitions[i].size(); ++j)
548 FileIDs[elementIDs_OnPartitions[i][j]].push_back(i);
552 for (i = 0; i < ElementIDs.size(); ++i)
554 auto it = FileIDs.find(ElementIDs[i]);
555 if (it != FileIDs.end())
557 for (j = 0; j < it->second.size(); ++j)
559 LoadFile.insert(it->second[j]);
564 for (
auto &iter : LoadFile)
566 fs::path pfilename(filenames[iter]);
567 fullpath = pinfilename / pfilename;
602 TiXmlElement *metadata = 0;
603 TiXmlElement *master = 0;
606 master = xml->Get().FirstChildElement(
"NEKTAR");
607 ASSERTL0(master,
"Unable to find NEKTAR tag in file.");
608 std::string strLoop =
"NEKTAR";
612 metadata = master->FirstChildElement(
"FIELDMETADATA");
615 TiXmlElement *param = metadata->FirstChildElement(
"P");
619 TiXmlAttribute *paramAttr = param->FirstAttribute();
620 std::string attrName(paramAttr->Name());
621 std::string paramString;
623 if (attrName ==
"PARAM")
625 paramString.insert(0, paramAttr->Value());
630 "PARAM not provided as an attribute in "
631 "FIELDMETADATA section");
635 std::string paramBodyStr;
637 TiXmlNode *paramBody = param->FirstChild();
639 paramBodyStr += paramBody->ToText()->Value();
641 fieldmetadatamap[paramString] = paramBodyStr;
642 param = param->NextSiblingElement(
"P");
647 metadata = master->FirstChildElement(
"Metadata");
650 TiXmlElement *param = metadata->FirstChildElement();
654 std::string paramString = param->Value();
655 if (paramString !=
"Provenance")
658 if (param->NoChildren())
660 fieldmetadatamap[paramString] =
"";
664 TiXmlNode *paramBody = param->FirstChild();
665 std::string paramBodyStr = paramBody->ToText()->Value();
666 fieldmetadatamap[paramString] = paramBodyStr;
669 param = param->NextSiblingElement();
696 const std::string &outname,
697 const std::vector<FieldDefinitionsSharedPtr> &fielddefs,
700 ASSERTL0(!outname.empty(),
"Empty path given to SetUpFieldMetaData()");
702 unsigned int nprocs =
m_comm->GetSpaceComm()->GetSize();
703 unsigned int rank =
m_comm->GetSpaceComm()->GetRank();
705 fs::path specPath(outname);
710 std::vector<size_t> elmtnums(nprocs, 0);
711 std::vector<unsigned int> idlist;
712 for (
size_t i = 0; i < fielddefs.size(); ++i)
714 elmtnums[rank] += fielddefs[i]->m_elementIDs.size();
715 idlist.insert(idlist.end(), fielddefs[i]->m_elementIDs.begin(),
716 fielddefs[i]->m_elementIDs.end());
724 std::vector<std::vector<unsigned int>> ElementIDs(nprocs);
727 ElementIDs[0] = idlist;
728 for (
size_t i = 1; i < nprocs; ++i)
732 std::vector<unsigned int> tmp(elmtnums[i]);
733 m_comm->GetSpaceComm()->Recv(i, tmp);
739 std::vector<std::string> filenames;
740 for (
unsigned int i = 0; i < nprocs; ++i)
744 filenames.push_back(pad.str());
748 std::string infofile =
756 if (elmtnums[rank] > 0)
758 m_comm->GetSpaceComm()->Send(0, idlist);
773 std::vector<FieldDefinitionsSharedPtr> &fielddefs,
bool expChild)
776 std::static_pointer_cast<XmlDataSource>(dataSource);
777 TiXmlElement *master =
780 master = xml->Get().FirstChildElement(
"NEKTAR");
781 ASSERTL0(master,
"Unable to find NEKTAR tag in file.");
782 std::string strLoop =
"NEKTAR";
783 TiXmlElement *loopXml = master;
785 TiXmlElement *expansionTypes;
788 expansionTypes = master->FirstChildElement(
"EXPANSIONS");
789 ASSERTL0(expansionTypes,
"Unable to find EXPANSIONS tag in file.");
790 loopXml = expansionTypes;
791 strLoop =
"EXPANSIONS";
797 TiXmlElement *element = loopXml->FirstChildElement(
"ELEMENTS");
802 std::string idString;
803 std::string shapeString;
804 std::string basisString;
805 std::string homoLengthsString;
806 std::string homoSIDsString;
807 std::string homoZIDsString;
808 std::string homoYIDsString;
809 std::string numModesString;
810 std::string numPointsString;
811 std::string fieldsString;
812 std::string pointsString;
813 bool pointDef =
false;
814 bool numPointDef =
false;
815 TiXmlAttribute *attr = element->FirstAttribute();
818 std::string attrName(attr->Name());
819 if (attrName ==
"FIELDS")
821 fieldsString.insert(0, attr->Value());
823 else if (attrName ==
"SHAPE")
825 shapeString.insert(0, attr->Value());
827 else if (attrName ==
"BASIS")
829 basisString.insert(0, attr->Value());
831 else if (attrName ==
"HOMOGENEOUSLENGTHS")
833 homoLengthsString.insert(0, attr->Value());
835 else if (attrName ==
"HOMOGENEOUSSIDS")
837 homoSIDsString.insert(0, attr->Value());
839 else if (attrName ==
"HOMOGENEOUSZIDS")
841 homoZIDsString.insert(0, attr->Value());
843 else if (attrName ==
"HOMOGENEOUSYIDS")
845 homoYIDsString.insert(0, attr->Value());
847 else if (attrName ==
"NUMMODESPERDIR")
849 numModesString.insert(0, attr->Value());
851 else if (attrName ==
"ID")
853 idString.insert(0, attr->Value());
855 else if (attrName ==
"POINTSTYPE")
857 pointsString.insert(0, attr->Value());
860 else if (attrName ==
"NUMPOINTSPERDIR")
862 numPointsString.insert(0, attr->Value());
865 else if (attrName ==
"COMPRESSED")
869 "Compressed formats do not "
870 "match. Expected: " +
872 " but got " + std::string(attr->Value()));
874 else if (attrName ==
"BITSIZE")
882 std::string errstr(
"Unknown attribute: ");
893 if (shapeString.find(
"Strips") != std::string::npos)
903 if ((
loc = shapeString.find_first_of(
"-")) != std::string::npos)
905 if (shapeString.find(
"Exp1D") != std::string::npos)
914 shapeString.erase(
loc, shapeString.length());
918 std::vector<unsigned int> elementIds;
922 ASSERTL0(valid,
"Unable to correctly parse the element ids.");
939 std::string(
"Unable to correctly parse the shape type: ")
944 std::vector<std::string> basisStrings;
945 std::vector<BasisType> basis;
947 ASSERTL0(valid,
"Unable to correctly parse the basis types.");
948 for (std::vector<std::string>::size_type i = 0;
949 i < basisStrings.size(); i++)
963 std::string(
"Unable to correctly parse the basis type: ")
964 .append(basisStrings[i])
969 std::vector<NekDouble> homoLengths;
974 ASSERTL0(valid,
"Unable to correctly parse the number of "
975 "homogeneous lengths.");
979 std::vector<unsigned int> homoSIDs;
984 "Unable to correctly parse homogeneous strips IDs.");
988 std::vector<unsigned int> homoZIDs;
989 std::vector<unsigned int> homoYIDs;
995 "Unable to correctly parse homogeneous planes IDs.");
1001 ASSERTL0(valid,
"Unable to correctly parse homogeneous lines "
1002 "IDs in z-direction.");
1004 ASSERTL0(valid,
"Unable to correctly parse homogeneous lines "
1005 "IDs in y-direction.");
1009 std::vector<PointsType> points;
1013 std::vector<std::string> pointsStrings;
1015 ASSERTL0(valid,
"Unable to correctly parse the points types.");
1016 for (std::vector<std::string>::size_type i = 0;
1017 i < pointsStrings.size(); i++)
1032 "Unable to correctly parse the points type: ")
1033 .append(pointsStrings[i])
1039 std::vector<unsigned int> numModes;
1040 bool UniOrder =
false;
1042 if (strstr(numModesString.c_str(),
"UNIORDER:"))
1049 ASSERTL0(valid,
"Unable to correctly parse the number of modes.");
1052 std::vector<unsigned int> numPoints;
1057 "Unable to correctly parse the number of points.");
1061 std::vector<std::string> Fields;
1063 ASSERTL0(valid,
"Unable to correctly parse the number of fields.");
1067 shape, elementIds, basis, UniOrder, numModes, Fields,
1068 numHomoDir, homoLengths, strips, homoSIDs, homoZIDs,
1069 homoYIDs, points, pointDef, numPoints, numPointDef);
1071 fielddefs.push_back(fielddef);
1073 element = element->NextSiblingElement(
"ELEMENTS");
1075 loopXml = loopXml->NextSiblingElement(strLoop);
1088 const std::vector<FieldDefinitionsSharedPtr> &fielddefs,
1089 std::vector<std::vector<NekDouble>> &fielddata)
1093 std::static_pointer_cast<XmlDataSource>(dataSource);
1095 TiXmlElement *master =
1098 master = xml->Get().FirstChildElement(
"NEKTAR");
1099 ASSERTL0(master,
"Unable to find NEKTAR tag in file.");
1104 TiXmlElement *element = master->FirstChildElement(
"ELEMENTS");
1105 ASSERTL0(element,
"Unable to find ELEMENTS tag within nektar tag.");
1109 TiXmlNode *elementChild = element->FirstChild();
1111 "Unable to extract the data from the element tag.");
1112 std::string elementStr;
1113 while (elementChild)
1115 if (elementChild->Type() == TiXmlNode::TINYXML_TEXT)
1117 elementStr += elementChild->ToText()->ValueStr();
1119 elementChild = elementChild->NextSibling();
1122 std::vector<NekDouble> elementFieldData;
1125 const char *CompressStr = element->Attribute(
"COMPRESSED");
1130 "Compressed formats do not match. "
1133 std::string(CompressStr));
1137 elementStr, elementFieldData),
1138 "Failed to decompress field data.");
1139 fielddata.push_back(elementFieldData);
1143 fielddata[cntdumps].size() ==
1144 datasize * fielddefs[cntdumps]->m_fields.size(),
1145 "Input data is not the same length as header infoarmation");
1149 element = element->NextSiblingElement(
"ELEMENTS");
1151 master = master->NextSiblingElement(
"NEKTAR");
#define ASSERTL0(condition, msg)
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
#define WARNINGL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Class for operating on Nektar++ input/output files.
int CheckFieldDefinition(const FieldDefinitionsSharedPtr &fielddefs)
Check field definitions for correctness and return storage size.
DataSourceSharedPtr ImportFieldMetaData(const std::string &filename, FieldMetaDataMap &fieldmetadatamap)
Import the metadata from a field file.
std::string SetUpOutput(const std::string outname, bool perRank, bool backup=false)
Set up the filesystem ready for output.
LibUtilities::CommSharedPtr m_comm
Communicator to use when writing parallel format.
std::string GetFileEnding() const
Helper function that determines default file extension.
static void AddInfoTag(TagWriterSharedPtr root, const FieldMetaDataMap &fieldmetadatamap)
Add provenance information to the field metadata map.
void ImportMultiFldFileIDs(const std::string &inFile, std::vector< std::string > &fileNames, std::vector< std::vector< unsigned int > > &elementList, FieldMetaDataMap &fieldmetadatamap)
Read file containing element ID to partition mapping.
void ImportFieldData(DataSourceSharedPtr dataSource, const std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata)
Import field data from a target file.
virtual const std::string & v_GetClassName() const override
Returns the class name.
void ImportFieldDefs(DataSourceSharedPtr dataSource, std::vector< FieldDefinitionsSharedPtr > &fielddefs, bool expChild)
Import field definitions from the target file.
void WriteMultiFldFileIDs(const std::string &outfile, const std::vector< std::string > fileNames, std::vector< std::vector< unsigned int > > &elementList, const FieldMetaDataMap &fieldinfomap=NullFieldMetaDataMap)
Write out a file containing element ID to partition mapping.
static FieldIOSharedPtr create(LibUtilities::CommSharedPtr pComm, bool sharedFilesystem)
Creates an instance of this class.
virtual DataSourceSharedPtr v_ImportFieldMetaData(const std::string &filename, FieldMetaDataMap &fieldmetadatamap) override
Import field metadata from filename and return the data source which wraps filename.
void v_Import(const std::string &infilename, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata=NullVectorNekDoubleVector, FieldMetaDataMap &fieldinfomap=NullFieldMetaDataMap, const Array< OneD, int > &ElementIDs=NullInt1DArray) override
Import an XML format file.
virtual void v_Write(const std::string &outFile, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, const FieldMetaDataMap &fieldinfomap=NullFieldMetaDataMap, const bool backup=false) override
Write an XML file to outFile given the field definitions fielddefs, field data fielddata and metadata...
FieldIOXml(LibUtilities::CommSharedPtr pComm, bool sharedFilesystem)
Default constructor.
void SetUpFieldMetaData(const std::string &outname, const std::vector< FieldDefinitionsSharedPtr > &fielddefs, const FieldMetaDataMap &fieldmetadatamap)
Set up field meta data map.
static std::string className
Name of class.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
static DataSourceSharedPtr create(const std::string &fn)
Create a new XML data source based on the filename.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
static std::string GenerateSeqString(const std::vector< T > &v)
Generate a compressed comma-separated string representation of a vector of unsigned integers.
static bool GenerateVector(const std::string &str, std::vector< T > &out)
Takes a comma-separated string and converts it to entries in a vector.
static bool GenerateSeqVector(const std::string &str, std::vector< unsigned int > &out)
Takes a comma-separated compressed string and converts it to entries in a vector.
std::string GetBitSizeStr(void)
int ZlibDecodeFromBase64Str(std::string &in64, std::vector< T > &out)
std::string GetCompressString(void)
int ZlibEncodeToBase64Str(std::vector< T > &in, std::string &out64)
const char *const ShapeTypeMap[SIZE_ShapeType]
const char *const BasisTypeMap[]
std::shared_ptr< DataSource > DataSourceSharedPtr
std::map< std::string, std::string > FieldMetaDataMap
const std::string kPointsTypeStr[]
std::string PortablePath(const boost::filesystem::path &path)
create portable path on different platforms for boost::filesystem path
std::shared_ptr< XmlDataSource > XmlDataSourceSharedPtr
static std::vector< std::vector< NekDouble > > NullVectorNekDoubleVector
std::shared_ptr< FieldDefinitions > FieldDefinitionsSharedPtr
FieldIOFactory & GetFieldIOFactory()
Returns the FieldIO factory.
std::shared_ptr< XmlTagWriter > XmlTagWriterSharedPtr
@ SIZE_PointsType
Length of enum list.
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
@ SIZE_BasisType
Length of enum list.
The above copyright notice and this permission notice shall be included.
static Array< OneD, int > NullInt1DArray