Commit fc378565 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

corrections in VtkVectorWriter

parent caee5088
...@@ -78,7 +78,7 @@ namespace AMDiS { ...@@ -78,7 +78,7 @@ namespace AMDiS {
bool writeParallel, bool writeParallel,
bool writeAs3dVector) bool writeAs3dVector)
{ {
DOFVector<std::vector<double> > *newValues = new DOFVector<std::vector<double> >(values[0]->getFeSpace(), "values"); DOFVector<std::vector<double> > *newValues = new DOFVector<std::vector<double> >(values[0]->getFeSpace(), values[0]->getName());
std::vector<DOFIterator<double>* > iterators; std::vector<DOFIterator<double>* > iterators;
for (size_t i = 0; i < values.size(); i++) for (size_t i = 0; i < values.size(); i++)
iterators.push_back(new DOFIterator<double>(values[i],USED_DOFS)); iterators.push_back(new DOFIterator<double>(values[i],USED_DOFS));
...@@ -110,7 +110,7 @@ namespace AMDiS { ...@@ -110,7 +110,7 @@ namespace AMDiS {
bool writeParallel, bool writeParallel,
bool writeAs3dVector) bool writeAs3dVector)
{ {
DOFVector<WorldVector<double> > *newValues = new DOFVector<WorldVector<double> >(values[0]->getFeSpace(), "values"); DOFVector<WorldVector<double> > *newValues = new DOFVector<WorldVector<double> >(values[0]->getFeSpace(), values[0]->getName());
WorldVector<DOFIterator<double>* > iterators; WorldVector<DOFIterator<double>* > iterators;
for (size_t i = 0; i < static_cast<size_t>(values.getSize()); i++) for (size_t i = 0; i < static_cast<size_t>(values.getSize()); i++)
iterators[i] = new DOFIterator<double>(values[i],USED_DOFS); iterators[i] = new DOFIterator<double>(values[i],USED_DOFS);
...@@ -139,7 +139,7 @@ namespace AMDiS { ...@@ -139,7 +139,7 @@ namespace AMDiS {
bool writeParallel, bool writeParallel,
bool writeAs3dVector) bool writeAs3dVector)
{ {
DOFVector<std::vector<double> > *newValues = new DOFVector<std::vector<double> >(values->getDOFVector(0)->getFeSpace(), "values"); DOFVector<std::vector<double> > *newValues = new DOFVector<std::vector<double> >(values->getDOFVector(0)->getFeSpace(), values->getName());
std::vector<DOFIterator<double>* > iterators; std::vector<DOFIterator<double>* > iterators;
for (size_t i = 0; i < static_cast<size_t>(values->getSize()); i++) for (size_t i = 0; i < static_cast<size_t>(values->getSize()); i++)
iterators.push_back(new DOFIterator<double>(values->getDOFVector(i),USED_DOFS)); iterators.push_back(new DOFIterator<double>(values->getDOFVector(i),USED_DOFS));
......
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