Skip to content

Commit

Permalink
Fix linking error when orange is not the main geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Sep 26, 2023
1 parent c41d140 commit c5d9c82
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/celeritas/global/CoreParams.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,10 @@ CoreParams::CoreParams(Input input) : input_(std::move(input))
input_.output_reg->insert(
std::make_shared<ActionRegistryOutput>(input_.action_reg));

if (auto orange_geo
= std::dynamic_pointer_cast<OrangeParams const>(input_.geometry))
{
input_.output_reg->insert(
std::make_shared<OrangeParamsOutput>(orange_geo));
}
#if CELERITAS_CORE_GEO == CELERITAS_CORE_GEO_ORANGE
input_.output_reg->insert(
std::make_shared<OrangeParamsOutput>(input_.geometry));
#endif

CELER_LOG(status) << "Celeritas core setup complete";

Expand Down

0 comments on commit c5d9c82

Please sign in to comment.