diff --git a/src/compute-disc-error.cc b/src/compute-disc-error.cc index f20f327c62da59a8facf668e7600b4f85e72b8ab..9f57695c46c167e66e344fcbdef38d50fb1da62c 100644 --- a/src/compute-disc-error.cc +++ b/src/compute-disc-error.cc @@ -11,6 +11,8 @@ #include <dune/functions/functionspacebases/pqknodalbasis.hh> +#include <dune/matrix-vector/genericvectortools.hh> + #include <dune/fufem/discretizationerror.hh> #include <dune/fufem/dunepython.hh> @@ -57,7 +59,7 @@ void measureDiscreteEOC(const GridView gridView, std::ifstream inFile(parameterSet.get<std::string>("simulationData"), std::ios_base::binary); if (not inFile) DUNE_THROW(IOError, "File " << parameterSet.get<std::string>("simulationData") << " could not be opened."); - GenericVector::readBinary(inFile, embeddedX); + MatrixVector::Generic::readBinary(inFile, embeddedX); inFile.peek(); // try to advance beyond the end of the file if (not inFile.eof()) DUNE_THROW(IOError, "File '" << parameterSet.get<std::string>("simulationData") << "' does not have the correct size!"); @@ -77,7 +79,7 @@ void measureDiscreteEOC(const GridView gridView, inFile.open(parameterSet.get<std::string>("referenceData"), std::ios_base::binary); if (not inFile) DUNE_THROW(IOError, "File " << parameterSet.get<std::string>("referenceData") << " could not be opened."); - GenericVector::readBinary(inFile, embeddedReferenceX); + MatrixVector::Generic::readBinary(inFile, embeddedReferenceX); inFile.peek(); // try to advance beyond the end of the file if (not inFile.eof()) DUNE_THROW(IOError, "File '" << parameterSet.get<std::string>("referenceData") << "' does not have the correct size!"); @@ -212,7 +214,7 @@ void measureAnalyticalEOC(const GridView gridView, std::ifstream inFile(parameterSet.get<std::string>("simulationData"), std::ios_base::binary); if (not inFile) DUNE_THROW(IOError, "File " << parameterSet.get<std::string>("simulationData") << " could not be opened."); - GenericVector::readBinary(inFile, embeddedX); + MatrixVector::Generic::readBinary(inFile, embeddedX); inFile.peek(); // try to advance beyond the end of the file if (not inFile.eof()) DUNE_THROW(IOError, "File '" << parameterSet.get<std::string>("simulationData") << "' does not have the correct size!");