LifeV
TestImportExport Class Reference

#include <TestImportExport.hpp>

+ Collaboration diagram for TestImportExport:

Public Types

typedef LifeV::RegionMesh< LifeV::LinearTetramesh_Type
 
typedef LifeV::RossEthierSteinmanUnsteadyDec problem_Type
 
typedef LifeV::FESpace< mesh_Type, LifeV::MapEpetrafeSpace_Type
 
typedef std::shared_ptr< feSpace_TypefeSpacePtr_Type
 
typedef std::shared_ptr< Epetra_Comm > commPtr_Type
 
typedef LifeV::Exporter< mesh_Type >::vectorPtr_Type vectorPtr_Type
 
typedef std::function< LifeV::Real(LifeV::Real const &, LifeV::Real const &, LifeV::Real const &, LifeV::Real const &, LifeV::UInt const &) > function_Type
 

Public Member Functions

 TestImportExport (const commPtr_Type &commPtr)
 
template<typename ImporterType , typename ExporterType >
bool run (GetPot &commandLine, const std::string &testString="import")
 
template<typename ImporterType >
bool importLoop (const std::shared_ptr< ImporterType > &importerPtr)
 
template<typename ExporterType >
bool exportLoop (const std::shared_ptr< ExporterType > &exporterPtr)
 

Private Member Functions

void loadData (GetPot &commandLine)
 
void buildMesh ()
 
void buildFESpaces ()
 
template<typename ExporterType >
void buildExporter (std::shared_ptr< ExporterType > &exporterPtr, const std::string &prefix) const
 

Private Attributes

commPtr_Type M_commPtr
 
LifeV::Displayer M_displayer
 
GetPot M_dataFile
 
std::shared_ptr< mesh_TypeM_meshPtr
 
LifeV::TimeData M_timeData
 
feSpacePtr_Type M_vectorFESpacePtr
 
feSpacePtr_Type M_scalarFESpacePtr
 
std::vector< vectorPtr_TypeM_vectorInterpolantPtr
 
std::vector< vectorPtr_TypeM_scalarInterpolantPtr
 
std::vector< vectorPtr_TypeM_vectorImportedPtr
 
std::vector< vectorPtr_TypeM_scalarImportedPtr
 
std::vector< std::string > M_vectorName
 
std::vector< std::string > M_scalarName
 

Detailed Description

Definition at line 63 of file TestImportExport.hpp.

Member Typedef Documentation

◆ mesh_Type

◆ problem_Type

◆ feSpace_Type

◆ feSpacePtr_Type

typedef std::shared_ptr<feSpace_Type> feSpacePtr_Type

Definition at line 71 of file TestImportExport.hpp.

◆ commPtr_Type

typedef std::shared_ptr<Epetra_Comm> commPtr_Type

Definition at line 72 of file TestImportExport.hpp.

◆ vectorPtr_Type

◆ function_Type

typedef std::function< LifeV::Real ( LifeV::Real const&, LifeV::Real const&, LifeV::Real const&, LifeV::Real const&, LifeV::UInt const& ) > function_Type

Definition at line 78 of file TestImportExport.hpp.

Constructor & Destructor Documentation

◆ TestImportExport()

TestImportExport ( const commPtr_Type commPtr)

Definition at line 119 of file TestImportExport.hpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ run()

bool run ( GetPot commandLine,
const std::string &  testString = "import" 
)

Definition at line 288 of file TestImportExport.hpp.

◆ importLoop()

bool importLoop ( const std::shared_ptr< ImporterType > &  importerPtr)

Definition at line 401 of file TestImportExport.hpp.

◆ exportLoop()

bool exportLoop ( const std::shared_ptr< ExporterType > &  exporterPtr)

Definition at line 343 of file TestImportExport.hpp.

◆ loadData()

void loadData ( GetPot commandLine)
private

Definition at line 126 of file TestImportExport.hpp.

+ Here is the caller graph for this function:

◆ buildMesh()

void buildMesh ( )
private

Definition at line 178 of file TestImportExport.hpp.

+ Here is the caller graph for this function:

◆ buildFESpaces()

void buildFESpaces ( )
private

Definition at line 218 of file TestImportExport.hpp.

+ Here is the caller graph for this function:

◆ buildExporter()

void buildExporter ( std::shared_ptr< ExporterType > &  exporterPtr,
const std::string &  prefix 
) const
private

Definition at line 263 of file TestImportExport.hpp.

Field Documentation

◆ M_commPtr

commPtr_Type M_commPtr
private

Definition at line 99 of file TestImportExport.hpp.

◆ M_displayer

LifeV::Displayer M_displayer
private

Definition at line 100 of file TestImportExport.hpp.

◆ M_dataFile

GetPot M_dataFile
private

Definition at line 101 of file TestImportExport.hpp.

◆ M_meshPtr

std::shared_ptr< mesh_Type > M_meshPtr
private

Definition at line 102 of file TestImportExport.hpp.

◆ M_timeData

LifeV::TimeData M_timeData
private

Definition at line 103 of file TestImportExport.hpp.

◆ M_vectorFESpacePtr

feSpacePtr_Type M_vectorFESpacePtr
private

Definition at line 105 of file TestImportExport.hpp.

◆ M_scalarFESpacePtr

feSpacePtr_Type M_scalarFESpacePtr
private

Definition at line 106 of file TestImportExport.hpp.

◆ M_vectorInterpolantPtr

std::vector< vectorPtr_Type > M_vectorInterpolantPtr
private

Definition at line 108 of file TestImportExport.hpp.

◆ M_scalarInterpolantPtr

std::vector< vectorPtr_Type > M_scalarInterpolantPtr
private

Definition at line 109 of file TestImportExport.hpp.

◆ M_vectorImportedPtr

std::vector< vectorPtr_Type > M_vectorImportedPtr
private

Definition at line 111 of file TestImportExport.hpp.

◆ M_scalarImportedPtr

std::vector< vectorPtr_Type > M_scalarImportedPtr
private

Definition at line 112 of file TestImportExport.hpp.

◆ M_vectorName

std::vector< std::string > M_vectorName
private

Definition at line 114 of file TestImportExport.hpp.

◆ M_scalarName

std::vector< std::string > M_scalarName
private

Definition at line 115 of file TestImportExport.hpp.


The documentation for this class was generated from the following file: