diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp index c5ac9564eeb9920a03fcc4ae9b7abae2cc8dc62e..2023e9272e3b2375054b1ca7d416add7e86150e1 100644 --- a/Geo/GModelIO_Mesh.cpp +++ b/Geo/GModelIO_Mesh.cpp @@ -181,7 +181,6 @@ int GModel::readMSH(const std::string &name) std::map<int, MVertex*> vertexMap; std::vector<MVertex*> vertexVector; - while(1) { while(str[0] != '$'){ diff --git a/Post/PViewDataIO.cpp b/Post/PViewDataIO.cpp index 24fd71fb7bda3cc285ce6ed019ec1c3a63c84019..940cf96b6c2ffc1c1398744ec6f91212cd85c574 100644 --- a/Post/PViewDataIO.cpp +++ b/Post/PViewDataIO.cpp @@ -83,7 +83,8 @@ bool PViewData::writeTXT(std::string fileName) for(int nod = 0; nod < getNumNodes(step, ent, ele); nod++){ double x, y, z; getNode(step, ent, ele, nod, x, y, z); - fprintf(fp, "%.16g %.16g %.16g ", x, y, z); + fprintf(fp, "%d %.16g %d %d %.16g %.16g %.16g ", step, getTime(step), + ent, ele, x, y, z); for(int comp = 0; comp < getNumComponents(step, ent, ele); comp++){ double val; getValue(step, ent, ele, nod, comp, val); @@ -92,9 +93,7 @@ bool PViewData::writeTXT(std::string fileName) } fprintf(fp, "\n"); } - fprintf(fp, "\n"); } - fprintf(fp, "\n"); } fclose(fp);