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

fix crash

parent 8c69aee4
Branches
Tags
No related merge requests found
...@@ -588,6 +588,7 @@ public: ...@@ -588,6 +588,7 @@ public:
oss << fNameBase << "_" << tag << ".msh"; oss << fNameBase << "_" << tag << ".msh";
std::string fName = oss.str(); std::string fName = oss.str();
FILE *fp = fopen(fName.c_str(), "w"); FILE *fp = fopen(fName.c_str(), "w");
if(!fp) return;
fprintf(fp, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n"); fprintf(fp, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n");
fprintf(fp, "$Nodes\n"); fprintf(fp, "$Nodes\n");
fprintf(fp, "%d\n", point_.size()); fprintf(fp, "%d\n", point_.size());
...@@ -632,6 +633,7 @@ public: ...@@ -632,6 +633,7 @@ public:
oss << fNameBase << "_" << tag << ".msh"; oss << fNameBase << "_" << tag << ".msh";
std::string fName = oss.str(); std::string fName = oss.str();
FILE *fp = fopen(fName.c_str(), "w"); FILE *fp = fopen(fName.c_str(), "w");
if(!fp) return;
fprintf(fp, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n"); fprintf(fp, "$MeshFormat\n2.2 0 8\n$EndMeshFormat\n");
fprintf(fp, "$Nodes\n"); fprintf(fp, "$Nodes\n");
fprintf(fp, "%d\n", vert_.size()); fprintf(fp, "%d\n", vert_.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment