#include <FilterCheckpointCellModel.h>
|
static std::string | className = GetFilterFactory().RegisterCreatorFunction("CheckpointCellModel", FilterCheckpointCellModel::create) |
| Name of the class. More...
|
|
Definition at line 47 of file FilterCheckpointCellModel.h.
Nektar::FilterCheckpointCellModel::~FilterCheckpointCellModel |
( |
| ) |
|
Creates an instance of this class.
Definition at line 53 of file FilterCheckpointCellModel.h.
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
boost::shared_ptr< Filter > FilterSharedPtr
A shared pointer to a Driver object.
Definition at line 71 of file FilterCheckpointCellModel.cpp.
References ASSERTL0, m_cell, m_index, m_outputIndex, and v_Update().
73 ASSERTL0(
m_cell.get(),
"Cell model has not been set by EquationSystem "
74 "class. Use SetCellModel on this filter to achieve this.");
#define ASSERTL0(condition, msg)
unsigned int m_outputIndex
CellModelSharedPtr m_cell
virtual void v_Update(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
bool Nektar::FilterCheckpointCellModel::v_IsTimeDependent |
( |
| ) |
|
|
protectedvirtual |
Definition at line 82 of file FilterCheckpointCellModel.cpp.
References m_cell, m_fld, m_index, m_outputFile, m_outputFrequency, and m_outputIndex.
Referenced by v_Initialise().
89 std::stringstream vOutputFilename;
94 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
95 = pFields[0]->GetFieldDefinitions();
96 std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
100 for(
int j = 1; j <
m_cell->GetNumCellVariables(); ++j)
102 varName =
m_cell->GetCellVarName(j);
104 for(
int i = 0; i < FieldDef.size(); ++i)
110 FieldDef[i]->m_fields.push_back(varName);
111 pFields[0]->AppendFieldData(FieldDef[i], FieldData[i], data);
117 fieldMetaDataMap[
"Time"] = boost::lexical_cast<std::string>(time);
119 m_fld->Write(vOutputFilename.str(),FieldDef,FieldData,fieldMetaDataMap);
LibUtilities::FieldIOSharedPtr m_fld
unsigned int m_outputIndex
std::map< std::string, std::string > FieldMetaDataMap
unsigned int m_outputFrequency
CellModelSharedPtr m_cell
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::string Nektar::FilterCheckpointCellModel::className = GetFilterFactory().RegisterCreatorFunction("CheckpointCellModel", FilterCheckpointCellModel::create) |
|
static |
unsigned int Nektar::FilterCheckpointCellModel::m_index |
|
private |
std::string Nektar::FilterCheckpointCellModel::m_outputFile |
|
private |
unsigned int Nektar::FilterCheckpointCellModel::m_outputFrequency |
|
private |
unsigned int Nektar::FilterCheckpointCellModel::m_outputIndex |
|
private |