Commit 88b922ff by Christophe Geuzaine

test actual existence of paritions (not numpart option) to save split partition files

parent a47aed86
......@@ -263,7 +263,7 @@ void CreateOutputFile(const std::string &fileName, int format,
break;
case FORMAT_MSH:
if(CTX::instance()->mesh.numPartitions > 1 &&
if(GModel::current()->getMeshPartitions().size() &&
CTX::instance()->mesh.partitionSplitMeshFiles){
std::vector<std::string> splitName = SplitFileName(name);
splitName[0] += splitName[1];
......@@ -278,7 +278,7 @@ void CreateOutputFile(const std::string &fileName, int format,
CTX::instance()->mesh.saveAll, CTX::instance()->mesh.saveParametric,
CTX::instance()->mesh.scalingFactor);
}
if(CTX::instance()->mesh.numPartitions > 1 &&
if(GModel::current()->getMeshPartitions().size() &&
CTX::instance()->mesh.partitionSaveTopologyFile){
std::vector<std::string> splitName = SplitFileName(name);
splitName[0] += splitName[1] + "_topology.pro";
......
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