Skip to content

Commit

Permalink
Matset Converters (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPrivitera committed Jan 12, 2024
1 parent 07f7a1b commit 0698317
Show file tree
Hide file tree
Showing 3 changed files with 634 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/libs/blueprint/conduit_blueprint_mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,22 @@ namespace matset
//-------------------------------------------------------------------------
bool CONDUIT_BLUEPRINT_API is_material_dominant(const conduit::Node &matset);

//-------------------------------------------------------------------------
void CONDUIT_BLUEPRINT_API to_multi_buffer_full(const conduit::Node &src_matset,
conduit::Node &dest_matset);

//-------------------------------------------------------------------------
// creates a unibuffer case with 1st index into elements
void CONDUIT_BLUEPRINT_API to_sparse_by_element(const conduit::Node &src_matset,
conduit::Node &dest_matset,
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,
conduit::Node &dest_matset,
const float64 epsilon = CONDUIT_EPSILON);

//-------------------------------------------------------------------------
// Converts a blueprint matset to the silo style sparse mixed slot
// representation.
Expand Down

0 comments on commit 0698317

Please sign in to comment.