Skip to content
Snippets Groups Projects
Commit 5f8fec3b authored by Christian Engwer's avatar Christian Engwer
Browse files

exchange is const member

[[Imported from SVN: r100]]
parent 70c18bac
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ namespace Dune {
////////////////////////////////////////////////////////////////////////////
template <int DIM>
void spgrid<DIM>::exchange(level l, Vector< spgrid<DIM> > & ex) {
void spgrid<DIM>::exchange(level l, Vector< spgrid<DIM> > & ex) const {
// TIME_EX -= MPI_Wtime();
for (int d=0; d<DIM; d++) {
/* every Process who's d'th coord is even */
......@@ -318,7 +318,7 @@ namespace Dune {
*/
template <int DIM>
void spgrid<DIM>::Send(int dir, Dune::side s,
level l, Vector< spgrid<DIM> > & ex) {
level l, Vector< spgrid<DIM> > & ex) const {
/* Calc the slab which we need to send */
int sz = 1;
array<DIM> begin;
......@@ -369,7 +369,8 @@ namespace Dune {
*/
template <int DIM>
void spgrid<DIM>::Recv(int dir, Dune::side s,
level l, Vector< spgrid<DIM> > & ex) {
level l, Vector< spgrid<DIM> > & ex) const {
MPI_Status mpi_status;
/* Calc the slab which we need to send */
int sz = 1;
array<DIM> begin;
......
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