]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To improve memory size calculation
authorapo <apo@opencascade.com>
Thu, 18 Jan 2007 08:19:58 +0000 (08:19 +0000)
committerapo <apo@opencascade.com>
Thu, 18 Jan 2007 08:19:58 +0000 (08:19 +0000)
src/VISU_I/VISU_GaussPoints_i.cc
src/VISU_I/VISU_ScalarMap_i.cc

index 0410404d364e40f6e28089ec5671cb675a84fd8c..b53ba51942ee8f2c61ffd213ee9a4be1664d777b 100644 (file)
@@ -231,19 +231,7 @@ CORBA::Float
 VISU::GaussPoints_i
 ::GetMemorySize()
 {
-  CORBA::Float aMemorySize = TSuperClass::GetMemorySize();
-
-  // To calculate memory used by VISU Converter
-  VISU::Result_i::TInput* anInput = GetCResult()->GetInput();
-  CORBA::Float aSize = anInput->GetTimeStampOnGaussPtsSize(GetCMeshName(),
-                                                          GetTEntity(),
-                                                          GetCFieldName(),
-                                                          GetTimeStampNumber());
-  // Convert to mega bytes
-  aMemorySize += aSize / (1024.0 * 1024.0);
-  //cout<<"GaussPoints_i::GetMemorySize - "<<this<<"; anInput = "<<aMemorySize<<endl;
-  //cout<<endl;
-  return aMemorySize;
+  return TSuperClass::GetMemorySize();
 }
 
 //----------------------------------------------------------------------------
index 983853c15e7fabdeaad072cd5d75e94313171875..36969f5389161fe64cefd51fbc42d2b00eb6b9f0 100644 (file)
@@ -176,19 +176,7 @@ CORBA::Float
 VISU::ScalarMap_i
 ::GetMemorySize()
 {
-  CORBA::Float aMemorySize = TSuperClass::GetMemorySize();
-
-  // To calculate memory used by VISU Converter
-  VISU::Result_i::TInput* anInput = GetCResult()->GetInput();
-  CORBA::Float aSize = anInput->GetTimeStampOnMeshSize(GetCMeshName(),
-                                                      GetTEntity(),
-                                                      GetCFieldName(),
-                                                      GetTimeStampNumber());
-  // Convert to mega bytes
-  aMemorySize += aSize / (1024.0 * 1024.0);
-  //cout<<"ScalarMap_i::GetMemorySize - "<<this<<"; anInput = "<<aMemorySize<<endl;
-  //cout<<endl;
-  return aMemorySize;
+  return TSuperClass::GetMemorySize();
 }
 
 //----------------------------------------------------------------------------