flecsi_state_wrapper.h
Go to the documentation of this file.
void mat_add_celldata(std::string const &var_name, int matid, Point< 3 > const *values)
Definition: flecsi_state_wrapper.h:274
Definition: wonton.h:84
int mat_get_num_cells(int matid) const
Get number of cells containing a particular material.
Definition: flecsi_state_wrapper.h:86
void mat_add_celldata(std::string const &var_name, int matid, Point< 2 > const *values)
Definition: flecsi_state_wrapper.h:270
void cell_get_mats(int cellid, std::vector< int > *cellmats) const
Get the IDs of materials in a cell.
Definition: flecsi_state_wrapper.h:112
std::vector< std::string > names() const
Vector of names.
Definition: flecsi_state_wrapper.h:335
Factorize a number N into D equal (or nearly equal) factors.
Definition: adaptive_refinement_mesh.h:31
int num_materials() const
Number of materials in problem.
Definition: flecsi_state_wrapper.h:71
void mat_add_cells(int matid, std::vector< int > const &newcells)
Add cells to material (or add material to cells)
Definition: flecsi_state_wrapper.h:295
void mat_add_celldata(std::string const &var_name, int matid, double const *values)
Add a scalar multi-valued data field on cells and add data to one of its materials.
Definition: flecsi_state_wrapper.h:266
Definition: wonton.h:85
flecsi_state_t(mesh_t &mesh)
Default constructor.
Definition: flecsi_state_wrapper.h:52
const std::type_info & get_data_type(std::string const &var_name) const
Get the data type of the given field.
Definition: flecsi_state_wrapper.h:327
void mat_get_cells(int matid, std::vector< int > *matcells) const
Get cell indices containing a particular material.
Definition: flecsi_state_wrapper.h:95
std::string material_name(int matid) const
Name of material.
Definition: flecsi_state_wrapper.h:77
void mesh_get_data(entity_kind_t on_what, std::string const &var_name, T **data) const
Get pointer to scalar data.
Definition: flecsi_state_wrapper.h:169
Definition: wonton.h:88
Field_type
Field type - whether it is mesh field or multi-material field.
Definition: wonton.h:187
void mat_get_celldata(std::string const &var_name, int matid, T const **data) const
Get pointer to read-only scalar cell data for a particular material.
Definition: flecsi_state_wrapper.h:203
Provides access to data stored in Flecsi_State.
Definition: flecsi_state_wrapper.h:27
int get_data_size(entity_kind_t on_what, std::string const &var_name) const
Definition: flecsi_state_wrapper.h:316
flecsi_state_t & operator=(const flecsi_state_t &)=default
Default assignment operator.
void mesh_add_data(Entity_kind on_what, std::string const &name, double const **data) const
Get a pointer to data from the state manager with a given variable name and on on_what mesh entities...
Definition: flecsi_state_wrapper.h:221
Field_type field_type(Entity_kind on_what, std::string const &var_name) const
Type of field (MESH_FIELD or MULTIMATERIAL_FIELD)
Definition: flecsi_state_wrapper.h:130
void mat_get_celldata(std::string const &var_name, int matid, T **data)
Get pointer to read-write scalar data for a particular material.
Definition: flecsi_state_wrapper.h:212
void mat_add_celldata(std::string const &var_name, double value)
Add a scalar multi-valued data field on cells and initialize its material data to a single value...
Definition: flecsi_state_wrapper.h:234
entity_kind_t get_entity(std::string const &var_name) const
Get the entity type on which the given field is defined.
Definition: flecsi_state_wrapper.h:146
int cell_get_num_mats(int cellid) const
Get number of materials contained in a cell.
Definition: flecsi_state_wrapper.h:104
void mat_add_celldata(std::string const &var_name, double const *const *values=nullptr, Data_layout layout=Data_layout::MATERIAL_CENTRIC)
Add a scalar multi-valued data field on cells and initialize its material data according to a 2D arra...
Definition: flecsi_state_wrapper.h:250
int cell_index_in_material(int meshcell, int matid) const
Get the local index of mesh cell in material cell list.
Definition: flecsi_state_wrapper.h:121
void mat_add_celldata(std::string const &var_name, int matid, double value)
Add a scalar multi-valued data field on cells and initialize one of its material data to a uniform va...
Definition: flecsi_state_wrapper.h:287
void add_material(std::string const &matname, std::vector< int > const &matcells)
Add a material to state.
Definition: flecsi_state_wrapper.h:311
void mat_rem_cells(int matid, std::vector< int > const &delcells)
Remove cells from material (or remove material from cells)
Definition: flecsi_state_wrapper.h:303