Skip to content
Snippets Groups Projects
Commit c554da69 authored by Gauthier Becker's avatar Gauthier Becker
Browse files

Install for Ubuntu + fix multiple print of meshFormat in case of a multiple view file

parent 7813811b
No related branches found
No related tags found
No related merge requests found
......@@ -156,9 +156,14 @@ bool PViewDataGModel::writeMSH(const std::string &fileName, bool binary, bool sa
}
}
else{
if(multipleView)
if(multipleView){
fp = fopen(fileName.c_str(), binary ? "ab" : "a");
else
if(!fp){
Msg::Error("Unable to open file '%s'", fileName.c_str());
return false;
}
}
else{
fp = fopen(fileName.c_str(), binary ? "wb" : "w");
if(!fp){
Msg::Error("Unable to open file '%s'", fileName.c_str());
......@@ -173,6 +178,7 @@ bool PViewDataGModel::writeMSH(const std::string &fileName, bool binary, bool sa
}
fprintf(fp, "$EndMeshFormat\n");
}
}
if(haveInterpolationMatrices()){
fprintf(fp, "$InterpolationScheme\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment