Skip to content

Commit

Permalink
Merge pull request #165 from Pressio/euler2d_schw_weno
Browse files Browse the repository at this point in the history
remove error for euler2d recEnum != FirstOrder with custom BCs
  • Loading branch information
fnrizzi committed Dec 11, 2023
2 parents 453c224 + f76bbe8 commit 6a6f4b1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/pressiodemoapps/euler2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ auto create_problem_eigen(const MeshType & meshObj,
if (!impleuler2d::valid_ic_flag<>(problemEnum, icFlag)){
throw std::runtime_error("Euler2d: invalid icFlag for the given problem enum");
}
if (recEnum != InviscidFluxReconstruction::FirstOrder){
throw std::runtime_error("Euler2d: using custom BCs is only supported with InviscidFluxReconstruction::FirstOrder");
}

using sc_t = typename MeshType::scalar_t;
using BCFunctorsHolderType = impl::CustomBCsHolder<BCsFuncL, BCsFuncF, BCsFuncR, BCsFuncB>;
Expand Down Expand Up @@ -232,9 +229,6 @@ auto create_problem_eigen(const MeshType & meshObj,
if (!impleuler2d::valid_ic_flag<>(problemEnum, icFlag)){
throw std::runtime_error("Euler2d: invalid icFlag for the given problem enum");
}
if (recEnum != InviscidFluxReconstruction::FirstOrder){
throw std::runtime_error("Euler2d: using custom BCs is only supported with InviscidFluxReconstruction::FirstOrder");
}

using sc_t = typename MeshType::scalar_t;
using BCFunctorsHolderType = impl::CustomBCsHolder<BCsFuncL, BCsFuncF, BCsFuncR, BCsFuncB>;
Expand Down

0 comments on commit 6a6f4b1

Please sign in to comment.