diff --git a/resolve/LinSolverIterativeRandFGMRES.cpp b/resolve/LinSolverIterativeRandFGMRES.cpp index d7d21cc82..d547f34e4 100644 --- a/resolve/LinSolverIterativeRandFGMRES.cpp +++ b/resolve/LinSolverIterativeRandFGMRES.cpp @@ -497,7 +497,7 @@ namespace ReSolve if (is_flexible) { vec_Z_ = new vector_type(n_, restart_ + 1); } else { - // otherwise Z is just a one vector, not multivector and we dont keep it + // otherwise Z is just one vector, not a multivector and we don't keep it vec_Z_ = new vector_type(n_); } vec_Z_->allocate(memspace_); diff --git a/resolve/cpu/CpuMemory.hpp b/resolve/cpu/CpuMemory.hpp index e481be973..96c9a6ebc 100644 --- a/resolve/cpu/CpuMemory.hpp +++ b/resolve/cpu/CpuMemory.hpp @@ -1,5 +1,5 @@ #pragma once - +#include #include namespace ReSolve diff --git a/tests/functionality/testRandGmres.cpp b/tests/functionality/testRandGmres.cpp index 631e8a512..7b047868b 100644 --- a/tests/functionality/testRandGmres.cpp +++ b/tests/functionality/testRandGmres.cpp @@ -107,7 +107,6 @@ int runTest(int argc, char *argv[]) vector_type* vec_rhs = generateRhs(n, memspace); vector_type vec_x(A->getNumRows()); - vec_x.allocate(memory::HOST); vec_x.allocate(memspace); vec_x.setToZero(memspace);