]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Optimize memory needs on pushBackSilent
authorageay <ageay>
Wed, 19 Jun 2013 05:55:08 +0000 (05:55 +0000)
committerageay <ageay>
Wed, 19 Jun 2013 05:55:08 +0000 (05:55 +0000)
src/MEDCoupling/MEDCouplingMemArray.txx

index 39030643deffd907e9d8cd34c3ea5b0963671ad3..71be0a297c8e51e4908267e03c109c32631948a3 100644 (file)
@@ -101,7 +101,7 @@ namespace ParaMEDMEM
     T *pointer=_pointer.getPointer();
     while(first!=last)
       {
-        if(_nb_of_elem>=_nb_of_elem_alloc || _nb_of_elem==0)
+        if(_nb_of_elem>=_nb_of_elem_alloc)
           {
             reserve(_nb_of_elem_alloc>0?2*_nb_of_elem_alloc:1);
             pointer=_pointer.getPointer();