Skip to content

Commit

Permalink
Refactored readField() to not have DatabaseIO as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpelle committed May 20, 2024
1 parent dbce95b commit df9e5ec
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ namespace Iocatalyst {
this->readProperties(child[detail::PROPERTIES], block);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], block, region->get_database());
this->readFields(child[detail::FIELDS], block);
}
return true;
}
Expand Down Expand Up @@ -816,9 +816,10 @@ namespace Iocatalyst {
}

template <typename GroupingEntityT>
bool readFields(const conduit_cpp::Node &&parent, GroupingEntityT *block, Ioss::DatabaseIO *dbase) const
bool readFields(const conduit_cpp::Node &&parent, GroupingEntityT *block) const
{
//Assumption: count = entity_count (in block)
Ioss::DatabaseIO *dbase = block->get_database();
Ioss::EntityType b_t = block->type();
bool is_entity_block = false;
if(b_t == Ioss::EntityType::ELEMENTBLOCK ||
Expand Down Expand Up @@ -897,7 +898,7 @@ namespace Iocatalyst {
this->readProperties(child[detail::PROPERTIES], region);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], region, region->get_database());
this->readFields(child[detail::FIELDS], region);
}
return true;
}
Expand All @@ -923,7 +924,7 @@ namespace Iocatalyst {
this->readProperties(child[detail::PROPERTIES], block);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], block, region->get_database());
this->readFields(child[detail::FIELDS], block);
}
return true;
}
Expand All @@ -950,7 +951,7 @@ namespace Iocatalyst {
this->readProperties(child[detail::PROPERTIES], block);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], block, region->get_database());
this->readFields(child[detail::FIELDS], block);
}
sideBlocks.clear();
return true;
Expand Down Expand Up @@ -999,7 +1000,7 @@ namespace Iocatalyst {
this->readProperties(child[detail::PROPERTIES], block);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], block, region->get_database());
this->readFields(child[detail::FIELDS], block);
}
return true;
}
Expand All @@ -1021,9 +1022,9 @@ namespace Iocatalyst {
block->get_node_block().property_add(parent);

// read fields (meta-data only)
this->readFields(child[detail::FIELDS], block, region->get_database());
this->readFields(child[detail::FIELDS], block);
this->readFields(child[getName(&block->get_node_block()) + detail::FS + detail::FIELDS],
&block->get_node_block(), region->get_database());
&block->get_node_block());

readZoneConnectivity(child[detail::ZONECONNECTIVITY], block);
readBoundaryConditions(child[detail::BOUNDARYCONDS], block);
Expand Down

0 comments on commit df9e5ec

Please sign in to comment.