aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Replace Cactus complex number type with C/C++ complex numbersHEADsvnmastereschnett2013-03-08
| | | | | | | | | | | | | | | | Map CCTK_COMPLEX to "double complex" in C, and "complex<double>" in C++. (It is already mapped to "double complex" in Fortran.) Update type definitions. Re-implement Cactus complex number math functions by calling the respective C functions. Update thorn that access real and imaginary parts of complex numbers to use standard-conforming methods instead. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@268 c78560ca-4b45-4335-b268-5f3340f3cb52
* Don't optimise array indexing -- use standard methodseschnett2013-01-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@266 c78560ca-4b45-4335-b268-5f3340f3cb52
* Support array padding (take cctk_ash into account)eschnett2013-01-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@265 c78560ca-4b45-4335-b268-5f3340f3cb52
* Introduce cctk_ash, retire cctk_lssheschnett2012-07-04
| | | | | | | | | | | | Introduce cctk_ash, describing the process-local array shape that has been allocated. This may be larger than cctk_lsh, the process-local shape that should be used. Retire cctk_lssh and related infrastructure to handle staggered grid functions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@262 c78560ca-4b45-4335-b268-5f3340f3cb52
* Set cctkGH->cctk_delta_space instead of cctk_delta_spaceeschnett2011-12-01
| | | | | | | | Set cctkGH->cctk_delta_space instead of modifying cctk_delta_space; this will allow declaring cctk_delta_space as const later. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@259 c78560ca-4b45-4335-b268-5f3340f3cb52
* fixing wrong commityye002008-05-25
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@242 c78560ca-4b45-4335-b268-5f3340f3cb52
* worng commit, fixingyye002008-05-25
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@241 c78560ca-4b45-4335-b268-5f3340f3cb52
* need this thorn to be update to date for funwaveyye002008-05-25
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@240 c78560ca-4b45-4335-b268-5f3340f3cb52
* Implement new keyword parameter CartGrid3D::set_coordinate_ranges_on,schnetter2008-03-05
| | | | | | | | | | | which has the possible values "all grids", "all maps", or "first level". "all grids" is the default, "all maps" is for multi-patch simulations, and "first level" is for mesh refinement environments where the coarsest grid may not actually exist, such as e.g. in Paramesh. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@239 c78560ca-4b45-4335-b268-5f3340f3cb52
* Correct error in previous commitschnetter2008-02-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@237 c78560ca-4b45-4335-b268-5f3340f3cb52
* When type="multipatch", and when the aliased functionschnetter2008-02-20
| | | | | | | | | | MultiPatch_ConvertFromPhysicalBoundary is available, then call this function instead of ConvertFromPhysicalBoundary. This is necessary to set up the coordinate extent correctly when different patches have different boundary sizes. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@236 c78560ca-4b45-4335-b268-5f3340f3cb52
* Replace #ifdef CCTK_INT1 with #ifdef HAVE_CCTK_INT1, etc., for variousschnetter2008-02-20
| | | | | | | variable types. HAVE_CCTK_* is now preferred. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@235 c78560ca-4b45-4335-b268-5f3340f3cb52
* Correct function prototypes: Functions in the startup bin must returnschnetter2008-02-20
| | | | | | | | int, not void. Functions in other bins must return void, not int. None of the function can return an error code. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@234 c78560ca-4b45-4335-b268-5f3340f3cb52
* Initialise all entries in the symmetry[3] array passed by the user intotradke2007-02-16
| | | | | | | | | GetCartSymVI() to GFSYM_UNKNOWN (0), then set symmetries for individual dimensions. This makes sure that GetCartSymVI() always returns a defined set of symmetry values. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@233 c78560ca-4b45-4335-b268-5f3340f3cb52
* check the varindex argument passed into GetCartSymVI() and SetCartSymVI()tradke2007-02-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@232 c78560ca-4b45-4335-b268-5f3340f3cb52
* Correct an error with the coordinate setup on multi-block systems.schnetter2006-07-04
| | | | | | | | | | | Call CartGrid3D_SetRanges in local mode instead of singlemap mode. Re-introduce an explicit check in that routine whether it is called on the coarsest level. This is necessary because the flesh coordinate information needs to be set up according to the coarsest level's grid points. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@231 c78560ca-4b45-4335-b268-5f3340f3cb52
* Add a new manual check to ensure that the coordinate ranges are onlyschnetter2006-05-15
| | | | | | | set up once when there is mesh refinement. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@230 c78560ca-4b45-4335-b268-5f3340f3cb52
* Schedule CartGrid3D_SetRanges in singlemap mode instead of checkingschnetter2006-05-11
| | | | | | | manually whether it was called on the coarsest grid. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@229 c78560ca-4b45-4335-b268-5f3340f3cb52
* Slight modification of the just committed patchtradke2006-05-11
| | | | | | | | | http://www.cactuscode.org/pipermail/patches/2006-March/000154.html: Pass the number type as a macro argument, rather than defining it as a macro itself. This shortens the code somewhat, no functionality has changed. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@228 c78560ca-4b45-4335-b268-5f3340f3cb52
* This applies Steve White's patchtradke2006-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | http://www.cactuscode.org/pipermail/patches/2006-March/000154.html: Intel icc complains about lots of questionabale type conversions in CartGrid3D/src/Symmetry.c. Find attached a patch, to be applied from within the CartGrid3D directory. Notes ----- * Code is macros within macros within macros that depend on outside entities. Sometimes a type name is passed. * The innermost macro performs the type conversion * A typename is passed, but unfortunately, it isn't always the type being converted. Sometimes it's a CCTK_COMPLEX type, but the type being converted is only a component of the complex. Solution -------- Invented a new preprocessor symbol, NUMBER_TYPE, which indicates the of a scalar multiplication. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@227 c78560ca-4b45-4335-b268-5f3340f3cb52
* Applying Erik's patch from the Patchs list 2.12.05swhite2006-05-11
| | | | | | | CartGrid3D: Support patches with different grid spacing git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@226 c78560ca-4b45-4335-b268-5f3340f3cb52
* Use CCTK_WARN instead of CCTK_VWarn.schnetter2005-12-02
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@223 c78560ca-4b45-4335-b268-5f3340f3cb52
* Use CCTK_BYTE instead of CCTK_CHARschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@215 c78560ca-4b45-4335-b268-5f3340f3cb52
* First cut at reducing compilation time/load of this file. Havegoodale2005-01-29
| | | | | | | | halved the time. Needs a bit of tidying and could be made a bit more efficient. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@214 c78560ca-4b45-4335-b268-5f3340f3cb52
* Fixed the set up for coordinate system tables which should be done only oncetradke2005-01-03
| | | | | | | | | | | | | | (on the coarsest refinement level). Split CartGrid3D() into two level-mode routines: * CartGrid3D_SetRanges() sets up the coordinate ranges from parameters. This is only done once (on the coarsest refinement level). * CartGrid3D_SetCoordinates() sets up the coordinate grid functions (for all levels, both in BASEGRID and REGRID). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@213 c78560ca-4b45-4335-b268-5f3340f3cb52
* assert fixyye002004-08-12
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@210 c78560ca-4b45-4335-b268-5f3340f3cb52
* Change registered symmetry name to "CartGrid3D" so that people knowschnetter2004-07-25
| | | | | | | where this symmetry condition comes from. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@209 c78560ca-4b45-4335-b268-5f3340f3cb52
* Added prototypes for scheduled functions.tradke2004-06-21
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@208 c78560ca-4b45-4335-b268-5f3340f3cb52
* Added missing prototype for CartGrid3D_ApplyBC().tradke2004-06-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@207 c78560ca-4b45-4335-b268-5f3340f3cb52
* Recalculate the coordinate grid functions in the postregrid bin.schnetter2004-06-17
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@206 c78560ca-4b45-4335-b268-5f3340f3cb52
* Untabified. Please try to adhere to the Cactus coding guidelines whengoodale2004-05-17
| | | | | | | modifying or adding files. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@205 c78560ca-4b45-4335-b268-5f3340f3cb52
* Removed doubly defined local variable to get rid of gcc warning.tradke2004-05-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@204 c78560ca-4b45-4335-b268-5f3340f3cb52
* Added prototype for fortran wrapper of DecodeSymParameters3D().tradke2004-05-14
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@203 c78560ca-4b45-4335-b268-5f3340f3cb52
* Removed double DECLARE_CCTK_ARGUMENTS in one functionallen2004-04-07
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@200 c78560ca-4b45-4335-b268-5f3340f3cb52
* Making warnings about using old symmetry stuff less severe.goodale2004-03-26
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@197 c78560ca-4b45-4335-b268-5f3340f3cb52
* Do not report an error when no variables have been selected for aschnetter2004-03-26
| | | | | | | symmetry condition. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@196 c78560ca-4b45-4335-b268-5f3340f3cb52
* Use the new SymBase infrastructure to find out about symmetry boundaries.schnetter2004-03-09
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@195 c78560ca-4b45-4335-b268-5f3340f3cb52
* Add Fortran wrapper for DecodeSymParameters3Dschnetter2004-03-09
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@194 c78560ca-4b45-4335-b268-5f3340f3cb52
* Apply symmetry boundary conditions on all faces (not only on lower ones).tradke2004-03-04
| | | | | | | Now you can have negative octant, quadrant, etc. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@193 c78560ca-4b45-4335-b268-5f3340f3cb52
* Use the real convergence factor instead of the value 2.schnetter2004-02-06
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@192 c78560ca-4b45-4335-b268-5f3340f3cb52
* Hardwire convergence factor to 2schnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@191 c78560ca-4b45-4335-b268-5f3340f3cb52
* Provide a coordinate-thorn and symmetry-thorn independent way ofschnetter2004-01-19
| | | | | | | | | specifying the shape of the physical domain and the location of the boundary points. The advantage of that is that it is now much easier to change the resolution. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@190 c78560ca-4b45-4335-b268-5f3340f3cb52
* Include cctk.h to get the declaration of cGH.schnetter2004-01-05
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@189 c78560ca-4b45-4335-b268-5f3340f3cb52
* Change the way in which pointers are passed to and from Fortran.schnetter2003-10-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@187 c78560ca-4b45-4335-b268-5f3340f3cb52
* Introduce the new Cactus variable type CCTK_INT1.schnetter2003-10-13
| | | | | | | Extend routines to handle the new type. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@185 c78560ca-4b45-4335-b268-5f3340f3cb52
* Changed the datatype of the PHYSICALMIN/PHYSICALMAX options in coordinate tablestradke2003-09-01
| | | | | | | from REAL to INT. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@184 c78560ca-4b45-4335-b268-5f3340f3cb52
* A few optimizations which also make the code more readable.tradke2003-08-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@183 c78560ca-4b45-4335-b268-5f3340f3cb52
* Remove extraneous comment. Fixes CactusBase/1593.rideout2003-08-26
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@182 c78560ca-4b45-4335-b268-5f3340f3cb52
* Update to use CoordBase. Registration of spher3d is deprecated.rideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@180 c78560ca-4b45-4335-b268-5f3340f3cb52
* Patch by Erik Schnetter: use the new macros CCTK_DELTA_SPACE andtradke2003-06-17
| | | | | | | | | CCTK_ORIGIN_SPACE to initialize the cGH structure. These changes require an update of the flesh also. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@179 c78560ca-4b45-4335-b268-5f3340f3cb52