Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Nektar::FieldUtils::OutputStdOut Class Reference

#include <OutputStdOut.h>

Inheritance diagram for Nektar::FieldUtils::OutputStdOut:
Inheritance graph
[legend]
Collaboration diagram for Nektar::FieldUtils::OutputStdOut:
Collaboration graph
[legend]

Public Member Functions

 OutputStdOut (FieldSharedPtr f)
 
virtual ~OutputStdOut ()
 
virtual void Process (po::variables_map &vm)
 Write fld to output file. More...
 
virtual std::string GetModuleName ()
 
- Public Member Functions inherited from Nektar::FieldUtils::OutputModule
 OutputModule (FieldSharedPtr p_f)
 
FIELD_UTILS_EXPORT void OpenStream ()
 Open a file for output. More...
 
- Public Member Functions inherited from Nektar::FieldUtils::Module
FIELD_UTILS_EXPORT Module (FieldSharedPtr p_f)
 
FIELD_UTILS_EXPORT void RegisterConfig (string key, string value)
 Register a configuration option with a module. More...
 
FIELD_UTILS_EXPORT void PrintConfig ()
 Print out all configuration options for a module. More...
 
FIELD_UTILS_EXPORT void SetDefaults ()
 Sets default configuration options for those which have not been set. More...
 
FIELD_UTILS_EXPORT bool GetRequireEquiSpaced (void)
 
FIELD_UTILS_EXPORT void SetRequireEquiSpaced (bool pVal)
 
FIELD_UTILS_EXPORT void EvaluateTriFieldAtEquiSpacedPts (LocalRegions::ExpansionSharedPtr &exp, const Array< OneD, const NekDouble > &infield, Array< OneD, NekDouble > &outfield)
 

Static Public Member Functions

static boost::shared_ptr< Modulecreate (FieldSharedPtr f)
 Creates an instance of this class. More...
 

Static Public Attributes

static ModuleKey m_className
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::FieldUtils::Module
 Module ()
 
- Protected Attributes inherited from Nektar::FieldUtils::OutputModule
ofstream m_fldFile
 Output stream. More...
 
- Protected Attributes inherited from Nektar::FieldUtils::Module
FieldSharedPtr m_f
 Field object. More...
 
map< string, ConfigOptionm_config
 List of configuration values. More...
 
bool m_requireEquiSpaced
 

Detailed Description

Definition at line 47 of file OutputStdOut.h.

Constructor & Destructor Documentation

Nektar::FieldUtils::OutputStdOut::OutputStdOut ( FieldSharedPtr  f)

Definition at line 55 of file OutputStdOut.cpp.

55  : OutputModule(f)
56 {
57 }
Nektar::FieldUtils::OutputStdOut::~OutputStdOut ( )
virtual

Definition at line 59 of file OutputStdOut.cpp.

60 {
61 }

Member Function Documentation

static boost::shared_ptr<Module> Nektar::FieldUtils::OutputStdOut::create ( FieldSharedPtr  f)
inlinestatic

Creates an instance of this class.

Definition at line 51 of file OutputStdOut.h.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

52  {
54  }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
virtual std::string Nektar::FieldUtils::OutputStdOut::GetModuleName ( )
inlinevirtual

Implements Nektar::FieldUtils::Module.

Definition at line 63 of file OutputStdOut.h.

64  {
65  return "OutputStdOut";
66  }
void Nektar::FieldUtils::OutputStdOut::Process ( po::variables_map &  vm)
virtual

Write fld to output file.

Implements Nektar::FieldUtils::Module.

Definition at line 63 of file OutputStdOut.cpp.

References Nektar::FieldUtils::Module::m_config, and Nektar::FieldUtils::Module::m_f.

64 {
65  // Extract the output filename and extension
66  string filename = m_config["outfile"].as<string>();
67 
68  if (m_f->m_verbose)
69  {
70  cout << "OutputStdOut: Output written to StdOut" << endl;
71  }
72 }
map< string, ConfigOption > m_config
List of configuration values.
FieldSharedPtr m_f
Field object.

Member Data Documentation

ModuleKey Nektar::FieldUtils::OutputStdOut::m_className
static
Initial value:

Definition at line 55 of file OutputStdOut.h.