* earliest possible time and may therefore lead to an increased
* overall memory consumption.
*
- * @author Guido Kanschat, 1999
+ * @author Guido Kanschat, 1999, 2007
*/
template<class VECTOR = dealii::Vector<double> >
class GrowingVectorMemory : public VectorMemory<VECTOR>
* certain number of vectors. The
* default is not to do this.
*/
- GrowingVectorMemory (const unsigned int initial_size = 0);
+ GrowingVectorMemory (const unsigned int initial_size = 0,
+ const bool log_statistics = true);
/**
* Destructor.
template <typename VECTOR>
-GrowingVectorMemory<VECTOR>::GrowingVectorMemory (const unsigned int initial_size)
+GrowingVectorMemory<VECTOR>::GrowingVectorMemory (const unsigned int initial_size,
+ const bool log_statistics)
:
- log_statistics(false),
+ log_statistics(log_statistics),
pool(initial_size)
{
Threads::ThreadMutex::ScopedLock lock(mutex);
namespace
{
- GrowingVectorMemory<Vector<double> > default_pool_Vector_double;
- GrowingVectorMemory<Vector<float> > default_pool_Vector_float;
- GrowingVectorMemory<BlockVector<double> > default_pool_BlockVector_double;
- GrowingVectorMemory<BlockVector<float> > default_pool_BlockVector_float;
+ GrowingVectorMemory<Vector<double> > default_pool_Vector_double(0, false);
+ GrowingVectorMemory<Vector<float> > default_pool_Vector_float(0, false);
+ GrowingVectorMemory<BlockVector<double> > default_pool_BlockVector_double(0, false);
+ GrowingVectorMemory<BlockVector<float> > default_pool_BlockVector_float(0, false);
+
template<class VECTOR>
inline