From 377a3ccb4bb67137aea853801f4a881607577784 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 3 Aug 2008 22:05:31 -0500 Subject: CarpetInterp2: Make code compile with PGI compilers Rewrite the code slightly so that it compilers with the PGI C++ compiler. --- Carpet/CarpetInterp2/src/fasterp.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Carpet/CarpetInterp2') diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc index 86734c3a5..66c9e9fd1 100644 --- a/Carpet/CarpetInterp2/src/fasterp.cc +++ b/Carpet/CarpetInterp2/src/fasterp.cc @@ -39,17 +39,18 @@ namespace CarpetInterp2 { template<> int get_poison () { return ipoison; } template<> CCTK_REAL get_poison () { return poison; } - template - void fill (vector & v, T const & val) - { - fill (v.begin(), v.end(), val); - } + // template + // void fill (vector & v, T const & val) + // { + // fill (v.begin(), v.end(), val); + // } template void fill_with_poison (vector & v) { #ifndef NDEBUG - fill (v, get_poison()); + // fill (v, get_poison()); + fill (v.begin(), v.end(), get_poison()); #endif } @@ -197,10 +198,13 @@ namespace CarpetInterp2 { for (int d=0; d