Skip to content

Commit

Permalink
Fix HY_Features_MPI to match feature-type behavior of HY_Features fro…
Browse files Browse the repository at this point in the history
…m PR #665
  • Loading branch information
PhilMiller authored and hellkite500 committed Nov 9, 2023
1 parent 0a5e1f8 commit c92dc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/HY_Features_MPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ HY_Features_MPI::HY_Features_MPI( PartitionData partition_data, geojson::GeoJSON
destinations = network.get_destination_ids(feat_id);
//Find upstream ids
origins = network.get_origination_ids(feat_id);
if(feat_type == "cat" || feat_type == "agg")
if(hy_features::identifiers::isCatchment(feat_type))
{
//Find and prepare formulation
auto formulation = formulations->get_formulation(feat_id);
Expand All @@ -60,7 +60,7 @@ HY_Features_MPI::HY_Features_MPI( PartitionData partition_data, geojson::GeoJSON

_catchments.emplace(feat_id, c);
}
else if(feat_type == "nex" || feat_type == "tnx")
else if(hy_features::identifiers::isNexus(feat_type))
{ //origins only contains LOCAL origin features (catchments) as read from
//the geojson/partition subset. We need to make sure `origins` passed to remote nexus
//contain IDS of ALL upstream features, including those in remote partitions
Expand Down

0 comments on commit c92dc93

Please sign in to comment.