Skip to content

Commit

Permalink
Matset Field Converters (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPrivitera committed Jan 26, 2024
1 parent 177c2f0 commit a997ed0
Show file tree
Hide file tree
Showing 3 changed files with 996 additions and 273 deletions.
25 changes: 25 additions & 0 deletions src/libs/blueprint/conduit_blueprint_mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,31 @@ namespace field
const std::string& topo_dest,
std::map<std::string, std::string>& matset_names);

//-------------------------------------------------------------------------
void CONDUIT_BLUEPRINT_API to_multi_buffer_full(const conduit::Node &src_matset,
const conduit::Node &src_field,
const std::string &dest_matset_name,
conduit::Node &dest_matset,
conduit::Node &dest_field);

//-------------------------------------------------------------------------
// creates a unibuffer case with 1st index into elements
void CONDUIT_BLUEPRINT_API to_sparse_by_element(const conduit::Node &src_matset,
const conduit::Node &src_field,
const std::string &dest_matset_name,
conduit::Node &dest_matset,
conduit::Node &dest_field,
const float64 epsilon = CONDUIT_EPSILON);

//-------------------------------------------------------------------------
// covers both the sparse and non sparse case
void CONDUIT_BLUEPRINT_API to_multi_buffer_by_material(const conduit::Node &src_matset,
const conduit::Node &src_field,
const std::string &dest_matset_name,
conduit::Node &dest_matset,
conduit::Node &dest_field,
const float64 epsilon = CONDUIT_EPSILON);

//-------------------------------------------------------------------------
// Given a blueprint field and matset, converts the matset and the field
// values + matset_values to the silo style sparse mixed slot
Expand Down

0 comments on commit a997ed0

Please sign in to comment.