Skip to content

Commit

Permalink
IOSS: Scalar fields do not need metadata; clutters file also
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Apr 15, 2024
1 parent f0c5ff3 commit 9e1e05f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,8 @@ namespace Ioex {
void internal_output_field_metadata(int exoid, ex_entity_type type,
Ioss::GroupingEntity *entity)
{
// TODO: Handle 'user-defined' fields...

// Get all transient fields on this entity...
auto results_fields = entity->field_describe(Ioss::Field::TRANSIENT);
for (const auto &field_name : results_fields) {
Expand Down Expand Up @@ -1992,7 +1994,9 @@ namespace Ioex {
exo_field.component_separator[0] = separator == 1 ? '_' : separator;
}

ex_put_field_metadata(exoid, exo_field);
if (exo_field.type[0] != EX_SCALAR) {
ex_put_field_metadata(exoid, exo_field);
}
}
}

Expand Down

0 comments on commit 9e1e05f

Please sign in to comment.