From 55513a20c041ef782bbd5f74b0c011673cc9b32e Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 26 May 2013 17:12:12 -0400 Subject: CarpetLib: Disable bboxset2 by default Change from CARPET_NO_BBOXSET2 and CARPET_BBOXSET2 to CARPET_ENABLE_BBOXSET2 (build it) and CARPET_USE_BBOXSET2 (use it). --- Carpet/CarpetLib/src/bboxset.hh | 4 ++-- Carpet/CarpetLib/src/bboxset2.cc | 4 ++-- Carpet/CarpetLib/src/bboxset2.hh | 4 ++-- Carpet/CarpetLib/src/defs.cc | 12 ++++++------ Carpet/CarpetLib/src/defs.hh | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) (limited to 'Carpet/CarpetLib') diff --git a/Carpet/CarpetLib/src/bboxset.hh b/Carpet/CarpetLib/src/bboxset.hh index 463e19f54..d0407b7c4 100644 --- a/Carpet/CarpetLib/src/bboxset.hh +++ b/Carpet/CarpetLib/src/bboxset.hh @@ -2,11 +2,11 @@ #define BBOXSET_HH #include "bboxset1.hh" -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 # include "bboxset2.hh" #endif -#ifdef CARPET_BBOXSET2 +#ifdef CARPET_USE_BBOXSET2 using namespace bboxset2; #else using namespace bboxset1; diff --git a/Carpet/CarpetLib/src/bboxset2.cc b/Carpet/CarpetLib/src/bboxset2.cc index 447d04951..77bbcd085 100644 --- a/Carpet/CarpetLib/src/bboxset2.cc +++ b/Carpet/CarpetLib/src/bboxset2.cc @@ -1,6 +1,6 @@ #include -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 #include "bboxset2.hh" @@ -35,4 +35,4 @@ namespace bboxset2 { } // namespace bboxset2 -#endif // #ifndef CARPET_NO_BBOXSET2 +#endif // #ifdef CARPET_ENABLE_BBOXSET2 diff --git a/Carpet/CarpetLib/src/bboxset2.hh b/Carpet/CarpetLib/src/bboxset2.hh index bac295377..c3a78687b 100644 --- a/Carpet/CarpetLib/src/bboxset2.hh +++ b/Carpet/CarpetLib/src/bboxset2.hh @@ -23,7 +23,7 @@ using namespace std; -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 namespace bboxset2 { @@ -1362,7 +1362,7 @@ inline ostream& operator<<(ostream& os, const bboxset& bs) } // namespace bboxset2 -#endif // #ifndef CARPET_NO_BBOXSET2 +#endif // #ifdef CARPET_ENABLE_BBOXSET2 diff --git a/Carpet/CarpetLib/src/defs.cc b/Carpet/CarpetLib/src/defs.cc index f2a304e7a..3dfc2c5ad 100644 --- a/Carpet/CarpetLib/src/defs.cc +++ b/Carpet/CarpetLib/src/defs.cc @@ -285,7 +285,7 @@ ostream& output (ostream& os, const set& s) { return os; } -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 // Shared pointer output template ostream& output (ostream& os, const shared_ptr& s) { @@ -355,7 +355,7 @@ template size_t memoryof (vector > const & v); template size_t memoryof (vector > const & v); template size_t memoryof (vector > const & v); template size_t memoryof (vector > const & v); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 template size_t memoryof (vector> const & v); #endif template size_t memoryof (vector const & v); @@ -394,7 +394,7 @@ template istream& input (istream& os, vector >& v); template istream& input (istream& os, vector >& v); //template istream& input (istream& os, vector& v); template istream& input (istream& os, vector >& v); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 template istream& input (istream& os, vector>& v); #endif template istream& input (istream& os, vector& v); @@ -415,7 +415,7 @@ template istream& input (istream& os, vector > >& v); //template ostream& output (ostream& os, const list& l); //template ostream& output (ostream& os, const list& l); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 //template ostream& output (ostream& os, const map >>& m); //template ostream& output (ostream& os, const map >>& m); //template ostream& output (ostream& os, const map >>& m); @@ -428,7 +428,7 @@ template ostream& output (ostream& os, const set >& s); template ostream& output (ostream& os, const set >& s); template ostream& output (ostream& os, const set >& s); //template ostream& output (ostream& os, const set >& s); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 //template ostream& output (ostream& os, const shared_ptr >& s); #endif //template ostream& output (ostream& os, const stack& s); @@ -440,7 +440,7 @@ template ostream& output (ostream& os, const vector >& v); template ostream& output (ostream& os, const vector >& v); template ostream& output (ostream& os, const vector& v); template ostream& output (ostream& os, const vector >& v); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 template ostream& output (ostream& os, const vector>& v); #endif template ostream& output (ostream& os, const vector& v); diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh index e52c94d12..398057d4d 100644 --- a/Carpet/CarpetLib/src/defs.hh +++ b/Carpet/CarpetLib/src/defs.hh @@ -70,7 +70,7 @@ char const * const eol = "\n"; template class vect; template class bbox; namespace bboxset1 { template class bboxset; } -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 namespace bboxset2 { template class bboxset; } #endif template class fulltree; @@ -83,7 +83,7 @@ typedef bbox ibbox; typedef bbox jbbox; typedef bbox rbbox; namespace bboxset1 { typedef bboxset ibset; } -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 namespace bboxset2 { typedef bboxset ibset; } #endif @@ -338,7 +338,7 @@ template ostream& output (ostream& os, const list& l); template ostream& output (ostream& os, const map& m); template ostream& output (ostream& os, const pair& p); template ostream& output (ostream& os, const set& s); -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 template ostream& output (ostream& os, const shared_ptr& s); #endif template ostream& output (ostream& os, const stack& s); @@ -364,7 +364,7 @@ inline ostream& operator<< (ostream& os, const set& s) { return output(os,s); } -#ifndef CARPET_NO_BBOXSET2 +#ifdef CARPET_ENABLE_BBOXSET2 template inline ostream& operator<< (ostream& os, const shared_ptr& s) { return output(os,s); -- cgit v1.2.3