Skip to content

Commit 90aec55

Browse files
author
Martin D. Weinberg
committed
Make initial small DF offset value a constant
1 parent e59180d commit 90aec55

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

exputil/massmodel_dist.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ void SphericalModelTable::setup_df(int NUM, double RA)
154154
Qmin = get_pot(pot.x[0]);
155155
dQ = (Qmax - Qmin)/(double)(dfc.num-1);
156156

157-
// foffset = -std::numeric_limits<double>::max();
158-
foffset = -1.0e42;
157+
// The small value is not critical
158+
const double FOFFSET0 = -1.0e-42;
159+
foffset = FOFFSET0;
160+
159161
dfc.Q[dfc.num-1] = Qmax;
160162
dfc.ffQ[dfc.num-1] = 0.0;
161163
fac = 1.0/(sqrt(8.0)*M_PI*M_PI);

0 commit comments

Comments
 (0)