Skip to content
Snippets Groups Projects
Commit b23322cf authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't renumber if saving topology

parent 925503fa
Branches
Tags
No related merge requests found
...@@ -878,6 +878,12 @@ int GModel::_writeMSH2(const std::string &name, double version, bool binary, ...@@ -878,6 +878,12 @@ int GModel::_writeMSH2(const std::string &name, double version, bool binary,
int elementStartNum, int saveSinglePartition, bool multipleView, int elementStartNum, int saveSinglePartition, bool multipleView,
bool renumberVertices) bool renumberVertices)
{ {
if(CTX::instance()->mesh.saveTopology){
if(renumberVertices)
Msg::Info("Disabling vertex renumbering (incompatible with saving topology)");
renumberVertices = false;
}
FILE *fp; FILE *fp;
if(multipleView) if(multipleView)
fp = Fopen(name.c_str(), binary ? "ab" : "a"); fp = Fopen(name.c_str(), binary ? "ab" : "a");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment