Skip to content
Snippets Groups Projects
Commit 41b85529 authored by Klaus Böhnlein's avatar Klaus Böhnlein
Browse files

Fix writeVTKMaterialFunctions

parent bf177246
No related branches found
No related tags found
No related merge requests found
......@@ -688,7 +688,7 @@ FieldMatrix<double,6,6> setupPhase(const std::string phaseType, Python::Module m
{
std::string outputPath = parameterSet_.get("outputPath", "../../outputs");
using VTKGridType = YaspGrid<dim, EquidistantOffsetCoordinates<double, dim> >;
//VTKGridType grid_VTK({-1.0/2.0, -1.0/2.0, -1.0/2.0},{1.0/2.0, 1.0/2.0, 1.0/2.0},{80,80,80});
// VTKGridType grid_VTK({-1.0/2.0, -1.0/2.0, -1.0/2.0},{1.0/2.0, 1.0/2.0, 1.0/2.0},{80,80,80});
VTKGridType grid_VTK({-1.0/2.0, -1.0/2.0, -1.0/2.0},{1.0/2.0, 1.0/2.0, 1.0/2.0},nElements);
using GridViewVTK = VTKGridType::LeafGridView;
......@@ -707,10 +707,10 @@ FieldMatrix<double,6,6> setupPhase(const std::string phaseType, Python::Module m
VTKWriter<GridView> MaterialVtkWriter(gridView_VTK);
MaterialVtkWriter.addVertexData(
MaterialVtkWriter.addCellData(
indicatorFunction_P0,
VTK::FieldInfo("indicatorFunction_P0", VTK::FieldInfo::Type::scalar, 1));
MaterialVtkWriter.addCellData(
MaterialVtkWriter.addVertexData(
indicatorFunction_P1,
VTK::FieldInfo("indicatorFunction_P1", VTK::FieldInfo::Type::scalar, 1));
......
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