diff options
-rw-r--r-- | Carpet/LoopControl/src/loopcontrol.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Carpet/LoopControl/src/loopcontrol.cc b/Carpet/LoopControl/src/loopcontrol.cc index ad2c30b76..26b86a50f 100644 --- a/Carpet/LoopControl/src/loopcontrol.cc +++ b/Carpet/LoopControl/src/loopcontrol.cc @@ -229,7 +229,6 @@ namespace { template<typename T> class mempool { - const int nobjects = 1000000 / sizeof(T); T* next; int nleft; public: @@ -239,7 +238,7 @@ namespace { void* allocate() { if (nleft < 1) { - nleft = nobjects; + nleft = 1000000 / sizeof(T); next = (T*)new char[nleft * sizeof(T)]; } assert(nleft >= 1); |