20 #ifndef _FUEL_CELL_APPLICATION_CORE_APPLICATION_DATA_H_ 
   21 #define _FUEL_CELL_APPLICATION_CORE_APPLICATION_DATA_H_ 
   23 #include <lac/vector_memory.h> 
   24 #include <lac/block_vector.h> 
   29 using namespace dealii;
 
   33 namespace ApplicationCore
 
   78   void enter_flag(std::string name,
 
   84   void enter(std::string   name,
 
   90   void enter(std::string     name,
 
   96   void enter(std::string                name,
 
   97              const std::vector<double>& v);
 
  103   void erase_flag(std::string name);
 
  109   void erase_scalar(std::string name);
 
  115   void erase_vector(std::string name);
 
  121   void erase_std_vector(std::string name);
 
  128   bool flag_exists(
const std::string& name) 
const;
 
  134   bool flag(std::string name) 
const;
 
  144   const double* scalar(std::string name) 
const;
 
  154   const FEVector* vector(std::string name) 
const;
 
  164   const std::vector<double>* std_vector(std::string name) 
const;
 
  225                  << 
"A " << arg1 << 
" with name " << arg2 << 
" was not stored in this data object");
 
scalar_map named_scalars
A map linking names of data to actual scalars. 
Definition: application_data.h:239
 
GrowingVectorMemory< Vector< double > > vector_pool
VectorMemory object for simple vectors. 
Definition: application_data.h:180
 
Here we handle general data of applications. 
Definition: application_data.h:66
 
vector_map named_vectors
A map linking names of data to actual vectors. 
Definition: application_data.h:245
 
std::map< std::string, const double * > scalar_map
The typedef for the map of scalars. 
Definition: application_data.h:203
 
std_vector_map named_std_vectors
A map linking names of data to actual std vectors. 
Definition: application_data.h:251
 
std::map< std::string, const std::vector< double > * > std_vector_map
The typedef for the map of std vectors. 
Definition: application_data.h:215
 
FCSTLogStream log
Object used to output data to file and, if file attached recorded to a file as well. 
 
DeclException2(VariableShouldExistForEquation, std::string, std::string,<< "The user-defined variable with name \""<< arg1<< "\" should be one of the solution variables for equation with name \""<< arg2<< "\"")
Exception thrown when a particular variable required by the equation class, does not exist in the use...
 
std::map< std::string, const FEVector * > vector_map
The typedef for the map of vectors. 
Definition: application_data.h:209
 
GrowingVectorMemory< FEVector > block_vector_pool
VectorMemory object for block vectors. 
Definition: application_data.h:191
 
std::map< std::string, bool > flag_map
The typedef for the map of boolean flags. 
Definition: application_data.h:197
 
BlockVector< double > FEVector
The vector class used by applications. 
Definition: application_data.h:39
 
flag_map named_flags
A map linking names of data to actual boolean flags. 
Definition: application_data.h:233