Skip to content

Commit

Permalink
nonthermal: remove unused test code to fix cppcheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Oct 28, 2024
1 parent e018e02 commit 3d917dd
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions nonthermal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,6 @@ namespace nonthermal {

namespace {

// THESE OPTIONS ARE USED TO TEST THE SF SOLVER
// Compare to Kozma & Fransson (1992) pure-oxygen plasma, nne = 1e8, x_e = 0.01
// #define yscalefactoroverride(mgi) (1e10)
// #define get_nnion_tot(x) (1e10)
// #define get_nnion(modelgridindex, element, ion) get_nnion_override(modelgridindex, element, ion)
// #define grid::get_nne(x) (1e8)
// #define SFPTS 10000 // number of energy points in the Spencer-Fano solution vector
// #define SF_EMAX 3000. // eV
// #define SF_EMIN 1. // eV
//
// double get_nnion_override(const int modelgridindex, const int element, const int ion)
// Fake the composition to test the NT solver
// {
// const double nntot = get_nnion_tot(modelgridindex);
// if (get_atomicnumber(element) == 8)
// {
// const int ionstage = get_ionstage(element, ion);
// if (ionstage == 1)
// return 0.99 * nntot;
// else if (ionstage == 2)
// return 0.01 * nntot;
// }
// return 0.;
// }

// minimum number fraction of the total population to include in SF solution
constexpr double minionfraction = 1.e-8;

Expand Down

0 comments on commit 3d917dd

Please sign in to comment.