Skip to content
Snippets Groups Projects
Commit 15800bb1 authored by Markus Blatt's avatar Markus Blatt
Browse files

Bugfix: Removed Segfault.

[[Imported from SVN: r1748]]
parent 7e0e3059
No related branches found
No related tags found
No related merge requests found
......@@ -1601,7 +1601,7 @@ namespace Dune {
while(i<_maxit) {
// the loop
int end=std::min(_restart, _maxit-i);
int end=std::min(_restart, _maxit-i+1);
for (ii=1; ii<end; ++ii )
{
//std::cout<<" ii="<<ii<<" i="<<i<<std::endl;
......@@ -1640,8 +1640,10 @@ namespace Dune {
}
if(res.converged)
break;
*(p[0])=*(p[_restart-1]);
pp[0]=pp[_restart-1];
if(end==_restart) {
*(p[0])=*(p[_restart-1]);
pp[0]=pp[_restart-1];
}
}
// postprocess preconditioner
......
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