Skip to content

Commit

Permalink
Update nonthermal.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 8f499b8 commit 5bb0159
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nonthermal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ std::vector<collionrow> colliondata;
FILE *nonthermalfile{};
bool nonthermal_initialized = false;

static_assert(SF_EMIN > 0.);
constexpr double DELTA_E = (SF_EMAX - SF_EMIN) / (SFPTS - 1);

// energy grid on which solution is sampled
Expand Down Expand Up @@ -2459,8 +2460,6 @@ void solve_spencerfano(const int modelgridindex, const int timestep, const int i
"%d (nne=%g e-/cm^3)\n",
SFPTS, SF_EMIN, SF_EMAX, modelgridindex, timestep, iteration, nne);

assert_always(SF_EMIN > 0.);

nt_solution[modelgridindex].nneperion_when_solved = nne_per_ion;
nt_solution[modelgridindex].timestep_last_solved = timestep;

Expand Down

0 comments on commit 5bb0159

Please sign in to comment.