diff --git a/resources/SalomeApp.xml.in b/resources/SalomeApp.xml.in
index 3c928f1d7..8009476ad 100644
--- a/resources/SalomeApp.xml.in
+++ b/resources/SalomeApp.xml.in
@@ -98,12 +98,16 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ADAPT_I/ADAPT_Gen_i.cxx b/src/ADAPT_I/ADAPT_Gen_i.cxx
index 6b055fd62..eb58aeee3 100644
--- a/src/ADAPT_I/ADAPT_Gen_i.cxx
+++ b/src/ADAPT_I/ADAPT_Gen_i.cxx
@@ -5317,13 +5317,13 @@ void ADAPT_Gen_i::SetPreferences( )
{
std::istringstream chainebis( chaine ) ;
// 3.2.1. Les publications
- if ( chaine2 == "publish_mesh_in" ) { chainebis >> PublisMeshIN ; }
- if ( chaine2 == "publish_mesh_out" ) { chainebis >> PublisMeshOUT ; }
+ if ( chaine2 == "homard_publish_mesh_in" ) { chainebis >> PublisMeshIN ; }
+ if ( chaine2 == "homard_publish_mesh_out" ) { chainebis >> PublisMeshOUT ; }
// 3.2.2. Les maximum pour YACS
- if ( chaine2 == "yacs_max_iter" ) { chainebis >> YACSMaxIter ; }
- if ( chaine2 == "yacs_max_node" ) { chainebis >> YACSMaxNode ; }
- if ( chaine2 == "yacs_max_elem" ) { chainebis >> YACSMaxElem ; }
- if ( chaine2 == "yacs_type_test" ) { YACSTypeTestchaine = chaine ; }
+ if ( chaine2 == "homard_yacs_max_iter" ) { chainebis >> YACSMaxIter ; }
+ if ( chaine2 == "homard_yacs_max_node" ) { chainebis >> YACSMaxNode ; }
+ if ( chaine2 == "homard_yacs_max_elem" ) { chainebis >> YACSMaxElem ; }
+ if ( chaine2 == "homard_yacs_type_test" ) { YACSTypeTestchaine = chaine ; }
}
}
}
diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx
index c653ff1ac..5056902dd 100644
--- a/src/SMESHGUI/SMESHGUI.cxx
+++ b/src/SMESHGUI/SMESHGUI.cxx
@@ -5763,33 +5763,50 @@ void SMESHGUI::createPreferences()
int adaptTab = addPreference( tr( "ADAPT_PREF_TAB_GENERAL" ) );
int bloc, pref ;
// Refinement with HOMARD
- bloc = addPreference( tr( "ADAPT_PREF_PUBLICATION" ), adaptTab );
+ bloc = addPreference( tr( "ADAPT_PREF_HOMARD_PUBLICATION" ), adaptTab );
setPreferenceProperty( bloc, "columns", 1 );
- pref = addPreference( tr( "ADAPT_PREF_PUBLICATION_MAILLAGE_IN" ), bloc, LightApp_Preferences::Bool, "HOMARD", "publish_mesh_in" );
- pref = addPreference( tr( "ADAPT_PREF_PUBLICATION_MAILLAGE_OUT" ), bloc, LightApp_Preferences::Bool, "HOMARD", "publish_mesh_out" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_PUBLICATION_MAILLAGE_IN" ), bloc, LightApp_Preferences::Bool, "HOMARD", "homard_publish_mesh_in" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_PUBLICATION_MAILLAGE_OUT" ), bloc, LightApp_Preferences::Bool, "HOMARD", "homard_publish_mesh_out" );
- bloc = addPreference( tr( "ADAPT_PREF_YACS_MAX" ), adaptTab );
+ // YACS with HOMARD
+ bloc = addPreference( tr( "ADAPT_PREF_HOMARD_YACS" ), adaptTab );
setPreferenceProperty( bloc, "columns", 1 );
- pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_ITER" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_iter" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_YACS_MAX_ITER" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "homard_yacs_max_iter" );
setPreferenceProperty( pref, "min", 0 );
setPreferenceProperty( pref, "max", 100000000 );
setPreferenceProperty( pref, "step", 1 );
- pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_NODE" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_node" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_YACS_MAX_NODE" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "homard_yacs_max_node" );
setPreferenceProperty( pref, "min", 0 );
setPreferenceProperty( pref, "max", 100000000 );
setPreferenceProperty( pref, "step", 1000 );
- pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_ELEM" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_elem" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_YACS_MAX_ELEM" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "homard_yacs_max_elem" );
setPreferenceProperty( pref, "min", 0 );
setPreferenceProperty( pref, "max", 100000000 );
setPreferenceProperty( pref, "step", 1000 );
- bloc = addPreference( tr( "ADAPT_PREF_YACS_CONVERGENCE" ), adaptTab );
- setPreferenceProperty( bloc, "columns", 1 );
- pref = addPreference( tr( "ADAPT_PREF_YACS_TYPE_TEST" ), bloc, LightApp_Preferences::Selector, "HOMARD", "yacs_type_test" );
+ pref = addPreference( tr( "ADAPT_PREF_HOMARD_YACS_TYPE_CONVERGENCE" ), bloc, LightApp_Preferences::Selector, "HOMARD", "homard_yacs_type_test" );
QStringList aListOfTypeTest;
- aListOfTypeTest << "None";
+ aListOfTypeTest << tr( "ADAPT_PREF_NONE" );
aListOfTypeTest << "VTest > VRef";
aListOfTypeTest << "VTest < VRef";
setPreferenceProperty( pref, "strings", aListOfTypeTest );
+
+ // MG-Adapt
+ bloc = addPreference( tr( "ADAPT_PREF_MG_ADAPT" ), adaptTab );
+ setPreferenceProperty( bloc, "columns", 1 );
+ pref = addPreference( tr( "ADAPT_PREF_MG_ADAPT_FILE_MAILLAGE_OUT" ), bloc, LightApp_Preferences::Bool, "HOMARD", "mg_adapt_file_mesh_out" );
+ pref = addPreference( tr( "ADAPT_PREF_MG_ADAPT_PUBLICATION_MAILLAGE_OUT" ), bloc, LightApp_Preferences::Bool, "HOMARD", "mg_adapt_publish_mesh_out" );
+ pref = addPreference( tr( "ADAPT_PREF_MG_ADAPT_SIZE_MAP" ), bloc, LightApp_Preferences::Selector, "HOMARD", "mg_adapt_size_map" );
+ QStringList aListOfSizeMap;
+ aListOfSizeMap << tr( "ADAPT_PREF_MG_ADAPT_SIZE_MAP_LOCAL" );
+ aListOfSizeMap << tr( "ADAPT_PREF_MG_ADAPT_SIZE_MAP_BACKGROUND" );
+ aListOfSizeMap << tr( "ADAPT_PREF_NONE" );;
+ setPreferenceProperty( pref, "strings", aListOfSizeMap );
+ pref = addPreference( tr( "ADAPT_PREF_MG_ADAPT_TIME_STEP" ), bloc, LightApp_Preferences::Selector, "HOMARD", "mg_adapt_time_step" );
+ QStringList aListOfTimeStep;
+ aListOfTimeStep << tr( "ADAPT_PREF_NONE" );
+ aListOfTimeStep << tr( "ADAPT_PREF_MG_ADAPT_TIME_STEP_LAST" );
+ aListOfTimeStep << tr( "ADAPT_PREF_MG_ADAPT_TIME_STEP_C" );;
+ setPreferenceProperty( pref, "strings", aListOfTimeStep );
// Adaptation - end
}
diff --git a/src/SMESHGUI/SMESHGUI_AdaptDlg.cxx b/src/SMESHGUI/SMESHGUI_AdaptDlg.cxx
index 2e48cc2aa..e48ed4d85 100644
--- a/src/SMESHGUI/SMESHGUI_AdaptDlg.cxx
+++ b/src/SMESHGUI/SMESHGUI_AdaptDlg.cxx
@@ -111,32 +111,32 @@ void SMESHGUI_AdaptDlg::action (int theCommandID)
// INFOS ("Enregistrement de LanguageShort = " << _LanguageShort.toStdString().c_str() );
// // adaptGen->SetLanguageShort(_LanguageShort.toStdString().c_str());
//
-// // B.2. Les publications
+// // B.2. Les publications avec HOMARD
// bool publish_mesh ;
//
-// publish_mesh = resMgr->booleanValue("HOMARD", "publish_mesh_in", false );
+// publish_mesh = resMgr->booleanValue("HOMARD", "homard_publish_mesh_in", false );
// if ( publish_mesh ) { _PublisMeshIN = 1 ; }
// else { _PublisMeshIN = 0 ; }
//
-// publish_mesh = resMgr->booleanValue("HOMARD", "publish_mesh_out", false );
+// publish_mesh = resMgr->booleanValue("HOMARD", "homard_publish_mesh_out", false );
// if ( publish_mesh ) { _PublisMeshOUT = 1 ; }
// else { _PublisMeshOUT = 0 ; }
//
// INFOS ("Enregistrement de PublisMeshIN = " << _PublisMeshIN<<", PublisMeshOUT = "<< _PublisMeshOUT);
// // adaptGen->SetPublisMesh(_PublisMeshIN, _PublisMeshOUT);
//
-// // B.3. Les maximum pour YACS
+// // B.3. Les maximum pour YACS avec HOMARD
//
-// _YACSMaxIter = resMgr->integerValue("HOMARD", "yacs_max_iter", 0 );
-// _YACSMaxNode = resMgr->integerValue("HOMARD", "yacs_max_node", 0 );
-// _YACSMaxElem = resMgr->integerValue("HOMARD", "yacs_max_elem", 0 );
+// _YACSMaxIter = resMgr->integerValue("HOMARD", "homard_yacs_max_iter", 0 );
+// _YACSMaxNode = resMgr->integerValue("HOMARD", "homard_yacs_max_node", 0 );
+// _YACSMaxElem = resMgr->integerValue("HOMARD", "homard_yacs_max_elem", 0 );
//
// INFOS ("Enregistrement de YACSMaxIter = " << _YACSMaxIter<<", YACSMaxNode = "<< _YACSMaxNode<<", YACSMaxElem = "<< _YACSMaxElem);
// // adaptGen->SetYACSMaximum(_YACSMaxIter, _YACSMaxNode, _YACSMaxElem);
//
-// // B.4. La convergence pour YACS
+// // B.4. La convergence pour YACS avec HOMARD
//
-// QString QString_v = resMgr->stringValue ( "HOMARD", "yacs_type_test", "None" );
+// QString QString_v = resMgr->stringValue ( "HOMARD", "homard_yacs_type_test", "None" );
// if ( ( QString_v == "VTest > VRef" ) || ( QString_v == "VTest > VRef" ) ) { _YACSTypeTest = 1 ; }
// else if ( ( QString_v == "VTest < VRef" ) || ( QString_v == "VTest < VRef" ) ) { _YACSTypeTest = 2 ; }
// else { _YACSTypeTest = 0 ; }
diff --git a/src/SMESHGUI/SMESH_msg_en.ts b/src/SMESHGUI/SMESH_msg_en.ts
index 9055b7530..2c68a790b 100644
--- a/src/SMESHGUI/SMESH_msg_en.ts
+++ b/src/SMESHGUI/SMESH_msg_en.ts
@@ -2942,41 +2942,77 @@ Check algorithm documentation for supported geometry
Adaptation
-
- Publication
+
+ None
-
- IN meshes
+
+ Publication of meshes with HOMARD
-
- OUT meshes
+
+ IN mesh
-
- Maximum numbers for a YACS schema with HOMARD
+
+ OUT mesh
-
- Iterations
+
+ A YACS schema with HOMARD
-
- Nodes
+
+ Maximal number of iterations
-
- Elements
+
+ Maximal number of nodes
-
- Convergence
+
+ Maximal number of elements
-
+
Test type for a YACS schema with HOMARD
+
+
+ Adaptation with MG-Adapt
+
+
+
+ Write the OUT mesh
+
+
+
+ Publication of the OUT mesh
+
+
+
+ Size map
+
+
+
+ Local
+
+
+
+ Background
+
+
+
+ Time step
+
+
+
+ Last
+
+
+
+ Value
+
Mesh visualization failed
diff --git a/src/SMESHGUI/SMESH_msg_fr.ts b/src/SMESHGUI/SMESH_msg_fr.ts
index d66f06849..c82129921 100644
--- a/src/SMESHGUI/SMESH_msg_fr.ts
+++ b/src/SMESHGUI/SMESH_msg_fr.ts
@@ -2904,40 +2904,76 @@ Référez-vous à la documentation sur l'algorithme et la géométrie suppo
Adaptation
-
- Publication
+
+ Sans
-
- Les maillages d'entrée
+
+ Publication des maillages avec HOMARD
-
- Les maillages de sortie
+
+ Le maillage d'entrée
-
- Nombres maximaux pour un schéma YACS avec HOMARD
+
+ Le maillage de sortie
-
- Itérations
+
+ Schéma YACS avec HOMARD
-
- Noeuds
+
+ Nombre maximal d'itérations
-
- Eléments
+
+ Nombre maximal de noeuds
-
- Convergence
+
+ Nombre maximal d'éléments
-
- Type de test pour un schéma YACS avec HOMARD
+
+ Type de test pour la convergence
+
+
+
+ Adaptation avec MG-Adapt
+
+
+
+ Ecriture du maillage de sortie
+
+
+
+ Publication du maillage de sortie
+
+
+
+ Carte de tailles
+
+
+
+ Locale
+
+
+
+ Arrière-plan
+
+
+
+ Choix du pas de temps
+
+
+
+ Dernier
+
+
+
+ Valeur