mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-24 03:30:32 +05:00
fix med_int conversion
This commit is contained in:
parent
c0c883fc72
commit
af459b337c
@ -429,8 +429,8 @@ bool MgAdapt::setAll()
|
||||
}
|
||||
|
||||
setSizeMapFile(mapfile);
|
||||
int rank;
|
||||
int tmst;
|
||||
med_int rank;
|
||||
med_int tmst;
|
||||
if (data->myUseNoTimeStep)
|
||||
{
|
||||
rank = MED_NO_IT;
|
||||
@ -446,7 +446,7 @@ bool MgAdapt::setAll()
|
||||
rank = data->myRank;
|
||||
tmst = data->myTimeStep;
|
||||
}
|
||||
setRankTimeStep(tmst, rank);
|
||||
setRankTimeStep((int)tmst, (int)rank);
|
||||
|
||||
/* Advanced options */
|
||||
setWorkingDir(data->myWorkingDir);
|
||||
@ -1233,13 +1233,13 @@ MgAdapt::Status MgAdapt::addMessage(const std::string& msg,
|
||||
|
||||
|
||||
// =======================================================================
|
||||
void MgAdapt::getTimeStepInfos(std::string aFile, int& numdt, int& numit)
|
||||
void MgAdapt::getTimeStepInfos(std::string aFile, med_int& numdt, med_int& numit)
|
||||
// =======================================================================
|
||||
{
|
||||
// Il faut voir si plusieurs maillages
|
||||
|
||||
|
||||
med_err erreur = 0 ;
|
||||
herr_t erreur = 0 ;
|
||||
med_idt medIdt ;
|
||||
|
||||
|
||||
@ -1278,7 +1278,7 @@ void MgAdapt::getTimeStepInfos(std::string aFile, int& numdt, int& numit)
|
||||
}
|
||||
|
||||
med_float dt;
|
||||
int tmp_numdt, tmp_numit;
|
||||
med_int tmp_numdt, tmp_numit;
|
||||
|
||||
med_int step = data->myUseLastTimeStep ? nbofcstp : data->myTimeStep+1;
|
||||
//~myPrint("step ", step);
|
||||
|
@ -318,7 +318,7 @@ private :
|
||||
void storeGroupsAndFams(MEDCoupling::MEDFileMesh* fileMesh);
|
||||
void restoreGroupsAndFams(MEDCoupling::MEDFileMesh* fileMesh) const;
|
||||
void convertMeshFile(std::string& meshFormatIn, std::vector< std::string>& solFieldFileNames) const ;
|
||||
void getTimeStepInfos(std::string aFile, int& numdt, int& numit);
|
||||
void getTimeStepInfos(std::string aFile, med_int& numdt, med_int& numit);
|
||||
Status addMessage(const std::string& msg, const bool isFatal = false);
|
||||
med_idt openMedFile(const std::string aFile) ;
|
||||
bool isFileExist(std::string& fName) const;
|
||||
|
Loading…
Reference in New Issue
Block a user