Version: 9.12.0
MG_ADAPT::MgAdapt Class Reference

#include <MG_ADAPT.hxx>

Data Structures

struct  family
 
struct  group
 

Public Types

enum  Status {
  DRS_OK , DRS_EMPTY , DRS_WARN_RENUMBER , DRS_WARN_SKIP_ELEM ,
  DRS_WARN_DESCENDING , DRS_FAIL , DRS_NO_TIME_STEP
}
 

Public Member Functions

 MgAdapt ()
 
 MgAdapt (MgAdaptHypothesisData *)
 
 MgAdapt (const MgAdapt &)
 
 ~MgAdapt ()
 
void buildModel ()
 
void setData (MgAdaptHypothesisData *data)
 
void setMedFileIn (std::string fileName)
 
std::string getMedFileIn ()
 
void setMedFileOut (std::string fileOut)
 
std::string getMedFileOut ()
 
void setMeshName (std::string name)
 
std::string getMeshName ()
 
void setMeshNameOut (std::string name)
 
std::string getMeshNameOut ()
 
void setMeshOutMed (bool mybool)
 
bool getMeshOutMed ()
 
void setPublish (bool mybool)
 
bool getPublish ()
 
void setFieldName (std::string myFieldName)
 
std::string getFieldName ()
 
void setTimeStep (int time)
 
int getTimeStep () const
 
void setRankTimeStep (int time, int myRank)
 
int getRank ()
 
void setTimeStepRankLast ()
 
void setNoTimeStep ()
 
void setChosenTimeStepRank ()
 
void updateTimeStepRank ()
 
void setLogFile (std::string)
 
std::string getLogFile ()
 
void setVerbosityLevel (int verbosity)
 
int getVerbosityLevel ()
 
void setRemoveOnSuccess (bool mybool)
 
bool getRemoveOnSuccess ()
 
MgAdaptHypothesisDatagetData () const
 
void setUseLocalMap (bool mybool)
 
bool getUseLocalMap ()
 
void setUseBackgroundMap (bool mybool)
 
bool getUseBackgroundMap ()
 
void setUseConstantValue (bool mybool)
 
bool getUseConstantValue ()
 
void setConstantValue (double cnst)
 
double getConstantValue () const
 
void setSizeMapFile (std::string mapFile)
 
std::string getSizeMapFile ()
 
void setFromMedFile (bool mybool)
 
bool isFromMedFile ()
 
void setKeepWorkingFiles (bool mybool)
 
bool getKeepWorkingFiles ()
 
void setPrintLogInFile (bool mybool)
 
bool getPrintLogInFile ()
 
void setWorkingDir (std::string dir)
 
std::string getWorkingDir () const
 
bool setAll ()
 
std::string getCommandToRun ()
 Return command to run MG-Tetra mesher excluding file prefix (-f) More...
 
int compute (std::string &errStr)
 
std::string getFileName () const
 Return a unique file name. More...
 
void copyMgAdaptHypothesisData (const MgAdaptHypothesisData *from)
 
void checkDirPath (std::string &dirPath)
 
bool hasOptionDefined (const std::string &optionName) const
 
void setOptionValue (const std::string &optionName, const std::string &optionValue)
 
std::string getOptionValue (const std::string &optionName, bool *isDefault=0) const
 Return option value. If isDefault provided, it can be a default value,. More...
 
std::vector< std::string > getCustomOptionValuesStrVec () const
 
std::vector< std::string > getOptionValuesStrVec () const
 
TOptionValues getOptionValues () const
 
const TOptionValuesgetCustomOptionValues () const
 

Static Public Member Functions

static std::string getCommandToRun (MgAdapt *)
 Return command to run MG-Adapt mesher excluding file prefix (-f) More...
 
static std::string getExeName ()
 
static double toDbl (const std::string &, bool *isOk=0)
 Converts a string to a real value. More...
 
static bool toBool (const std::string &, bool *isOk=0)
 Converts a string to a bool. More...
 
static int toInt (const std::string &, bool *isOk=0)
 Converts a string to a integer value. More...
 
static std::string toLowerStr (const std::string &str)
 Converts a string to a lower. More...
 
static std::string defaultWorkingDirectory ()
 
static std::string defaultLogFile ()
 
static bool defaultKeepFiles ()
 
static bool defaultRemoveLogOnSuccess ()
 
static int defaultVerboseLevel ()
 
static bool defaultPrintLogInFile ()
 
static bool defaultFromMedFile ()
 
static bool defaultMeshOutMed ()
 
static bool defaultPublish ()
 
static bool defaultUseLocalMap ()
 
static bool defaultUseBackgroundMap ()
 
static bool defaultUseConstantValue ()
 
static bool defaultUseNoTimeStep ()
 
static bool defaultUseLastTimeStep ()
 
static bool defaultUseChosenTimeStep ()
 
static double defaultMaximumMemory ()
 

Private Member Functions

void convertMedFile (std::string &meshIn, std::string &solFileIn, std::string &sizeMapIn)
 
void storeGroups (MEDCoupling::MEDFileMesh *fileMesh)
 
void restoreGroups (MEDCoupling::MEDFileMesh *fileMesh) const
 
void storefams (MEDCoupling::MEDFileMesh *fileMesh)
 
void restorefams (MEDCoupling::MEDFileMesh *fileMesh) const
 
void storeGroupsAndFams (MEDCoupling::MEDFileMesh *fileMesh)
 
void restoreGroupsAndFams (MEDCoupling::MEDFileMesh *fileMesh) const
 
void convertMeshFile (std::string &meshFormatIn, std::vector< std::string > &solFieldFileNames) const
 
void buildConstantSizeMapSolFile (const std::string &solFormatFieldFileName, const int dim, const int version, const size_t nbNodes) const
 
void buildBackGroundMeshAndSolFiles (const std::vector< std::string > &fieldFileNames, const std::string &meshFormatsizeMapFile) const
 
Status addMessage (const std::string &msg, const bool isFatal=false)
 
void execCmd (const char *cmd, int &err)
 
void cleanUp ()
 
void appendMsgToLogFile (std::string &msg)
 
std::vector< std::string > getListFieldsNames (std::string fileIn)
 
void checkDimensionOptionAdaptation ()
 
void checkFieldName (std::string fileIn)
 
void checkTimeStepRank (std::string fileIn)
 

Private Attributes

bool fromMedFile
 
std::string medFileIn
 
std::string medFileOut
 
std::string meshName
 
std::string meshNameOut
 
bool publish
 
bool meshOutMed
 
bool useLocalMap
 
bool useBackgroundMap
 
bool useConstantValue
 
bool myUseLastTimeStep
 
bool myUseNoTimeStep
 
bool myUseChosenTimeStep
 
std::string sizeMapFile
 
std::string fieldName
 
double constantValue
 
int rank
 
int timeStep
 
std::string logFile
 
std::string workingDir
 
int verbosityLevel
 
bool removeOnSuccess
 
bool toKeepWorkingFiles
 
bool printLogInFile
 
MgAdaptHypothesisDatadata
 
TOptionValues _option2value
 
TOptionValues _customOption2value
 
TOptionValues _defaultOptionValues
 
TOptionNames _doubleOptions
 
TOptionNames _charOptions
 
TOptionNames _boolOptions
 
std::vector< std::string > _errorMessages
 
Status _status
 
std::string meshFormatOutputMesh
 
std::vector< std::string > solFormatOutput
 
std::vector< groupgroupVec
 
std::vector< familyfamVec
 
std::vector< std::string > tmpFilesToBeDeleted
 

Member Enumeration Documentation

◆ Status

Enumerator
DRS_OK 
DRS_EMPTY 
DRS_WARN_RENUMBER 
DRS_WARN_SKIP_ELEM 
DRS_WARN_DESCENDING 
DRS_FAIL 
DRS_NO_TIME_STEP 

Constructor & Destructor Documentation

◆ MgAdapt() [1/3]

MgAdapt::MgAdapt ( )

References buildModel(), data, defaultFromMedFile(), defaultKeepFiles(), defaultLogFile(), defaultMeshOutMed(), defaultPrintLogInFile(), defaultPublish(), defaultRemoveLogOnSuccess(), defaultUseBackgroundMap(), defaultUseChosenTimeStep(), defaultUseConstantValue(), defaultUseLastTimeStep(), defaultUseLocalMap(), defaultUseNoTimeStep(), defaultVerboseLevel(), defaultWorkingDirectory(), MG_ADAPT::MgAdaptHypothesisData::fromMedFile, MG_ADAPT::MgAdaptHypothesisData::myConstantValue, MG_ADAPT::MgAdaptHypothesisData::myFieldName, MG_ADAPT::MgAdaptHypothesisData::myFileInDir, MG_ADAPT::MgAdaptHypothesisData::myFileOutDir, MG_ADAPT::MgAdaptHypothesisData::myFileSizeMapDir, MG_ADAPT::MgAdaptHypothesisData::myInMeshName, MG_ADAPT::MgAdaptHypothesisData::myKeepFiles, MG_ADAPT::MgAdaptHypothesisData::myLogFile, MG_ADAPT::MgAdaptHypothesisData::myMeshFileBackground, MG_ADAPT::MgAdaptHypothesisData::myMeshFileIn, MG_ADAPT::MgAdaptHypothesisData::myMeshFileOut, MG_ADAPT::MgAdaptHypothesisData::myMeshOutMed, MG_ADAPT::MgAdaptHypothesisData::myOutMeshName, MG_ADAPT::MgAdaptHypothesisData::myPrintLogInFile, MG_ADAPT::MgAdaptHypothesisData::myPublish, MG_ADAPT::MgAdaptHypothesisData::myRank, MG_ADAPT::MgAdaptHypothesisData::myRemoveLogOnSuccess, MG_ADAPT::MgAdaptHypothesisData::myTimeStep, MG_ADAPT::MgAdaptHypothesisData::myUseBackgroundMap, MG_ADAPT::MgAdaptHypothesisData::myUseChosenTimeStep, MG_ADAPT::MgAdaptHypothesisData::myUseConstantValue, MG_ADAPT::MgAdaptHypothesisData::myUseLastTimeStep, MG_ADAPT::MgAdaptHypothesisData::myUseLocalMap, MG_ADAPT::MgAdaptHypothesisData::myUseNoTimeStep, MG_ADAPT::MgAdaptHypothesisData::myVerboseLevel, MG_ADAPT::MgAdaptHypothesisData::myWorkingDir, and setAll().

◆ MgAdapt() [2/3]

MgAdapt::MgAdapt ( MgAdaptHypothesisData myData)

References buildModel(), data, and setData().

◆ MgAdapt() [3/3]

◆ ~MgAdapt()

MgAdapt::~MgAdapt ( )

References data.

Member Function Documentation

◆ addMessage()

MgAdapt::Status MgAdapt::addMessage ( const std::string &  msg,
const bool  isFatal = false 
)
private

◆ appendMsgToLogFile()

void MgAdapt::appendMsgToLogFile ( std::string &  msg)
private

References logFile.

Referenced by cleanUp().

◆ buildBackGroundMeshAndSolFiles()

void MgAdapt::buildBackGroundMeshAndSolFiles ( const std::vector< std::string > &  fieldFileNames,
const std::string &  meshFormatsizeMapFile 
) const
private

References fieldName, rank, sizeMapFile, and timeStep.

Referenced by convertMedFile().

◆ buildConstantSizeMapSolFile()

void MgAdapt::buildConstantSizeMapSolFile ( const std::string &  solFormatFieldFileName,
const int  dim,
const int  version,
const size_t  nbNodes 
) const
private

References constantValue, GmfSca, GmfSolAtVertices, and GmfWrite.

Referenced by convertMedFile().

◆ buildModel()

void MgAdapt::buildModel ( )

◆ checkDimensionOptionAdaptation()

void MgAdapt::checkDimensionOptionAdaptation ( )
private

◆ checkDirPath()

void MgAdapt::checkDirPath ( std::string &  dirPath)

Referenced by setAll().

◆ checkFieldName()

void MgAdapt::checkFieldName ( std::string  fileIn)
private

References fieldName, and getListFieldsNames().

Referenced by convertMedFile().

◆ checkTimeStepRank()

void MgAdapt::checkTimeStepRank ( std::string  fileIn)
private

References fieldName, rank, and timeStep.

Referenced by convertMedFile().

◆ cleanUp()

void MgAdapt::cleanUp ( )
private

◆ compute()

int MgAdapt::compute ( std::string &  errStr)

◆ convertMedFile()

void MgAdapt::convertMedFile ( std::string &  meshIn,
std::string &  solFileIn,
std::string &  sizeMapIn 
)
private

◆ convertMeshFile()

void MgAdapt::convertMeshFile ( std::string &  meshFormatIn,
std::vector< std::string > &  solFieldFileNames 
) const
private

References medFileOut, meshNameOut, and restoreGroupsAndFams().

Referenced by compute().

◆ copyMgAdaptHypothesisData()

◆ defaultFromMedFile()

bool MgAdapt::defaultFromMedFile ( )
static

Referenced by MgAdapt().

◆ defaultKeepFiles()

bool MgAdapt::defaultKeepFiles ( )
static

Referenced by MgAdapt().

◆ defaultLogFile()

std::string MgAdapt::defaultLogFile ( )
static

Referenced by MgAdapt(), and setAll().

◆ defaultMaximumMemory()

double MgAdapt::defaultMaximumMemory ( )
static

Referenced by buildModel().

◆ defaultMeshOutMed()

bool MgAdapt::defaultMeshOutMed ( )
static

Referenced by MgAdapt().

◆ defaultPrintLogInFile()

bool MgAdapt::defaultPrintLogInFile ( )
static

Referenced by MgAdapt().

◆ defaultPublish()

bool MgAdapt::defaultPublish ( )
static

Referenced by MgAdapt().

◆ defaultRemoveLogOnSuccess()

bool MgAdapt::defaultRemoveLogOnSuccess ( )
static

Referenced by MgAdapt().

◆ defaultUseBackgroundMap()

bool MgAdapt::defaultUseBackgroundMap ( )
static

Referenced by MgAdapt().

◆ defaultUseChosenTimeStep()

bool MgAdapt::defaultUseChosenTimeStep ( )
static

Referenced by MgAdapt().

◆ defaultUseConstantValue()

bool MgAdapt::defaultUseConstantValue ( )
static

Referenced by MgAdapt().

◆ defaultUseLastTimeStep()

bool MgAdapt::defaultUseLastTimeStep ( )
static

Referenced by MgAdapt().

◆ defaultUseLocalMap()

bool MgAdapt::defaultUseLocalMap ( )
static

Referenced by MgAdapt().

◆ defaultUseNoTimeStep()

bool MgAdapt::defaultUseNoTimeStep ( )
static

Referenced by MgAdapt().

◆ defaultVerboseLevel()

int MgAdapt::defaultVerboseLevel ( )
static

Referenced by getCommandToRun(), and MgAdapt().

◆ defaultWorkingDirectory()

std::string MgAdapt::defaultWorkingDirectory ( )
static

Referenced by MgAdapt().

◆ execCmd()

void MgAdapt::execCmd ( const char *  cmd,
int &  err 
)
private

References logFile, and printLogInFile.

Referenced by compute().

◆ getCommandToRun() [1/2]

◆ getCommandToRun() [2/2]

std::string MgAdapt::getCommandToRun ( MgAdapt hyp)
static

Return command to run MG-Adapt mesher excluding file prefix (-f)

References getCommandToRun().

Referenced by SMESH::MG_ADAPT_i::getCommandToRun(), and getCommandToRun().

◆ getConstantValue()

double MgAdapt::getConstantValue ( ) const

◆ getCustomOptionValues()

const TOptionValues & MgAdapt::getCustomOptionValues ( ) const

References _customOption2value.

◆ getCustomOptionValuesStrVec()

std::vector< std::string > MgAdapt::getCustomOptionValuesStrVec ( ) const

◆ getData()

MgAdaptHypothesisData * MgAdapt::getData ( ) const

References data.

Referenced by SMESH::MG_ADAPT_i::getData(), and MgAdapt().

◆ getExeName()

std::string MgAdapt::getExeName ( )
static

◆ getFieldName()

std::string MgAdapt::getFieldName ( )

◆ getFileName()

std::string MgAdapt::getFileName ( ) const

Return a unique file name.

References workingDir.

Referenced by convertMedFile(), getCommandToRun(), and SMESH::MG_ADAPT_i::getFileName().

◆ getKeepWorkingFiles()

bool MgAdapt::getKeepWorkingFiles ( )

◆ getListFieldsNames()

std::vector< std::string > MgAdapt::getListFieldsNames ( std::string  fileIn)
private

Referenced by checkFieldName().

◆ getLogFile()

std::string MgAdapt::getLogFile ( )

References logFile.

Referenced by SMESH::MG_ADAPT_i::getLogFile().

◆ getMedFileIn()

std::string MgAdapt::getMedFileIn ( )

References medFileIn.

Referenced by SMESH::MG_ADAPT_i::getMedFileIn().

◆ getMedFileOut()

std::string MgAdapt::getMedFileOut ( )

◆ getMeshName()

std::string MgAdapt::getMeshName ( )

References meshName.

Referenced by SMESH::MG_ADAPT_i::getMeshName().

◆ getMeshNameOut()

std::string MgAdapt::getMeshNameOut ( )

◆ getMeshOutMed()

bool MgAdapt::getMeshOutMed ( )

References meshOutMed.

Referenced by SMESH::MG_ADAPT_i::getMeshOutMed().

◆ getOptionValue()

std::string MgAdapt::getOptionValue ( const std::string &  optionName,
bool *  isDefault = 0 
) const

◆ getOptionValues()

TOptionValues MgAdapt::getOptionValues ( ) const

References _option2value, and getOptionValue().

◆ getOptionValuesStrVec()

std::vector< std::string > MgAdapt::getOptionValuesStrVec ( ) const

◆ getPrintLogInFile()

bool MgAdapt::getPrintLogInFile ( )

◆ getPublish()

bool MgAdapt::getPublish ( )

◆ getRank()

int MgAdapt::getRank ( )

References rank.

Referenced by SMESH::MG_ADAPT_i::getRank().

◆ getRemoveOnSuccess()

bool MgAdapt::getRemoveOnSuccess ( )

◆ getSizeMapFile()

std::string MgAdapt::getSizeMapFile ( )

◆ getTimeStep()

int MgAdapt::getTimeStep ( ) const

References timeStep.

Referenced by SMESH::MG_ADAPT_i::getTimeStep().

◆ getUseBackgroundMap()

bool MgAdapt::getUseBackgroundMap ( )

◆ getUseConstantValue()

bool MgAdapt::getUseConstantValue ( )

◆ getUseLocalMap()

bool MgAdapt::getUseLocalMap ( )

◆ getVerbosityLevel()

int MgAdapt::getVerbosityLevel ( )

◆ getWorkingDir()

std::string MgAdapt::getWorkingDir ( ) const

References workingDir.

Referenced by SMESH::MG_ADAPT_i::getWorkingDir().

◆ hasOptionDefined()

bool MgAdapt::hasOptionDefined ( const std::string &  optionName) const

◆ isFromMedFile()

bool MgAdapt::isFromMedFile ( )

References fromMedFile.

Referenced by SMESH::MG_ADAPT_i::isFromMedFile().

◆ restorefams()

void MgAdapt::restorefams ( MEDCoupling::MEDFileMesh *  fileMesh) const
private

References famVec.

Referenced by restoreGroupsAndFams().

◆ restoreGroups()

void MgAdapt::restoreGroups ( MEDCoupling::MEDFileMesh *  fileMesh) const
private

References groupVec.

Referenced by restoreGroupsAndFams().

◆ restoreGroupsAndFams()

void MgAdapt::restoreGroupsAndFams ( MEDCoupling::MEDFileMesh *  fileMesh) const
private

References restorefams(), and restoreGroups().

Referenced by convertMeshFile().

◆ setAll()

bool MgAdapt::setAll ( )

References checkDirPath(), data, defaultLogFile(), MG_ADAPT::MgAdaptHypothesisData::fromMedFile, MG_ADAPT::MgAdaptHypothesisData::myConstantValue, MG_ADAPT::MgAdaptHypothesisData::myFieldName, MG_ADAPT::MgAdaptHypothesisData::myFileInDir, MG_ADAPT::MgAdaptHypothesisData::myFileOutDir, MG_ADAPT::MgAdaptHypothesisData::myFileSizeMapDir, MG_ADAPT::MgAdaptHypothesisData::myInMeshName, MG_ADAPT::MgAdaptHypothesisData::myKeepFiles, MG_ADAPT::MgAdaptHypothesisData::myMeshFileBackground, MG_ADAPT::MgAdaptHypothesisData::myMeshFileIn, MG_ADAPT::MgAdaptHypothesisData::myMeshFileOut, MG_ADAPT::MgAdaptHypothesisData::myMeshOutMed, MG_ADAPT::MgAdaptHypothesisData::myOutMeshName, MG_ADAPT::MgAdaptHypothesisData::myPrintLogInFile, MG_ADAPT::MgAdaptHypothesisData::myPublish, MG_ADAPT::MgAdaptHypothesisData::myRank, MG_ADAPT::MgAdaptHypothesisData::myRemoveLogOnSuccess, MG_ADAPT::MgAdaptHypothesisData::myTimeStep, MG_ADAPT::MgAdaptHypothesisData::myUseBackgroundMap, MG_ADAPT::MgAdaptHypothesisData::myUseConstantValue, MG_ADAPT::MgAdaptHypothesisData::myUseLastTimeStep, MG_ADAPT::MgAdaptHypothesisData::myUseLocalMap, MG_ADAPT::MgAdaptHypothesisData::myUseNoTimeStep, MG_ADAPT::MgAdaptHypothesisData::myVerboseLevel, MG_ADAPT::MgAdaptHypothesisData::myWorkingDir, setChosenTimeStepRank(), setConstantValue(), setFieldName(), setFromMedFile(), setKeepWorkingFiles(), setLogFile(), setMedFileIn(), setMedFileOut(), setMeshName(), setMeshNameOut(), setMeshOutMed(), setNoTimeStep(), setPrintLogInFile(), setPublish(), setRankTimeStep(), setRemoveOnSuccess(), setSizeMapFile(), setTimeStepRankLast(), setUseBackgroundMap(), setUseConstantValue(), setUseLocalMap(), setVerbosityLevel(), setWorkingDir(), useBackgroundMap, and useConstantValue.

Referenced by MgAdapt(), SMESH::MG_ADAPT_i::setAll(), and setData().

◆ setChosenTimeStepRank()

void MgAdapt::setChosenTimeStepRank ( )

◆ setConstantValue()

void MgAdapt::setConstantValue ( double  cnst)

◆ setData()

void MgAdapt::setData ( MgAdaptHypothesisData data)

◆ setFieldName()

void MgAdapt::setFieldName ( std::string  myFieldName)

◆ setFromMedFile()

void MgAdapt::setFromMedFile ( bool  mybool)

References fromMedFile.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setFromMedFile().

◆ setKeepWorkingFiles()

void MgAdapt::setKeepWorkingFiles ( bool  mybool)

◆ setLogFile()

void MgAdapt::setLogFile ( std::string  myLogFile)

References logFile.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setLogFile().

◆ setMedFileIn()

void MgAdapt::setMedFileIn ( std::string  fileName)

◆ setMedFileOut()

void MgAdapt::setMedFileOut ( std::string  fileOut)

References medFileOut.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setMedFileOut().

◆ setMeshName()

void MgAdapt::setMeshName ( std::string  name)

References meshName.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setMeshName().

◆ setMeshNameOut()

void MgAdapt::setMeshNameOut ( std::string  name)

References meshNameOut.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setMeshNameOut().

◆ setMeshOutMed()

void MgAdapt::setMeshOutMed ( bool  mybool)

References meshOutMed.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setMeshOutMed().

◆ setNoTimeStep()

void MgAdapt::setNoTimeStep ( )

◆ setOptionValue()

void MgAdapt::setOptionValue ( const std::string &  optionName,
const std::string &  optionValue 
)

◆ setPrintLogInFile()

void MgAdapt::setPrintLogInFile ( bool  mybool)

◆ setPublish()

void MgAdapt::setPublish ( bool  mybool)

References publish.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setPublish().

◆ setRankTimeStep()

void MgAdapt::setRankTimeStep ( int  time,
int  myRank 
)

◆ setRemoveOnSuccess()

void MgAdapt::setRemoveOnSuccess ( bool  mybool)

◆ setSizeMapFile()

void MgAdapt::setSizeMapFile ( std::string  mapFile)

References sizeMapFile.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setSizeMapFile().

◆ setTimeStep()

void MgAdapt::setTimeStep ( int  time)

References timeStep.

Referenced by SMESH::MG_ADAPT_i::setTimeStep().

◆ setTimeStepRankLast()

void MgAdapt::setTimeStepRankLast ( )

◆ setUseBackgroundMap()

void MgAdapt::setUseBackgroundMap ( bool  mybool)

◆ setUseConstantValue()

void MgAdapt::setUseConstantValue ( bool  mybool)

◆ setUseLocalMap()

void MgAdapt::setUseLocalMap ( bool  mybool)

References useLocalMap.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setUseLocalMap().

◆ setVerbosityLevel()

void MgAdapt::setVerbosityLevel ( int  verbosity)

◆ setWorkingDir()

void MgAdapt::setWorkingDir ( std::string  dir)

References workingDir.

Referenced by setAll(), and SMESH::MG_ADAPT_i::setWorkingDir().

◆ storefams()

void MgAdapt::storefams ( MEDCoupling::MEDFileMesh *  fileMesh)
private

References famVec.

Referenced by storeGroupsAndFams().

◆ storeGroups()

void MgAdapt::storeGroups ( MEDCoupling::MEDFileMesh *  fileMesh)
private

References groupVec.

Referenced by storeGroupsAndFams().

◆ storeGroupsAndFams()

void MgAdapt::storeGroupsAndFams ( MEDCoupling::MEDFileMesh *  fileMesh)
private

References storefams(), and storeGroups().

Referenced by convertMedFile().

◆ toBool()

bool MgAdapt::toBool ( const std::string &  str,
bool *  isOk = 0 
)
static

Converts a string to a bool.

Referenced by getCommandToRun(), and setOptionValue().

◆ toDbl()

double MgAdapt::toDbl ( const std::string &  str,
bool *  isOk = 0 
)
static

Converts a string to a real value.

Referenced by setOptionValue().

◆ toInt()

int MgAdapt::toInt ( const std::string &  str,
bool *  isOk = 0 
)
static

Converts a string to a integer value.

Referenced by setOptionValue().

◆ toLowerStr()

std::string MgAdapt::toLowerStr ( const std::string &  str)
static

Converts a string to a lower.

Referenced by setOptionValue().

◆ updateTimeStepRank()

void MgAdapt::updateTimeStepRank ( )

Field Documentation

◆ _boolOptions

TOptionNames MG_ADAPT::MgAdapt::_boolOptions
private

Referenced by buildModel(), MgAdapt(), and setOptionValue().

◆ _charOptions

TOptionNames MG_ADAPT::MgAdapt::_charOptions
private

Referenced by buildModel(), MgAdapt(), and setOptionValue().

◆ _customOption2value

◆ _defaultOptionValues

TOptionValues MG_ADAPT::MgAdapt::_defaultOptionValues
private

◆ _doubleOptions

TOptionNames MG_ADAPT::MgAdapt::_doubleOptions
private

Referenced by buildModel(), MgAdapt(), and setOptionValue().

◆ _errorMessages

std::vector<std::string> MG_ADAPT::MgAdapt::_errorMessages
private

Referenced by addMessage().

◆ _option2value

◆ _status

Status MG_ADAPT::MgAdapt::_status
private

Referenced by addMessage().

◆ constantValue

double MG_ADAPT::MgAdapt::constantValue
private

◆ data

MgAdaptHypothesisData* MG_ADAPT::MgAdapt::data
private

◆ famVec

std::vector<family> MG_ADAPT::MgAdapt::famVec
private

Referenced by restorefams(), and storefams().

◆ fieldName

◆ fromMedFile

bool MG_ADAPT::MgAdapt::fromMedFile
private

Referenced by isFromMedFile(), and setFromMedFile().

◆ groupVec

std::vector<group> MG_ADAPT::MgAdapt::groupVec
private

Referenced by restoreGroups(), and storeGroups().

◆ logFile

std::string MG_ADAPT::MgAdapt::logFile
private

◆ medFileIn

std::string MG_ADAPT::MgAdapt::medFileIn
private

◆ medFileOut

std::string MG_ADAPT::MgAdapt::medFileOut
private

◆ meshFormatOutputMesh

std::string MG_ADAPT::MgAdapt::meshFormatOutputMesh
private

Referenced by compute(), and getCommandToRun().

◆ meshName

std::string MG_ADAPT::MgAdapt::meshName
private

Referenced by getMeshName(), and setMeshName().

◆ meshNameOut

std::string MG_ADAPT::MgAdapt::meshNameOut
private

◆ meshOutMed

bool MG_ADAPT::MgAdapt::meshOutMed
private

Referenced by getMeshOutMed(), and setMeshOutMed().

◆ myUseChosenTimeStep

bool MG_ADAPT::MgAdapt::myUseChosenTimeStep
private

◆ myUseLastTimeStep

bool MG_ADAPT::MgAdapt::myUseLastTimeStep
private

◆ myUseNoTimeStep

bool MG_ADAPT::MgAdapt::myUseNoTimeStep
private

◆ printLogInFile

bool MG_ADAPT::MgAdapt::printLogInFile
private

◆ publish

bool MG_ADAPT::MgAdapt::publish
private

Referenced by getPublish(), and setPublish().

◆ rank

int MG_ADAPT::MgAdapt::rank
private

◆ removeOnSuccess

bool MG_ADAPT::MgAdapt::removeOnSuccess
private

◆ sizeMapFile

◆ solFormatOutput

std::vector< std::string> MG_ADAPT::MgAdapt::solFormatOutput
private

Referenced by compute(), and getCommandToRun().

◆ timeStep

◆ tmpFilesToBeDeleted

std::vector< std::string> MG_ADAPT::MgAdapt::tmpFilesToBeDeleted
private

Referenced by cleanUp(), and getCommandToRun().

◆ toKeepWorkingFiles

bool MG_ADAPT::MgAdapt::toKeepWorkingFiles
private

◆ useBackgroundMap

bool MG_ADAPT::MgAdapt::useBackgroundMap
private

◆ useConstantValue

bool MG_ADAPT::MgAdapt::useConstantValue
private

◆ useLocalMap

bool MG_ADAPT::MgAdapt::useLocalMap
private

◆ verbosityLevel

int MG_ADAPT::MgAdapt::verbosityLevel
private

◆ workingDir

std::string MG_ADAPT::MgAdapt::workingDir
private