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();
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();
void setWorkingDir(in string f);
string getWorkingDir() ;
-
+ void setSizeMapType(in string f);
boolean setAll();
string getCommandToRun() ;
//long compute(out string errStr);
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
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);
}