little corrections

This commit is contained in:
azakir 2021-01-15 12:03:28 +01:00
parent 43e6429c58
commit 4cd6311d74
4 changed files with 25 additions and 11 deletions

View File

@ -71,13 +71,13 @@ module SMESH{
void setPublish(in boolean b);
boolean getPublish();
void setFieldName(in string s);
string getFieldName();
void setSizeMapFieldName(in string s);
string getSizeMapFieldName();
void setTimeStep(in long s);
long getTimeStep() ;
void setRankTimeStep(in long s, in long f);
void setTimeStepRank(in long s, in long f);
long getRank();
void setTimeStepRankLast();
@ -103,8 +103,8 @@ module SMESH{
void setUseConstantValue(in boolean f);
boolean getUseConstantValue();
void setConstantValue(in double f);
double getConstantValue() ;
void setConstantSize(in double f);
double getConstantSize() ;
void setSizeMapFile(in string f);
string getSizeMapFile();
@ -121,7 +121,7 @@ module SMESH{
void setWorkingDir(in string f);
string getWorkingDir() ;
void setSizeMapType(in string f);
boolean setAll();
string getCommandToRun() ;
//long compute(out string errStr);
@ -143,7 +143,16 @@ module SMESH{
str_array getCustomOptionValuesStrVec() ;
str_array getOptionValuesStrVec() ;
};
typedef MG_ADAPT MG_ADAPT_HYPOTHESIS;
interface MG_ADAPT_OBJECT : SALOME::GenericObj
{
void setMeshIn(in SMESH_Mesh theMesh );
void setMEDFileIn(in string f);
void setMEDFileOut(in string f);
void setMEDFileBackground(in string f);
void AddHypothesis(in MG_ADAPT mg);
long Compute(in boolean Publish);
};
};
#endif // MG_ADAPT_IDL

View File

@ -44,6 +44,7 @@ module SMESH
interface SMESH_Pattern;
interface Measurements;
interface MG_ADAPT;
interface MG_ADAPT_OBJECT;
/*!
* Tags definition
@ -586,6 +587,8 @@ module SMESH
MG_ADAPT CreateMG_ADAPT();
MG_ADAPT_OBJECT Adaptation(in string adaptType);
MG_ADAPT CreateAdaptationHypothesis();
};
};

View File

@ -1426,17 +1426,18 @@ void MgAdapt::getTimeStepInfos(std::string aFile, med_int& numdt, med_int& numit
void MgAdapt::updateTimeStepRank()
{
med_int arank = rank;
med_int tmst = timeStep;
med_int arank;
med_int tmst;
if (myUseNoTimeStep)
{
rank = MED_NO_IT;
arank = MED_NO_IT;
tmst = MED_NO_DT ;
setRankTimeStep((int)tmst, (int)arank);
}
else if (myUseLastTimeStep)
{
std::string fieldFile = useBackgroundMap ? sizeMapFile : medFileIn;
getTimeStepInfos(fieldFile, tmst, arank);
setRankTimeStep((int)tmst, (int)arank);
}
setRankTimeStep((int)tmst, (int)arank);
}

View File

@ -246,6 +246,7 @@ CORBA::Long MG_ADAPT_i::getTimeStep()
}
void MG_ADAPT_i::setTimeStepRank(CORBA::Long t, CORBA::Long r)
{
myMgAdapt->setChosenTimeStepRank();
myMgAdapt->setRankTimeStep(t, r);
}
CORBA::Long MG_ADAPT_i::getRank()