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::InputPts Class Reference

#include <InputPts.h>

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

Public Member Functions

 InputPts (FieldSharedPtr f)
 Set up InputPts object. More...
 
virtual ~InputPts ()
 
virtual void Process (po::variables_map &vm)
 
virtual std::string GetModuleName ()
 
- Public Member Functions inherited from Nektar::FieldUtils::InputModule
 InputModule (FieldSharedPtr p_m)
 
FIELD_UTILS_EXPORT void AddFile (string fileType, string fileName)
 
- 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 ModuleSharedPtr create (FieldSharedPtr f)
 Creates an instance of this class. More...
 

Static Public Attributes

static ModuleKey m_className []
 ModuleKey for class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::FieldUtils::InputModule
void PrintSummary ()
 Print summary of elements. More...
 
- Protected Member Functions inherited from Nektar::FieldUtils::Module
 Module ()
 
- Protected Attributes inherited from Nektar::FieldUtils::InputModule
set< string > m_allowedFiles
 
- 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

Input module for Xml files.

Definition at line 49 of file InputPts.h.

Constructor & Destructor Documentation

Nektar::FieldUtils::InputPts::InputPts ( FieldSharedPtr  f)

Set up InputPts object.

Definition at line 63 of file InputPts.cpp.

References Nektar::FieldUtils::InputModule::m_allowedFiles.

63  : InputModule(f)
64 {
65  m_allowedFiles.insert("pts");
66 }
Nektar::FieldUtils::InputPts::~InputPts ( )
virtual

Definition at line 71 of file InputPts.cpp.

72 {
73 }

Member Function Documentation

static ModuleSharedPtr Nektar::FieldUtils::InputPts::create ( FieldSharedPtr  f)
inlinestatic

Creates an instance of this class.

Definition at line 57 of file InputPts.h.

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

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

Implements Nektar::FieldUtils::Module.

Definition at line 64 of file InputPts.h.

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

Implements Nektar::FieldUtils::Module.

Definition at line 78 of file InputPts.cpp.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::LibUtilities::GetCommFactory(), and Nektar::FieldUtils::Module::m_f.

79 {
80  if (m_f->m_verbose)
81  {
82  if (m_f->m_comm->TreatAsRankZero())
83  {
84  cout << "Processing input pts file" << endl;
85  }
86  }
87 
88  string inFile = (m_f->m_inputfiles["pts"][0]).c_str();
89 
90  if (m_f->m_session)
91  {
93  m_f->m_session->GetComm());
94  }
95  else // serial communicator
96  {
100  }
101 
102  m_f->m_ptsIO->Import(inFile, m_f->m_fieldPts);
103 }
tBaseSharedPtr CreateInstance(tKey idKey BOOST_PP_COMMA_IF(MAX_PARAM) BOOST_PP_ENUM_BINARY_PARAMS(MAX_PARAM, tParam, x))
Create an instance of the class referred to by idKey.
Definition: NekFactory.hpp:162
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
CommFactory & GetCommFactory()
Definition: Comm.cpp:61
boost::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
Definition: Comm.h:55
FieldSharedPtr m_f
Field object.

Member Data Documentation

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

ModuleKey for class.

Definition at line 62 of file InputPts.h.