Skip to content

Commit

Permalink
Fix bug introduced by rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Mar 15, 2024
1 parent 9a7b11e commit d0a73e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/ThermalOperator.templates.hh
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,15 @@ void ThermalOperator<dim, use_table, p_order, fe_degree, MaterialStates,
unsigned int constexpr solid =
static_cast<unsigned int>(MaterialStates::State::solid);

if constexpr (std::is_same_v<MemorySpaceType, SolidLiquid>)
if constexpr (std::is_same_v<MaterialStates, SolidLiquid>)
{
// We just nee to fill state_ratios with 1.
for (unsigned int n = 0; n < face_state_ratios[solid].size(); ++n)
{
face_state_ratios[solid][n] = 1.;
}
}
else if constexpr (std::is_same_v<MemorySpaceType, SolidLiquid>)
else if constexpr (std::is_same_v<MaterialStates, SolidLiquid>)
{
unsigned int constexpr liquid =
static_cast<unsigned int>(MaterialStates::State::liquid);
Expand Down Expand Up @@ -389,7 +389,7 @@ void ThermalOperator<dim, use_table, p_order, fe_degree, MaterialStates,
face_state_ratios[solid][n] = 1. - face_state_ratios[liquid][n];
}
}
else if constexpr (std::is_same_v<MemorySpaceType, SolidLiquidPowder>)
else if constexpr (std::is_same_v<MaterialStates, SolidLiquidPowder>)
{
unsigned int constexpr liquid =
static_cast<unsigned int>(MaterialStates::State::liquid);
Expand Down

0 comments on commit d0a73e4

Please sign in to comment.