40 #include <boost/core/ignore_unused.hpp>
71 boost::ignore_unused(vm);
74 string filename =
m_config[
"outfile"].as<
string>();
76 if (boost::filesystem::path(filename).extension() ==
".csv")
79 csvIO.
Write(filename,
m_f->m_fieldPts);
84 ptsIO.
Write(filename,
m_f->m_fieldPts);
91 m_f->m_exp[0]->GetCoordim(0) +
92 m_f->m_variables.size());
94 switch (
m_f->m_exp[0]->GetCoordim(0))
98 m_f->m_exp[0]->GetCoords(tmp[0]);
104 m_f->m_exp[0]->GetCoords(tmp[0], tmp[1]);
111 m_f->m_exp[0]->GetCoords(tmp[0], tmp[1], tmp[2]);
115 for (
int i = 0; i <
m_f->m_variables.size(); ++i)
117 tmp[i +
m_f->m_exp[0]->GetCoordim(0)] =
118 m_f->m_exp[i]->GetPhys();
122 m_f->m_exp[0]->GetCoordim(0),
131 boost::ignore_unused(vm);
133 "OutputPts can't write using only FieldData.");
137 po::variables_map &vm)
139 boost::ignore_unused(vm);
140 return fs::path(filename);
144 po::variables_map &vm)
146 boost::ignore_unused(vm);
147 return fs::path(filename);
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
Converter from fld to vtk.
virtual void OutputFromData(po::variables_map &vm)
Write from data to output file.
virtual void OutputFromPts(po::variables_map &vm)
Write from pts to output file.
virtual fs::path GetPath(std::string &filename, po::variables_map &vm)
virtual fs::path GetFullOutName(std::string &filename, po::variables_map &vm)
virtual void OutputFromExp(po::variables_map &vm)
Write from m_exp to output file.
void Write(const std::string &outFile, const PtsFieldSharedPtr &ptsField, const bool backup=false)
Save a pts field to a file.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void Write(const std::string &outFile, const PtsFieldSharedPtr &ptsField, const bool backup=false)
Save a pts field to a file.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
The above copyright notice and this permission notice shall be included.