From 63c7615a27857f00a602b6ab5ccff2cc512bf503 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 22 Oct 2013 21:53:20 -0400 Subject: CarpetInter2: Avoid const warnings --- Carpet/CarpetInterp2/src/fasterp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc index 512f2b718..00cf94f7c 100644 --- a/Carpet/CarpetInterp2/src/fasterp.cc +++ b/Carpet/CarpetInterp2/src/fasterp.cc @@ -1107,7 +1107,7 @@ namespace CarpetInterp2 { mrc_t::determine_mrc_info(); int const maxmrc = mrc_t::get_max_ind(); - MPI_Comm & comm_world = * (MPI_Comm *) GetMPICommWorld (cctkGH); + MPI_Comm const & comm_world = * (MPI_Comm const *) GetMPICommWorld (cctkGH); @@ -1641,7 +1641,7 @@ namespace CarpetInterp2 { assert (recv_descr.npoints == 0 or values.AT(v) != NULL); } - MPI_Comm & comm_world = * (MPI_Comm *) GetMPICommWorld (cctkGH); + MPI_Comm const & comm_world = * (MPI_Comm const *) GetMPICommWorld (cctkGH); int const mpi_tag = 0; // Post Irecvs -- cgit v1.2.3