26 #ifndef GRINS_CACHED_VALUES_H
27 #define GRINS_CACHED_VALUES_H
35 #include "libmesh/libmesh.h"
36 #include "libmesh/vector_value.h"
58 void set_values(
unsigned int quantity, std::vector<libMesh::Number>& values );
61 std::vector<libMesh::Gradient>& values );
64 std::vector<std::vector<libMesh::Number> >& values );
67 std::vector<std::vector<libMesh::Gradient> >& values );
69 const std::vector<libMesh::Number>&
get_cached_values(
unsigned int quantity )
const;
77 unsigned int size()
const;
98 #endif // GRINS_CACHED_VALUES_H
bool is_active(unsigned int quantity)
void add_quantities(const std::set< unsigned int > &cache_list)
std::map< unsigned int, std::vector< std::vector< libMesh::Number > > > _cached_vector_values
void set_values(unsigned int quantity, std::vector< libMesh::Number > &values)
std::set< unsigned int > _cache_list
void set_vector_gradient_values(unsigned int quantity, std::vector< std::vector< libMesh::Gradient > > &values)
std::map< unsigned int, std::vector< std::vector< libMesh::Gradient > > > _cached_vector_gradient_values
unsigned int size() const
const std::vector< std::vector< libMesh::Number > > & get_cached_vector_values(unsigned int quantity) const
std::map< unsigned int, std::vector< libMesh::Number > > _cached_values
const std::vector< std::vector< libMesh::Gradient > > & get_cached_vector_gradient_values(unsigned int quantity) const
const std::vector< libMesh::Gradient > & get_cached_gradient_values(unsigned int quantity) const
void add_quantity(unsigned int quantity)
void set_vector_values(unsigned int quantity, std::vector< std::vector< libMesh::Number > > &values)
void set_gradient_values(unsigned int quantity, std::vector< libMesh::Gradient > &values)
const std::vector< libMesh::Number > & get_cached_values(unsigned int quantity) const
std::map< unsigned int, std::vector< libMesh::Gradient > > _cached_gradient_values