Skip to content

Commit

Permalink
use amrex::Error instead of std::runtime_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 27, 2024
1 parent 600359a commit f9b03b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networks/metal_chem/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -4166,7 +4166,7 @@ std::pair<Real, Real> compute_Semenov_Tdust(Real Tgas, const Array1D<Real, 0, Nu
}

if (iterr > 1000) {
throw std::runtime_error("Maximum iterations reached in dust temperature NR-solver. Tgas = " +
amrex::Error("Maximum iterations reached in dust temperature NR-solver. Tgas = " +
std::to_string(Tgas) +
", Tdold_start = " +
std::to_string(krome_Semenov_Tdust) +
Expand Down

0 comments on commit f9b03b9

Please sign in to comment.