mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 12:30:32 +05:00
Disable homard tool on Windows.
This commit is contained in:
parent
261931b593
commit
64f450dfd1
@ -246,14 +246,21 @@ ENDIF(WIN32)
|
|||||||
|
|
||||||
|
|
||||||
SET (SALOME_SMESH_DISABLE_MG_ADAPT OFF)
|
SET (SALOME_SMESH_DISABLE_MG_ADAPT OFF)
|
||||||
|
SET (SALOME_SMESH_DISABLE_HOMARD_ADAPT OFF)
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
# On Windows temporarily disable MG_ADAPT
|
# On Windows temporarily disable MG_ADAPT
|
||||||
SET (SALOME_SMESH_DISABLE_MG_ADAPT ON)
|
SET (SALOME_SMESH_DISABLE_MG_ADAPT ON)
|
||||||
|
SET (SALOME_SMESH_DISABLE_HOMARD_ADAPT ON)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
IF(SALOME_SMESH_DISABLE_MG_ADAPT)
|
IF(SALOME_SMESH_DISABLE_MG_ADAPT)
|
||||||
ADD_DEFINITIONS(-DDISABLE_MG_ADAPT)
|
ADD_DEFINITIONS(-DDISABLE_MG_ADAPT)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
IF(SALOME_SMESH_DISABLE_HOMARD_ADAPT)
|
||||||
|
ADD_DEFINITIONS(-DDISABLE_HOMARD_ADAPT)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
IF(SALOME_SMESH_ENABLE_MEFISTO)
|
IF(SALOME_SMESH_ENABLE_MEFISTO)
|
||||||
SET(MEFISTO2D_NAME "MEFISTO_2D")
|
SET(MEFISTO2D_NAME "MEFISTO_2D")
|
||||||
ELSE(SALOME_SMESH_ENABLE_MEFISTO)
|
ELSE(SALOME_SMESH_ENABLE_MEFISTO)
|
||||||
|
@ -60,6 +60,7 @@ SET(SALOME_SMESH_USE_CGNS @SALOME_SMESH_USE_CGNS@)
|
|||||||
SET(SALOME_SMESH_USE_TBB @SALOME_SMESH_USE_TBB@)
|
SET(SALOME_SMESH_USE_TBB @SALOME_SMESH_USE_TBB@)
|
||||||
SET(SALOME_SMESH_ENABLE_MEFISTO @SALOME_SMESH_ENABLE_MEFISTO@)
|
SET(SALOME_SMESH_ENABLE_MEFISTO @SALOME_SMESH_ENABLE_MEFISTO@)
|
||||||
SET(SALOME_SMESH_DISABLE_MG_ADAPT @SALOME_SMESH_DISABLE_MG_ADAPT@)
|
SET(SALOME_SMESH_DISABLE_MG_ADAPT @SALOME_SMESH_DISABLE_MG_ADAPT@)
|
||||||
|
SET(SALOME_SMESH_DISABLE_HOMARD_ADAPT @SALOME_SMESH_DISABLE_HOMARD_ADAPT@)
|
||||||
IF(SALOME_SMESH_DISABLE_MG_ADAPT)
|
IF(SALOME_SMESH_DISABLE_MG_ADAPT)
|
||||||
LIST(APPEND SMESH_DEFINITIONS "-DDISABLE_MG_ADAPT")
|
LIST(APPEND SMESH_DEFINITIONS "-DDISABLE_MG_ADAPT")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
@ -3030,6 +3030,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
case SMESHOp::OpHomardAdapt:
|
case SMESHOp::OpHomardAdapt:
|
||||||
{
|
{
|
||||||
if ( isStudyLocked() )
|
if ( isStudyLocked() )
|
||||||
@ -3051,6 +3052,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// Adaptation - end
|
// Adaptation - end
|
||||||
case SMESHOp::OpSplitBiQuadratic:
|
case SMESHOp::OpSplitBiQuadratic:
|
||||||
case SMESHOp::OpConvertMeshToQuadratic:
|
case SMESHOp::OpConvertMeshToQuadratic:
|
||||||
@ -4289,7 +4291,9 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
#ifndef DISABLE_MG_ADAPT
|
#ifndef DISABLE_MG_ADAPT
|
||||||
createSMESHAction( SMESHOp::OpMGAdapt, "MG_ADAPT", "ICON_MG_ADAPT" );
|
createSMESHAction( SMESHOp::OpMGAdapt, "MG_ADAPT", "ICON_MG_ADAPT" );
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
createSMESHAction( SMESHOp::OpHomardAdapt, "HOMARD_ADAPT", "ICON_HOMARD_ADAPT" );
|
createSMESHAction( SMESHOp::OpHomardAdapt, "HOMARD_ADAPT", "ICON_HOMARD_ADAPT" );
|
||||||
|
#endif
|
||||||
// Adaptation - end
|
// Adaptation - end
|
||||||
|
|
||||||
createSMESHAction( SMESHOp::OpMinimumDistance, "MEASURE_MIN_DIST", "ICON_MEASURE_MIN_DIST" );
|
createSMESHAction( SMESHOp::OpMinimumDistance, "MEASURE_MIN_DIST", "ICON_MEASURE_MIN_DIST" );
|
||||||
@ -4333,7 +4337,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
meshId = createMenu( tr( "MEN_MESH" ), -1, 70, 10 ),
|
meshId = createMenu( tr( "MEN_MESH" ), -1, 70, 10 ),
|
||||||
ctrlId = createMenu( tr( "MEN_CTRL" ), -1, 60, 10 ),
|
ctrlId = createMenu( tr( "MEN_CTRL" ), -1, 60, 10 ),
|
||||||
modifyId = createMenu( tr( "MEN_MODIFY" ), -1, 40, 10 ),
|
modifyId = createMenu( tr( "MEN_MODIFY" ), -1, 40, 10 ),
|
||||||
#ifndef DISABLE_MG_ADAPT
|
#if !defined(DISABLE_MG_ADAPT) || !defined(DISABLE_HOMARD_ADAPT)
|
||||||
adaptId = createMenu( tr( "MEN_ADAPT" ), -1, 80, 10 ),
|
adaptId = createMenu( tr( "MEN_ADAPT" ), -1, 80, 10 ),
|
||||||
#endif
|
#endif
|
||||||
measureId = createMenu( tr( "MEN_MEASURE" ), -1, 50, 10 ),
|
measureId = createMenu( tr( "MEN_MEASURE" ), -1, 50, 10 ),
|
||||||
@ -4510,7 +4514,9 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
#ifndef DISABLE_MG_ADAPT
|
#ifndef DISABLE_MG_ADAPT
|
||||||
createMenu( SMESHOp::OpMGAdapt, adaptId, -1 );
|
createMenu( SMESHOp::OpMGAdapt, adaptId, -1 );
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
createMenu( SMESHOp::OpHomardAdapt, adaptId, -1 );
|
createMenu( SMESHOp::OpHomardAdapt, adaptId, -1 );
|
||||||
|
#endif
|
||||||
// Adaptation - end
|
// Adaptation - end
|
||||||
|
|
||||||
createMenu( SMESHOp::OpMinimumDistance, measureId, -1 );
|
createMenu( SMESHOp::OpMinimumDistance, measureId, -1 );
|
||||||
@ -4657,11 +4663,15 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
createTool( SMESHOp::OpPatternMapping, modifyTb );
|
createTool( SMESHOp::OpPatternMapping, modifyTb );
|
||||||
|
|
||||||
// Adaptation - begin
|
// Adaptation - begin
|
||||||
#ifndef DISABLE_MG_ADAPT
|
#if !defined(DISABLE_MG_ADAPT) || !defined(DISABLE_HOMARD_ADAPT)
|
||||||
int adaptTb = createTool( tr( "TB_ADAPTATION" ), QString( "SMESHAdaptationToolbar" ) ) ;
|
int adaptTb = createTool( tr( "TB_ADAPTATION" ), QString( "SMESHAdaptationToolbar" ) ) ;
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_MG_ADAPT
|
||||||
createTool( SMESHOp::OpMGAdapt, adaptTb );
|
createTool( SMESHOp::OpMGAdapt, adaptTb );
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
createTool( SMESHOp::OpHomardAdapt, adaptTb );
|
createTool( SMESHOp::OpHomardAdapt, adaptTb );
|
||||||
|
#endif
|
||||||
// Adaptation - end
|
// Adaptation - end
|
||||||
|
|
||||||
int measuremTb = createTool( tr( "TB_MEASUREM" ), QString( "SMESHMeasurementsToolbar" ) ) ;
|
int measuremTb = createTool( tr( "TB_MEASUREM" ), QString( "SMESHMeasurementsToolbar" ) ) ;
|
||||||
@ -4749,7 +4759,9 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
#ifndef DISABLE_MG_ADAPT
|
#ifndef DISABLE_MG_ADAPT
|
||||||
createPopupItem( SMESHOp::OpMGAdapt, OB, mesh );
|
createPopupItem( SMESHOp::OpMGAdapt, OB, mesh );
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
createPopupItem( SMESHOp::OpHomardAdapt, OB, mesh );
|
createPopupItem( SMESHOp::OpHomardAdapt, OB, mesh );
|
||||||
|
#endif
|
||||||
popupMgr()->insert( separator(), -1, 0 );
|
popupMgr()->insert( separator(), -1, 0 );
|
||||||
// Adaptation - end
|
// Adaptation - end
|
||||||
|
|
||||||
|
@ -127,10 +127,12 @@ SALOME::GenericObj_ptr SMESH_Gen_i::Adaptation( const char* adaptationType)
|
|||||||
return anObj._retn();
|
return anObj._retn();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
if (!strcmp(adaptationType, "Uniform")) {
|
if (!strcmp(adaptationType, "Uniform")) {
|
||||||
return CreateHOMARD_ADAPT();
|
return CreateHOMARD_ADAPT();
|
||||||
}
|
}
|
||||||
return SMESH::MG_ADAPT_OBJECT_ptr();
|
#endif
|
||||||
|
return SALOME::GenericObj_ptr();
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -981,7 +981,7 @@ SMESHHOMARD::HOMARD_Cas_ptr HOMARD_Gen_i::GetCase()
|
|||||||
return SMESHHOMARD::HOMARD_Cas::_duplicate(myCase);
|
return SMESHHOMARD::HOMARD_Cas::_duplicate(myCase);
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
HOMARD_Iteration_i* HOMARD_Gen_i::GetIteration(int numIter)
|
HOMARD_Iteration_i* HOMARD_Gen_i::GetIteration(CORBA::Long numIter)
|
||||||
{
|
{
|
||||||
if (numIter == 0) {
|
if (numIter == 0) {
|
||||||
ASSERT(myIteration0);
|
ASSERT(myIteration0);
|
||||||
@ -1778,6 +1778,7 @@ CORBA::Long HOMARD_Gen_i::ComputeCAO()
|
|||||||
// A. Prealable
|
// A. Prealable
|
||||||
// A.1. Bases
|
// A.1. Bases
|
||||||
int codret = 0;
|
int codret = 0;
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
// A.2. Le sous-répertoire de l'iteration en cours de traitement
|
// A.2. Le sous-répertoire de l'iteration en cours de traitement
|
||||||
char* DirCompute = myIteration1->GetDirName();
|
char* DirCompute = myIteration1->GetDirName();
|
||||||
// A.3. Le maillage résultat de l'iteration en cours de traitement
|
// A.3. Le maillage résultat de l'iteration en cours de traitement
|
||||||
@ -1869,7 +1870,7 @@ CORBA::Long HOMARD_Gen_i::ComputeCAO()
|
|||||||
// de savoir le faire avec MEDCoupling
|
// de savoir le faire avec MEDCoupling
|
||||||
MESSAGE (". Transfert des coordonnées");
|
MESSAGE (". Transfert des coordonnées");
|
||||||
codret = ComputeCAObis();
|
codret = ComputeCAObis();
|
||||||
|
#endif
|
||||||
return codret;
|
return codret;
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -1981,6 +1982,7 @@ CORBA::Long HOMARD_Gen_i::ComputeCAObis()
|
|||||||
//=============================================================================
|
//=============================================================================
|
||||||
char* HOMARD_Gen_i::CreateDirNameIter(const char* nomrep, CORBA::Long num)
|
char* HOMARD_Gen_i::CreateDirNameIter(const char* nomrep, CORBA::Long num)
|
||||||
{
|
{
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
MESSAGE ("CreateDirNameIter : nomrep ="<< nomrep << ", num = "<<num);
|
MESSAGE ("CreateDirNameIter : nomrep ="<< nomrep << ", num = "<<num);
|
||||||
// On verifie que le répertoire parent existe
|
// On verifie que le répertoire parent existe
|
||||||
int codret = CHDIR(nomrep);
|
int codret = CHDIR(nomrep);
|
||||||
@ -2051,12 +2053,16 @@ char* HOMARD_Gen_i::CreateDirNameIter(const char* nomrep, CORBA::Long num)
|
|||||||
MESSAGE (". On retourne dans nomDirActuel = " << nomDirActuel);
|
MESSAGE (". On retourne dans nomDirActuel = " << nomDirActuel);
|
||||||
CHDIR(nomDirActuel.c_str());
|
CHDIR(nomDirActuel.c_str());
|
||||||
return CORBA::string_dup(DirName.c_str());
|
return CORBA::string_dup(DirName.c_str());
|
||||||
|
#else
|
||||||
|
return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// Calcul d'une iteration : gestion du répertoire de calcul
|
// Calcul d'une iteration : gestion du répertoire de calcul
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
char* HOMARD_Gen_i::ComputeDirManagement()
|
char* HOMARD_Gen_i::ComputeDirManagement()
|
||||||
{
|
{
|
||||||
|
#ifndef DISABLE_HOMARD_ADAPT
|
||||||
MESSAGE ("ComputeDirManagement : répertoires pour le calcul");
|
MESSAGE ("ComputeDirManagement : répertoires pour le calcul");
|
||||||
|
|
||||||
//Si le sous-répertoire existe :
|
//Si le sous-répertoire existe :
|
||||||
@ -2149,6 +2155,9 @@ char* HOMARD_Gen_i::ComputeDirManagement()
|
|||||||
}
|
}
|
||||||
|
|
||||||
return CORBA::string_dup(DirCompute.str().c_str());
|
return CORBA::string_dup(DirCompute.str().c_str());
|
||||||
|
#else
|
||||||
|
return "";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
// Calcul d'une iteration : gestion du répertoire de calcul de l'iteration parent
|
// Calcul d'une iteration : gestion du répertoire de calcul de l'iteration parent
|
||||||
|
Loading…
Reference in New Issue
Block a user