Salome HOME
reduce memory limit
authoreap <eap@opencascade.com>
Tue, 10 May 2011 08:27:01 +0000 (08:27 +0000)
committereap <eap@opencascade.com>
Tue, 10 May 2011 08:27:01 +0000 (08:27 +0000)
-      limit = limit * 2;
+      limit = int ( limit * 1.5 );

src/SMDS/SMDS_Mesh.cxx

index 8225a5ec730873d3e3940e2b692e6734a1404828..0b640de909a15a4a3a042a67e281ffd9363109c1 100644 (file)
@@ -95,7 +95,7 @@ int SMDS_Mesh::CheckMemory(const bool doNotRaise) throw (std::bad_alloc)
     if ( limit < 20 )
       limit = 20;
     else
-      limit = limit * 2;
+      limit = int ( limit * 1.5 );
     MESSAGE ( "SMDS_Mesh::CheckMemory() memory limit = " << limit << " MB" );
   }