aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce/src
diff options
context:
space:
mode:
authorschnetter <>2003-03-12 08:34:00 +0000
committerschnetter <>2003-03-12 08:34:00 +0000
commitec58c3b331ed01c871bff85bf2a99e482b771c0c (patch)
treefb074a633e2a4ab0be3bf92245a9ec60bc2958a3 /Carpet/CarpetReduce/src
parent788e08d5874a630f5cce5b804b4eedd15d5a9fd0 (diff)
Change many "cGH *" to "const cGH *", and apply corresponding updates
Change many "cGH *" to "const cGH *", and apply corresponding updates to the const-ness of other variables. darcs-hash:20030312083444-07bb3-0f26f780a1bdfb844c3e00383f787d674dc61c84.gz
Diffstat (limited to 'Carpet/CarpetReduce/src')
-rw-r--r--Carpet/CarpetReduce/src/reduce.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/Carpet/CarpetReduce/src/reduce.cc b/Carpet/CarpetReduce/src/reduce.cc
index fe81eaf55..4c59f54cf 100644
--- a/Carpet/CarpetReduce/src/reduce.cc
+++ b/Carpet/CarpetReduce/src/reduce.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetReduce/src/reduce.cc,v 1.13 2002/10/24 10:51:13 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetReduce/src/reduce.cc,v 1.14 2003/03/12 09:34:44 schnetter Exp $
#include <assert.h>
#include <float.h>
@@ -20,7 +20,7 @@
#include "reduce.hh"
extern "C" {
- static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetReduce/src/reduce.cc,v 1.13 2002/10/24 10:51:13 schnetter Exp $";
+ static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetReduce/src/reduce.cc,v 1.14 2003/03/12 09:34:44 schnetter Exp $";
CCTK_FILEVERSION(Carpet_CarpetReduce_reduce_cc);
}
@@ -275,7 +275,7 @@ namespace CarpetReduce {
template<class T,class OP>
void finalise (void* const outval, const void* const cnt)
{
- OP::finalise (*(T*)outval, *(T*)cnt);
+ OP::finalise (*(T*)outval, *(const T*)cnt);
}
@@ -661,10 +661,10 @@ namespace CarpetReduce {
#define REDUCTION(OP) \
- int OP##_arrays (cGH * const cgh, const int proc, \
- const int num_dims, int * const dims, \
+ int OP##_arrays (const cGH * const cgh, const int proc, \
+ const int num_dims, const int * const dims, \
const int num_inarrays, \
- void ** const inarrays, const int intype, \
+ const void * const * const inarrays, const int intype, \
const int num_outvals, \
void * const outvals, const int outtype) \
{ \
@@ -675,10 +675,10 @@ namespace CarpetReduce {
&red); \
} \
\
- int OP##_GVs (cGH * const cgh, const int proc, \
+ int OP##_GVs (const cGH * const cgh, const int proc, \
const int num_outvals, \
const int outtype, void * const outvals, \
- const int num_invars, int * const invars) \
+ const int num_invars, const int * const invars) \
{ \
const OP red; \
return ReduceGVs (cgh, proc, \