From 2a38d7eb6a6db8b150a9f6fd5f1c844b8d0ef74a Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 1 Jan 2005 18:22:00 +0000 Subject: global: Turn CarpetLib templates into classes Turn most of the templates in CarpetLib, which used to have the form template class XXX into classes, i.e., into something like class XXX by setting D to the new global integer constant dim, which in turn is set to 3. The templates gf and data, which used to be of the form template class XXX are now of the form template class XXX The templates vect, bbox, and bboxset remain templates. This change simplifies the code somewhat. darcs-hash:20050101182234-891bb-c3063528841f0d078b12cc506309ea27d8ce730d.gz --- Carpet/CarpetRegrid/src/regrid.hh | 80 +++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'Carpet/CarpetRegrid/src/regrid.hh') diff --git a/Carpet/CarpetRegrid/src/regrid.hh b/Carpet/CarpetRegrid/src/regrid.hh index 460290646..fea47e073 100644 --- a/Carpet/CarpetRegrid/src/regrid.hh +++ b/Carpet/CarpetRegrid/src/regrid.hh @@ -43,25 +43,25 @@ namespace CarpetRegrid { int BaseLevel (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); int Centre (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); int ManualGridpoints (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); void ManualGridpoints_OneLevel (const cGH * const cctkGH, - const gh & hh, + const gh & hh, const int rl, const int numrl, const ivect ilower, @@ -71,13 +71,13 @@ namespace CarpetRegrid { vector & obs); int ManualCoordinates (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); void ManualCoordinates_OneLevel (const cGH * const cctkGH, - const gh & hh, + const gh & hh, const int rl, const int numrl, const rvect lower, @@ -87,55 +87,55 @@ namespace CarpetRegrid { vector & obs); ivect delta2int (const cGH * const cctkGH, - const gh& hh, + const gh& hh, const rvect & rpos, const int rl); ivect pos2int (const cGH* const cctkGH, - const gh& hh, + const gh& hh, const rvect & rpos, const int rl); int ManualGridpointList (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); int ManualCoordinateList (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); int Moving (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); int Automatic (cGH const * const cctkGH, - gh const & hh, - gh::rexts & bbsss, - gh::rbnds & obss, - gh::rprocs & pss); + gh const & hh, + gh::rexts & bbsss, + gh::rbnds & obss, + gh::rprocs & pss); void Automatic_OneLevel (const cGH * const cctkGH, - const gh & hh, + const gh & hh, const int rl, const int numrl, const int minwidth, const CCTK_REAL minfraction, const CCTK_REAL maxerror, - const gf & errorvar, + const gf & errorvar, vector & bbs, vector & obs); void Automatic_Recursive (const cGH * const cctkGH, - const gh & hh, + const gh & hh, const int minwidth, const CCTK_REAL minfraction, const CCTK_REAL maxerror, - const data & errorvar, + const data & errorvar, list & bbl, const ibbox & region); -- cgit v1.2.3