Skip to content
Snippets Groups Projects
Commit 846823ae authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Fix names of the result files

parent 987b855c
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ int main (int argc, char *argv[]) try ...@@ -214,7 +214,7 @@ int main (int argc, char *argv[]) try
// We need to subsample, because VTK cannot natively display real second-order functions // We need to subsample, because VTK cannot natively display real second-order functions
SubsamplingVTKWriter<GridView> vtkWriter(gridView, Dune::refinementLevels(0)); SubsamplingVTKWriter<GridView> vtkWriter(gridView, Dune::refinementLevels(0));
vtkWriter.addVertexData(localDisplacementFunction, VTK::FieldInfo("displacement", VTK::FieldInfo::Type::vector, dim)); vtkWriter.addVertexData(localDisplacementFunction, VTK::FieldInfo("displacement", VTK::FieldInfo::Type::vector, dim));
vtkWriter.write(resultPath + "finite-strain_homotopy_0"); vtkWriter.write(resultPath + "quasiconvexity-test_homotopy_0");
for (int i=0; i<numHomotopySteps; i++) for (int i=0; i<numHomotopySteps; i++)
{ {
...@@ -449,11 +449,11 @@ int main (int argc, char *argv[]) try ...@@ -449,11 +449,11 @@ int main (int argc, char *argv[]) try
VTK::FieldInfo("determinant", VTK::FieldInfo::Type::scalar, 1)); VTK::FieldInfo("determinant", VTK::FieldInfo::Type::scalar, 1));
vtkWriter.addCellData(KFunction, vtkWriter.addCellData(KFunction,
VTK::FieldInfo("K", VTK::FieldInfo::Type::scalar, 1)); VTK::FieldInfo("K", VTK::FieldInfo::Type::scalar, 1));
vtkWriter.write(resultPath + "finite-strain_homotopy_" + std::to_string(i+1)); vtkWriter.write(resultPath + "quasiconvexity-test_homotopy_" + std::to_string(i+1));
} }
// Write the corresponding coefficient vector: verbatim in binary, to be completely lossless // Write the corresponding coefficient vector: verbatim in binary, to be completely lossless
std::ofstream outFile("finite-strain-elasticity-result.data", std::ios_base::binary); std::ofstream outFile("quasiconvexity-test-result.data", std::ios_base::binary);
MatrixVector::Generic::writeBinary(outFile, x); MatrixVector::Generic::writeBinary(outFile, x);
outFile.close(); outFile.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment