From 05a4d587155a4bbe2efb14a5969cf6c977eb740d Mon Sep 17 00:00:00 2001 From: guido Date: Tue, 8 Sep 1998 14:05:48 +0000 Subject: [PATCH] PrimitiveVectorMemory does not require size anymore git-svn-id: https://svn.dealii.org/trunk@588 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector_memory.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/deal.II/lac/include/lac/vector_memory.h b/deal.II/lac/include/lac/vector_memory.h index 7b670c2f17..35f497cdc8 100644 --- a/deal.II/lac/include/lac/vector_memory.h +++ b/deal.II/lac/include/lac/vector_memory.h @@ -40,28 +40,24 @@ class VectorMemory { /** * Simple memory management. This memory class is just made for - * tests. It requires the vector to have a constructor with integer - * parameter indicating the size. It just allocates and deletes + * tests. It just allocates and deletes * vectors as needed from the global heap, i.e. performs no * specially adapted actions to the purpose of this class. */ template class PrimitiveVectorMemory : public VectorMemory { - const unsigned int size; public: /** * Constructor. - * #sz# is the length of vectors to - * be generated by alloc. */ - PrimitiveVectorMemory (const unsigned int sz) : size(sz) {}; + PrimitiveVectorMemory () {}; /** - * Allocate a vector of the given size + * Allocate a vector * from the global heap. */ virtual Vector* alloc() { - return new Vector(size); + return new Vector(); }; /** @@ -78,3 +74,4 @@ class PrimitiveVectorMemory : public VectorMemory { /* end of #ifndef __vector_memory_H */ #endif /*---------------------------- vector_memory.h ---------------------------*/ + -- 2.39.5