Commit a5b76b95 by Christophe Geuzaine

msg

parent 4761054e
Pipeline #1064 passed with stage
in 35 minutes 4 seconds
......@@ -106,6 +106,11 @@ int GModel::writePartitionedMSH(const std::string &baseName, double version,
bool binary, bool saveAll, bool saveParametric,
double scalingFactor)
{
if(version < 4.0 && getNumPartitions() > 0){
Msg::Warning("Saving a partitioned mesh in a format older than 4.0 may "
"cause information loss");
}
if(version < 3.0){
return _writePartitionedMSH2(baseName, binary, saveAll,
saveParametric, scalingFactor);
......
......@@ -2410,6 +2410,7 @@ int GModel::_writePartitionedMSH4(const std::string &baseName, double version,
std::ostringstream sstream;
sstream << baseName << "_" << i << ".msh";
Msg::Info("Writing partition %d in file '%s'", i, sstream.str().c_str());
tmp->_writeMSH4(sstream.str(), version, binary, saveAll, saveParametric,
scalingFactor);
tmp->remove();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment