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

Changed boundary conditions.

[[Imported from SVN: r532]]
parent ce0cbf16
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,8 @@ void setBoundary(Dune::BlockVector<Dune::FieldVector<double,BS> >& lhs,
G y = i->global()%n;
if(x==0 || y ==0 || x==n-1 || y==n-1) {
lhs[i->local()]=rhs[i->local()];
double h = 1.0 / ((double) n);
lhs[i->local()]=rhs[i->local()]=((double)(x/(n-1)))*(double(y/(n-1)))*h*h;
}
}
}
......
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