// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetRegrid/src/regrid.hh,v 1.11 2004/01/25 14:57:30 schnetter Exp $ #ifndef CARPETREGRID_HH #define CARPETREGRID_HH #include #include "cctk.h" #include "cctk_Arguments.h" #include "bbox.hh" #include "gf.hh" #include "gh.hh" #include "vect.hh" #include "carpet.hh" namespace CarpetRegrid { using namespace std; using namespace Carpet; extern "C" { /* Scheduled functions */ int CarpetRegridParamcheck (CCTK_ARGUMENTS); /* Aliased functions */ // CCTK_INT CarpetRegrid_Regrid (const cGH * const cctkGH, // gh::rexts * bbsss, // gh::rbnds * obss, // gh::rprocs * pss); CCTK_INT CarpetRegrid_Regrid (CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const reflevel, CCTK_INT const map, CCTK_INT const size, CCTK_INT const * const nboundaryzones, CCTK_INT const * const is_internal, CCTK_INT const * const is_staggered, CCTK_INT const * const shiftout, CCTK_POINTER const bbsss_, CCTK_POINTER const obss_, CCTK_POINTER const pss_); } int BaseLevel (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); int Centre (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); int ManualGridpoints (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); void ManualGridpoints_OneLevel (const cGH * const cctkGH, const gh & hh, const int reflevel, const int reflevels, const ivect ilower, const ivect iupper, const bbvect obound, vector & bbs, vector & obs); int ManualCoordinates (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); void ManualCoordinates_OneLevel (const cGH * const cctkGH, const gh & hh, const int reflevel, const int reflevels, const rvect ilower, const rvect iupper, const bbvect obound, vector & bbs, vector & obs); ivect delta2int (const cGH * const cctkGH, const gh& hh, const rvect & rpos, const int reflevel); ivect pos2int (const cGH* const cctkGH, const gh& hh, const rvect & rpos, const int reflevel); int ManualGridpointList (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); int ManualCoordinateList (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); int Automatic (cGH const * const cctkGH, gh const & hh, int const reflevel, int const map, int const size, jjvect const & nboundaryzones, jjvect const & is_internal, jjvect const & is_staggered, jjvect const & shiftout, gh::rexts & bbsss, gh::rbnds & obss, gh::rprocs & pss); void Automatic_OneLevel (const cGH * const cctkGH, const gh & hh, const int reflevel, const int minwidth, const CCTK_REAL minfraction, const CCTK_REAL maxerror, const gf & errorvar, vector & bbs, vector & obs); void Automatic_Recursive (const cGH * const cctkGH, const gh & hh, const int minwidth, const CCTK_REAL minfraction, const CCTK_REAL maxerror, const data & errorvar, list & bbl, const ibbox & region); void Automatic_Recombine (list & bbl1, list & bbl2, list & bbl, const ibbox & iface, const int dir); } // namespace CarpetRegrid #endif // !defined(CARPETREGRID_HH)