We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac4b810 + b774886 commit aeccbd3Copy full SHA for aeccbd3
2 files changed
exputil/ExpDeproj.cc
@@ -48,11 +48,6 @@ double ExpDeproj::density(double R)
48
49
double ExpDeproj::mass(double R)
50
{
51
- // Initialize precomputed arrays?
52
- if (mv.size() == 0) {
53
- initialize();
54
- }
55
-
56
if (R < 0) {
57
throw std::invalid_argument("R must be non-negative");
58
}
include/ExpDeproj.H
@@ -15,7 +15,7 @@ class ExpDeproj
15
16
public:
17
//! Constructor
18
- ExpDeproj(int n=4000) : ngrid(n) {}
+ ExpDeproj(int n=4000) : ngrid(n) { initialize(); }
19
20
//! Destructor
21
virtual ~ExpDeproj() {}
0 commit comments