52 "Writes a pts file."),
55 "Writes a csv file."),
69 string filename =
m_config[
"outfile"].as<
string>();
71 if (fs::path(filename).extension() ==
".csv")
74 csvIO.
Write(filename,
m_f->m_fieldPts);
79 ptsIO.
Write(filename,
m_f->m_fieldPts);
86 m_f->m_variables.size());
88 switch (
m_f->m_exp[0]->GetCoordim(0))
92 m_f->m_exp[0]->GetCoords(tmp[0]);
98 m_f->m_exp[0]->GetCoords(tmp[0], tmp[1]);
105 m_f->m_exp[0]->GetCoords(tmp[0], tmp[1], tmp[2]);
109 for (
int i = 0; i <
m_f->m_variables.size(); ++i)
111 tmp[i +
m_f->m_exp[0]->GetCoordim(0)] =
m_f->m_exp[i]->GetPhys();
114 m_f->m_exp[0]->GetCoordim(0),
m_f->m_variables, tmp);
125 [[maybe_unused]] po::variables_map &vm)
127 return fs::path(filename);
131 [[maybe_unused]] po::variables_map &vm)
133 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.
fs::path v_GetPath(std::string &filename, po::variables_map &vm) override
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
void v_OutputFromExp(po::variables_map &vm) override
Write from m_exp to output file.
OutputPts(FieldSharedPtr f)
void v_OutputFromPts(po::variables_map &vm) override
Write from pts to output file.
fs::path v_GetFullOutName(std::string &filename, po::variables_map &vm) override
void v_OutputFromData(po::variables_map &vm) override
Write from data to output file.
static ModuleKey m_className[]
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()