Skip to content
Snippets Groups Projects
Commit df685922 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Also write the results as binary data, to alloc EOC measurements

parent e666231f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -253,6 +253,11 @@ int main (int argc, char *argv[]) try
#endif
vtkWriter.write("gradientflow_result_0");
// Write the corresponding coefficient vector: verbatim in binary, to be completely lossless
std::ofstream outFile("gradientflow_result_0.data", std::ios_base::binary);
GenericVector::writeBinary(outFile, xEmbedded);
outFile.close();
///////////////////////////////////////////////////////
// Time loop
///////////////////////////////////////////////////////
......@@ -291,6 +296,12 @@ int main (int argc, char *argv[]) try
vtkWriter.addVertexData(vtkFunction(xFunction), VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
#endif
vtkWriter.write("gradientflow_result_" + std::to_string(i+1));
// Write the corresponding coefficient vector: verbatim in binary, to be completely lossless
std::ofstream outFile("gradientflow_result_" + std::to_string(i+1) + ".data", std::ios_base::binary);
GenericVector::writeBinary(outFile, xEmbedded);
outFile.close();
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment