36 #ifndef FIELDUTILS_OUTPUTTECPLOT
37 #define FIELDUTILS_OUTPUTTECPLOT
39 #include "../Module.h"
74 virtual void Process(po::variables_map &vm);
101 std::vector<std::string> &var);
111 return "OutputTecplot";
132 ConfigOption(
true,
"0",
"Write double-precision data: more "
133 "accurate but more disk space required");
144 std::vector<std::string> &var);
static ModuleKey m_className
map< string, ConfigOption > m_config
List of configuration values.
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
Represents a command-line configuration option.
TecplotZoneType m_zoneType
Tecplot zone type of output.
static boost::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
Array< OneD, int > m_rankConnSizes
Each rank's connectivity sizes.
static boost::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
virtual void WriteTecplotHeader(std::ofstream &outfile, std::vector< std::string > &var)
Write Tecplot files header in binary format.
pair< ModuleType, string > ModuleKey
bool m_oneOutputFile
True if writing a single output file.
void WriteDoubleOrFloat(std::ofstream &outfile, Array< OneD, NekDouble > &data)
Write either double-precision or single-precision output of field data.
virtual ~OutputTecplotBinary()
OutputTecplot(FieldSharedPtr f)
virtual void WriteTecplotConnectivity(std::ofstream &outfile)
Write Tecplot connectivity information (ASCII)
void CalculateConnectivity()
Calculate connectivity information for each expansion dimension.
virtual void WriteTecplotHeader(std::ofstream &outfile, std::vector< std::string > &var)
Write Tecplot files header.
Array< OneD, int > m_rankFieldSizes
Each rank's field sizes.
boost::shared_ptr< Field > FieldSharedPtr
virtual void WriteTecplotZone(std::ofstream &outfile)
vector< Array< OneD, int > > m_conn
Connectivty for each block: one per element.
int m_numBlocks
Number of blocks in Tecplot file.
int m_totConn
Total number of connectivity entries.
virtual std::string GetModuleName()
Returns this module's name.
static ModuleKey m_className
int GetNumTecplotBlocks()
Calculate number of Tecplot blocks.
virtual void Process(po::variables_map &vm)
Set up member variables to dump Tecplot format output.
int m_coordim
Coordinate dimension of output.
Array< OneD, Array< OneD, NekDouble > > m_fields
Field data to output.
OutputTecplotBinary(FieldSharedPtr f)
Tecplot output class, specifically for binary field output.
bool m_binary
True if writing binary field output.
virtual void WriteTecplotConnectivity(std::ofstream &outfile)
Write Tecplot connectivity information (ASCII)
virtual void WriteTecplotZone(std::ofstream &outfile)
vector< int > m_numPoints
Number of points per block in Tecplot file.
Abstract base class for output modules.