* Maximal size of memory to be used by the algorithm (in Megabytes).
* Negative value means not to use this option
*/
- void SetMaximumMemory(in short MB) raises (SALOME::SALOME_Exception);
- short GetMaximumMemory();
+ void SetMaximumMemory(in long MB) raises (SALOME::SALOME_Exception);
+ long GetMaximumMemory();
/*!
* Initial size of memory to be used by the algorithm (in Megabytes) in
* automatic memory adjustment mode. Default is zero.
* Negative value means not to use this option
*/
- void SetInitialMemory(in short MB) raises (SALOME::SALOME_Exception);
- short GetInitialMemory();
+ void SetInitialMemory(in long MB) raises (SALOME::SALOME_Exception);
+ long GetInitialMemory();
/*!
* Optimization level: 0-none, 1-light, 2-medium, 3-strong. Default is medium
*/
//function : SetMaximumMemory
//=======================================================================
-void GHS3DPlugin_Hypothesis::SetMaximumMemory(short MB)
+void GHS3DPlugin_Hypothesis::SetMaximumMemory(int MB)
{
if ( myMaximumMemory != MB ) {
myMaximumMemory = MB;
// * automatic memory adjustment mode. Default is zero
//=======================================================================
-short GHS3DPlugin_Hypothesis::GetMaximumMemory() const
+int GHS3DPlugin_Hypothesis::GetMaximumMemory() const
{
return myMaximumMemory;
}
//function : SetInitialMemory
//=======================================================================
-void GHS3DPlugin_Hypothesis::SetInitialMemory(short MB)
+void GHS3DPlugin_Hypothesis::SetInitialMemory(int MB)
{
if ( myInitialMemory != MB ) {
myInitialMemory = MB;
//function : GetInitialMemory
//=======================================================================
-short GHS3DPlugin_Hypothesis::GetInitialMemory() const
+int GHS3DPlugin_Hypothesis::GetInitialMemory() const
{
return myInitialMemory;
}
#include <windows.h>
#endif
-short GHS3DPlugin_Hypothesis::DefaultMaximumMemory()
+int GHS3DPlugin_Hypothesis::DefaultMaximumMemory()
{
#ifndef WIN32
struct sysinfo si;
//function : DefaultInitialMemory
//=======================================================================
-short GHS3DPlugin_Hypothesis::DefaultInitialMemory()
+int GHS3DPlugin_Hypothesis::DefaultInitialMemory()
{
return DefaultMaximumMemory();
}
// Default memory is defined at ghs3d installation but it may be not enough,
// so allow to use about all available memory
if ( m ) {
- short aMaximumMemory = hyp ? hyp->myMaximumMemory : -1;
+ int aMaximumMemory = hyp ? hyp->myMaximumMemory : -1;
cmd += " -m ";
if ( aMaximumMemory < 0 )
cmd += DefaultMaximumMemory();
cmd += aMaximumMemory;
}
if ( M && !useBndRecovery ) {
- short aInitialMemory = hyp ? hyp->myInitialMemory : -1;
+ int aInitialMemory = hyp ? hyp->myInitialMemory : -1;
cmd += " -M ";
if ( aInitialMemory > 0 )
cmd += aInitialMemory;
/*!
* Maximal size of memory to be used by the algorithm (in Megabytes)
*/
- void SetMaximumMemory(short MB);
- short GetMaximumMemory() const;
+ void SetMaximumMemory(int MB);
+ int GetMaximumMemory() const;
/*!
* Initial size of memory to be used by the algorithm (in Megabytes) in
* automatic memory adjustment mode. Default is zero
*/
- void SetInitialMemory(short MB);
- short GetInitialMemory() const;
+ void SetInitialMemory(int MB);
+ int GetInitialMemory() const;
/*!
* Optimization level: 0-none, 1-light, 2-medium, 3-standard+, 4-strong. Default is medium
*/
static bool DefaultMeshHoles();
static bool DefaultToMakeGroupsOfDomains();
- static short DefaultMaximumMemory();
- static short DefaultInitialMemory();
+ static int DefaultMaximumMemory();
+ static int DefaultInitialMemory();
static short DefaultOptimizationLevel();
static std::string DefaultWorkingDirectory();
static bool DefaultKeepFiles();
bool myToMeshHoles;
bool myToMakeGroupsOfDomains;
- short myMaximumMemory;
- short myInitialMemory;
+ int myMaximumMemory;
+ int myInitialMemory;
short myOptimizationLevel;
bool myKeepFiles;
std::string myWorkingDirectory;
//function : SetMaximumMemory
//=======================================================================
-void GHS3DPlugin_Hypothesis_i::SetMaximumMemory(CORBA::Short MB)
+void GHS3DPlugin_Hypothesis_i::SetMaximumMemory(CORBA::Long MB)
throw ( SALOME::SALOME_Exception )
{
if ( MB == 0 )
//function : GetMaximumMemory
//=======================================================================
-CORBA::Short GHS3DPlugin_Hypothesis_i::GetMaximumMemory()
+CORBA::Long GHS3DPlugin_Hypothesis_i::GetMaximumMemory()
{
ASSERT(myBaseImpl);
return this->GetImpl()->GetMaximumMemory();
//function : SetInitialMemory
//=======================================================================
-void GHS3DPlugin_Hypothesis_i::SetInitialMemory(CORBA::Short MB)
+void GHS3DPlugin_Hypothesis_i::SetInitialMemory(CORBA::Long MB)
throw ( SALOME::SALOME_Exception )
{
if ( MB == 0 )
//function : GetInitialMemory
//=======================================================================
-CORBA::Short GHS3DPlugin_Hypothesis_i::GetInitialMemory()
+CORBA::Long GHS3DPlugin_Hypothesis_i::GetInitialMemory()
{
ASSERT(myBaseImpl);
return this->GetImpl()->GetInitialMemory();
/*!
* Maximal size of memory to be used by the algorithm (in Megabytes)
*/
- void SetMaximumMemory(CORBA::Short MB) throw ( SALOME::SALOME_Exception );
- CORBA::Short GetMaximumMemory();
+ void SetMaximumMemory(CORBA::Long MB) throw ( SALOME::SALOME_Exception );
+ CORBA::Long GetMaximumMemory();
/*!
* Initial size of memory to be used by the algorithm (in Megabytes) in
* automatic memory adjustment mode. Default is zero
*/
- void SetInitialMemory(CORBA::Short MB) throw ( SALOME::SALOME_Exception );
- CORBA::Short GetInitialMemory();
+ void SetInitialMemory(CORBA::Long MB) throw ( SALOME::SALOME_Exception );
+ CORBA::Long GetInitialMemory();
/*!
* Optimization level: 0-none, 1-light, 2-medium, 3-strong. Default is medium
*/