Commit 917834e6 authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix export of nodal mesh-based post-processing views with MSH4

parent e0b8498a
Pipeline #2271 passed with stage
in 93 minutes and 28 seconds
......@@ -268,7 +268,7 @@ bool PViewDataGModel::writeMSH(const std::string &fileName, double version,
fclose(fp);
return false;
}
int num = v->getIndex();
int num = version >= 3.0 ? v->getNum() : v->getIndex();
if(binary) {
fwrite(&num, sizeof(int), 1, fp);
fwrite(_steps[step]->getData(i), sizeof(double), numComp, fp);
......
......@@ -376,7 +376,7 @@ bool PView::write(const std::string &fileName, int format, bool append)
else if(ext == ".stl")
ret = _data->writeSTL(fileName);
else if(ext == ".msh")
ret = _data->writeMSH(fileName, 2.2,
ret = _data->writeMSH(fileName, CTX::instance()->mesh.mshFileVersion,
CTX::instance()->mesh.binary,
CTX::instance()->post.saveMesh, append, 0,
CTX::instance()->post.saveInterpolationMatrices,
......
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