FileInput< VectorType, dim > Class Template Reference

Generic base-class for reading data from a file into a grid function. More...

#include <FileInput.h>

Inheritance diagram for FileInput< VectorType, dim >:
AMRBase< VectorType, dim > controlable F77FileInput< VectorType, dim >

List of all members.

Public Types

typedef base::vec_grid_fct_type vec_grid_fct_type
typedef base::vec_grid_data_type vec_grid_data_type
typedef GridFunction< DataType,
dim > 
grid_fct_type
typedef GridData< DataType, dim > grid_data_type
typedef LevelTransfer
< DataType, dim > 
leveltransfer_type
typedef
GFLevelTransferSpecificFunc
< leveltransfer_type, DataType,
dim > 
leveltransfer_functor_type

Public Member Functions

 FileInput ()
virtual ~FileInput ()
virtual void register_at (ControlDevice &Ctrl)
virtual void register_at (ControlDevice &Ctrl, const std::string &prefix)
virtual void init ()
virtual void update ()
virtual void finish ()
virtual void SetupData (GridHierarchy *gh, const int &ghosts)
virtual void ReadIn (vec_grid_fct_type &u, grid_fct_type &IOfunc)
virtual void ReadIn (grid_fct_type &IOfunc, const char *name)
virtual void ReadIn (grid_fct_type &IOfunc, const char *name, const int &Time, const int &Level)
void ReadPlain (grid_fct_type &IOfunc, const char *name, const int &Time, const int &Level, const BBox &where=BBox::_empty_bbox)
void ReadPlain (grid_fct_type &IOfunc, const char *name, const int &Time, const int &Level, const BBox &to, const BBox &from)
virtual void ReadIn (grid_data_type &IOdata, const char *name, const int &Time, const int &Level)
virtual void ReadPlain (grid_data_type &IOdata, const char *name, const int &Time, const int &Level)
virtual void CloseIO ()
void SetNcnt (const int &cnt)
const int & Ncnt () const
const int & InputType () const
const char * FileName (int d) const
void SetLevelTransfer (leveltransfer_type *_leveltransfer)
leveltransfer_typeLevelTransfer_ ()
const leveltransfer_typeLevelTransfer_ () const

Protected Attributes

int _Ncnt
int _InputType
std::string * CompName
ControlDevice LocCtrl
ControlDevice WhereCtrl
ControlDevice ToCtrl
ControlDevice FromCtrl
leveltransfer_type_LevelTransfer
leveltransfer_functor_type_ProlongFunc
leveltransfer_functor_type_RestrictFunc
BBox_where
BBox_to
BBox_from

Detailed Description

template<class VectorType, int dim>
class FileInput< VectorType, dim >

Generic base-class for reading data from a file into a grid function.

Author:
Ralf Deiterding
Version:
1.0
Date:
Oct-2005

Member Typedef Documentation

template<class VectorType, int dim>
typedef GridData<DataType,dim> FileInput< VectorType, dim >::grid_data_type
template<class VectorType, int dim>
typedef GridFunction<DataType,dim> FileInput< VectorType, dim >::grid_fct_type
template<class VectorType, int dim>
typedef LevelTransfer<DataType,dim> FileInput< VectorType, dim >::leveltransfer_type
template<class VectorType, int dim>
typedef base::vec_grid_data_type FileInput< VectorType, dim >::vec_grid_data_type

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
typedef base::vec_grid_fct_type FileInput< VectorType, dim >::vec_grid_fct_type

Constructor & Destructor Documentation

template<class VectorType, int dim>
FileInput< VectorType, dim >::FileInput (  )  [inline]
template<class VectorType, int dim>
virtual FileInput< VectorType, dim >::~FileInput (  )  [inline, virtual]

Member Function Documentation

template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::CloseIO (  )  [inline, virtual]
template<class VectorType, int dim>
const char* FileInput< VectorType, dim >::FileName ( int  d  )  const [inline]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::finish (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::init (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
const int& FileInput< VectorType, dim >::InputType (  )  const [inline]
template<class VectorType, int dim>
const leveltransfer_type& FileInput< VectorType, dim >::LevelTransfer_ (  )  const [inline]
template<class VectorType, int dim>
leveltransfer_type& FileInput< VectorType, dim >::LevelTransfer_ (  )  [inline]
template<class VectorType, int dim>
const int& FileInput< VectorType, dim >::Ncnt (  )  const [inline]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::ReadIn ( grid_data_type IOdata,
const char *  name,
const int &  Time,
const int &  Level 
) [inline, virtual]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::ReadIn ( grid_fct_type IOfunc,
const char *  name,
const int &  Time,
const int &  Level 
) [inline, virtual]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::ReadIn ( grid_fct_type IOfunc,
const char *  name 
) [inline, virtual]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::ReadPlain ( grid_data_type IOdata,
const char *  name,
const int &  Time,
const int &  Level 
) [inline, virtual]
template<class VectorType, int dim>
void FileInput< VectorType, dim >::ReadPlain ( grid_fct_type IOfunc,
const char *  name,
const int &  Time,
const int &  Level,
const BBox to,
const BBox from 
) [inline]
template<class VectorType, int dim>
void FileInput< VectorType, dim >::ReadPlain ( grid_fct_type IOfunc,
const char *  name,
const int &  Time,
const int &  Level,
const BBox where = BBox::_empty_bbox 
) [inline]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::register_at ( ControlDevice Ctrl,
const std::string &  prefix 
) [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::register_at ( ControlDevice Ctrl  )  [inline, virtual]
template<class VectorType, int dim>
void FileInput< VectorType, dim >::SetLevelTransfer ( leveltransfer_type _leveltransfer  )  [inline]
template<class VectorType, int dim>
void FileInput< VectorType, dim >::SetNcnt ( const int &  cnt  )  [inline]
template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::SetupData ( GridHierarchy gh,
const int &  ghosts 
) [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.

template<class VectorType, int dim>
virtual void FileInput< VectorType, dim >::update (  )  [inline, virtual]

Reimplemented from AMRBase< VectorType, dim >.


Member Data Documentation

template<class VectorType, int dim>
int FileInput< VectorType, dim >::_Ncnt [protected]
template<class VectorType, int dim>
ControlDevice FileInput< VectorType, dim >::FromCtrl [protected]
template<class VectorType, int dim>
ControlDevice FileInput< VectorType, dim >::LocCtrl [protected]
template<class VectorType, int dim>
ControlDevice FileInput< VectorType, dim >::ToCtrl [protected]
template<class VectorType, int dim>
ControlDevice FileInput< VectorType, dim >::WhereCtrl [protected]

The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:19:31 2016 for AMROC Fluid-solver Framework by  doxygen 1.6.3