Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ namespace geode
set_name( horizons_stack.name() );
auto mapping = copy_components( horizons_stack );
copy_stratigraphic_relationships( mapping, horizons_stack );
const auto& horizons_mapping =
mapping.at( Horizon< dimension >::component_type_static() );
if( const auto horizon_id = horizons_stack.bottom_horizon() )
{
horizons_stack_.set_bottom_horizon(
horizons_mapping.in2out( horizon_id.value() ), {} );
}
if( const auto horizon_id = horizons_stack.top_horizon() )
{
horizons_stack_.set_top_horizon(
horizons_mapping.in2out( horizon_id.value() ), {} );
}
return mapping;
}

Expand Down Expand Up @@ -81,6 +93,18 @@ namespace geode
set_name( horizons_stack.name() );
copy_components( mapping, horizons_stack );
copy_stratigraphic_relationships( mapping, horizons_stack );
const auto& horizons_mapping =
mapping.at( Horizon< dimension >::component_type_static() );
if( const auto horizon_id = horizons_stack.bottom_horizon() )
{
horizons_stack_.set_bottom_horizon(
horizons_mapping.in2out( horizon_id.value() ), {} );
}
if( const auto horizon_id = horizons_stack.top_horizon() )
{
horizons_stack_.set_top_horizon(
horizons_mapping.in2out( horizon_id.value() ), {} );
}
}

template < index_t dimension >
Expand Down