1 // Copyright (C) 2011-2020 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 // File : MG_ADAPT.hxx
25 #include "SALOME_Component.idl"
26 #include "SALOME_Exception.idl"
27 #include "SALOMEDS.idl"
31 typedef sequence<string > string_array ;
32 struct MgAdaptHypothesisData
34 string myFileInDir, myMeshFileIn, myInMeshName, myMeshFileBackground, myOutMeshName,
35 myMeshFileOut, myFileOutDir, myFileSizeMapDir, myFieldName;
37 boolean myPublish, myMeshOutMed;
38 boolean myUseLocalMap, myUseBackgroundMap, myUseConstantValue;
39 double myConstantValue;
40 long myRank, myTimeStep;
41 boolean myUseNoTimeStep, myUseLastTimeStep, myUseChosenTimeStep;
42 string myWorkingDir, myLogFile;
43 boolean myPrintLogInFile, myKeepFiles, myRemoveLogOnSuccess;
49 interface MG_ADAPT : Engines::EngineComponent
52 void setData( in MgAdaptHypothesisData data);
54 void setMedFileIn(in string MedFileIn );
55 string getMedFileIn();
57 void setMedFileOut(in string MedFileOut);
58 string getMedFileOut();
60 void setMeshName(in string s);
63 void setMeshNameOut(in string s);
64 string getMeshNameOut();
66 void setMeshOutMed(in boolean b);
67 boolean getMeshOutMed();
69 void setPublish(in boolean b);
72 void setFieldName(in string s);
73 string getFieldName();
75 void setTimeStep(in long s);
78 void setRankTimeStep(in long s, in long f);
81 void setLogFile(in string f);
84 void setVerbosityLevel(in long f);
85 long getVerbosityLevel();
87 void setRemoveOnSuccess(in boolean f);
88 boolean getRemoveOnSuccess();
90 MgAdaptHypothesisData getData();
92 void setUseLocalMap(in boolean f);
93 boolean getUseLocalMap();
95 void setUseBackgroundMap(in boolean f);
96 boolean getUseBackgroundMap();
98 void setUseConstantValue(in boolean f);
99 boolean getUseConstantValue();
101 void setConstantValue(in double f);
102 double getConstantValue() ;
104 void setSizeMapFile(in string f);
105 string getSizeMapFile();
107 void setFromMedFile(in boolean f);
108 boolean isFromMedFile();
110 void setKeepWorkingFiles(in boolean f);
111 boolean getKeepWorkingFiles();
113 void setPrintLogInFile(in boolean f);
114 boolean getPrintLogInFile();
116 void setWorkingDir(in string f);
117 string getWorkingDir() ;
121 string getCommandToRun() ;
122 long compute(inout string errStr);
123 string getFileName() ;
125 void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f ) ;
127 void checkDirPath(in string f);
131 boolean hasOptionDefined( in string optionName ) ;
132 void setOptionValue(in string optionName,
133 in string optionValue) raises (SALOME::SALOME_Exception);
134 string getOptionValue(in string optionName,
135 in boolean isDefault) raises (SALOME::SALOME_Exception);
136 string_array getCustomOptionValuesStrVec() ;
137 string_array getOptionValuesStrVec() ;
142 #endif // MG_ADAPT_IDL