summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Macros for specifying sets of faces of the computational domain,rideout2003-02-13
| | | | | | | | e.g. for use with boundary conditions. For now it contains only CCTK_ALL_FACES. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3140 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Renamed routine CCTK_NULLPointer() into CCTK_NullPointer().tradke2003-02-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3136 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added C wrapper for fortran function CCTK_NULLPointer() which takes notradke2003-02-12
| | | | | | | | arguments and returns a C-style NULL pointer. This is necessary for initializing CCTK_POINTER variables in fortran code. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3135 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make sure that strncpy'ed strings are properly NUL-terminated.tradke2003-02-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3133 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bugfix in setting size of a vector group, found by Ian Hawke.goodale2003-02-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3130 17b73243-c579-4c4c-a9d2-2d5706c11dac
* (from Jonathan Thornburg)tradke2003-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add new error code #define CCTK_ERROR_INTERP_POINT_EXCISED in anticipation of future support for excision * add new error code #define CCTK_ERROR_INTERP_POINT_OUTSIDE as a synomym for CCTK_ERROR_INTERP_POINT_X_RANGE (keeping the old one for backwards compatability) since the old name suggested that this had something to do with the X coordinate * renumber error codes to a more logical order The resulting set of error codes is this: /* * error codes for CCTK_InterpLocalUniform() */ /* the grid is too small for the selected interpolation molecule */ #define CCTK_ERROR_INTERP_GRID_TOO_TINY (-1000) /* an interpolation point is outside the input grid */ #define CCTK_ERROR_INTERP_POINT_OUTSIDE (-1001) /* ... old code for backwards compatability */ #define CCTK_ERROR_INTERP_POINT_X_RANGE (-1001) /* an interpolation point is in an excised region */ #define CCTK_ERROR_INTERP_POINT_EXCISED (-1002) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3116 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo my last commit which didn't seem to be needed.tradke2003-01-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3114 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put '#ifdef __cplusplus' around rcsid and CCTK_FILEVERSION.tradke2003-01-28
| | | | | | | This closes PR Cactus/1282. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3112 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CactusDefaultInterpGridArrays() as a default for the overloadabletradke2003-01-24
| | | | | | | | | routine CCTK_InterpGridArrays(). If no driver thorn was activated to overloaded the latter then the default routine will be called and print a level-0 warning saying so. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3099 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed the order of function parameters in CCTK_InterpGridArrays().tradke2003-01-22
| | | | | | | Now it is consistent with the order used in CCTK_InterpLocalUniform(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3094 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added fortran wrappers for most of the table API routines.tradke2003-01-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3092 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Parameter Cactus::max_runtime is now evaluated as REAL.tradke2003-01-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed datatype of parameter Cactus::max_runtime from INT into REAL.tradke2003-01-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3089 17b73243-c579-4c4c-a9d2-2d5706c11dac
* typo in grdocrideout2003-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3083 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed typos from last commit.tradke2003-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3076 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing prototypes for CCTK_Cmplx{Sin,Cos,Exp,Sqrt}().tradke2003-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3075 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Get rid of macro recursions when declaring prototypes of CCTK_COMPLEX routines.tradke2003-01-06
| | | | | | | | | | This fixes known problems with cpp on some platforms (Solaris, Darwin) when preprocessing source code which includes this header file. This closes PR Cactus-1354 and CactusPUGH-1167. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3073 17b73243-c579-4c4c-a9d2-2d5706c11dac
* For CCTK_InterpGridArrays(), merge the local and global parameter tables into atradke2003-01-06
| | | | | | | single one. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3071 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add group desription to printed schedule treeallen2002-12-30
| | | | | | | Closes Cactus/1283 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3068 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed an icc warning about a comment in a comment.tradke2002-12-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3052 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CVS commit on behalf of Jonathan Thornburg:tradke2002-12-20
| | | | | | | | | | | | | | | | | | add some more explanation for the CCTK_ERROR_INTERP_POINT_X_RANGE error code: > /* n.b. the "X" here abbreviates "not" -- the point could be out of range > /* along any coordinate axis */ and add a new error code: > /* the grid is too small for the selected interpolation molecule */ > #define CCTK_ERROR_INTERP_GRID_TOO_TINY (-1001) (Both of these are 31 letters long, which is exactly the maximum length that the C standard guarantees that compilers/preprocessors must honor.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3051 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding ; after CCTK_FILEVERSION macro.goodale2002-12-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3050 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Defined overloadable function CCTK_InterpGridArrays() and addedtradke2002-12-16
| | | | | | | CactusDefaultInterpGridArrays() as its default. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3048 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added fortran wrapper for CCTK_InterpGridArrays().tradke2002-12-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3047 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CactusDefaultInterpGridArrays() as default overloadable function fortradke2002-12-16
| | | | | | | CCTK_InterpGridArrays(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3046 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed gcc warning.tradke2002-12-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3045 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Declare CCTK_PointerTo() with return type of CCTK_POINTER.tradke2002-12-12
| | | | | | | This closes PR Cactus/1334. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3043 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added fortran wrappers for Util_TableCreateFromString() and Util_TableDestroy().tradke2002-12-11
| | | | | | | More to come. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3041 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added declaration for CCTK_PointerTo to the DECLARE_CCTK_FUNCTIONS macro.tradke2002-12-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3040 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implemented fortran wrapper functiontradke2002-12-11
| | | | | | | | | | | | addr = CCTK_PointerTo (var) CCTK_POINTER addr, var which returns the address of a variable passed in by reference from a fortran routine. This function is declared by the DECLARE_CCTK_FUNCTIONS macro. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3039 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Switch back to a typedef for CCTK_POINTER.tradke2002-11-12
| | | | | | | | Added 'typedef const void *CCTK_POINTER_TO_CONST;' which will be used for function alias arguments. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3030 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3029 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of the CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added another termination condition integer parameter cactus::max_runtimetradke2002-11-08
| | | | | | | and extended the keyword parameter cactus::terminate to select this condition. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3027 17b73243-c579-4c4c-a9d2-2d5706c11dac
* As long as we don't have 'typedef const void *CCTK_CONST_POINTER;'tradke2002-11-06
| | | | | | | | | | | | we have CCTK_POINTER as a '#define void *' so that one can add a const qualifier if needed. With '#define CCTK_POINTER void *' you can define a pointer to const data, with 'typedef void *CCTK_POINTER; const CCTK_POINTER p;' you cannot. These will be needed for the declaration of function aliases. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3024 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added fortran wrapper for CCTK_FirstVarIndex().tradke2002-11-03
| | | | | | | This closes PR Cactus/1292. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3019 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Pass NULL instead of a 'struct timezone *' pointer as second argument totradke2002-10-31
| | | | | | | | | gettimeofday(2). The timezone structure is obsolete and not even defined anymore when compiling with gcc and '-ansi'. Also did some reformatting and completed grdoc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3018 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Setup cache after parameters are read, so thatrideout2002-09-16
| | | | | | | e.g. cactus::manual_cache_setup is recognized. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3002 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Commented out the -x <nprocs> option until it is added.allen2002-08-21
| | | | | | | Closes Cactus/900 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2982 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Give line number when ActiveThorns parameter failsallen2002-08-20
| | | | | | | Fixes Cactus/1024 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2981 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed error message slightly for missing implementations in ActiveThornsallen2002-08-20
| | | | | | | list git-svn-id: http://svn.cactuscode.org/flesh/trunk@2980 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Initialize all items in the StringList structure to NULL when a listallen2002-08-18
| | | | | | | | | is created Fixes Cactus/1201 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2959 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix error message for printing thorn dependencies.tradke2002-08-12
| | | | | | | This closes PR Cactus/1188. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2945 17b73243-c579-4c4c-a9d2-2d5706c11dac
* If an implementation is required but not activated, print the name of thetradke2002-07-12
| | | | | | | | implementation and thorn which requires it. This closes PR Cactus/1121. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2929 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_CoordRegisterData now returns with error code -5 if passed anrideout2002-07-08
| | | | | | | | invalid grid function name. It also gives a more descriptive error message in such a case. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2924 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Catch malloc() of zero bytes explicitely.tradke2002-06-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2918 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed macros CCTK_GROUPLENGTH and CCTK_STORAGESIZE and the declaration of thetradke2002-06-21
| | | | | | | | | | | magic 'cctk_one' constant which aren't needed anymore for building the thorn bindings. You must also update src/main/Groups.c and lib/sbin/GridFuncStuff.pl now and do a 'make <configuration>-clean; make <configuration>-rebuild;'. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2911 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed the definition of the magic 'cctk_one' constant used to build the thorntradke2002-06-21
| | | | | | | | | | | | | | bindings. Added internal routine CCTKi_VarDataPtr() which returns the data pointer for a given variable+timelevel, or NULL if the variable doesn't exist. This routine is regarded internal and should not be used anywhere else but in the thorn bindings. You must also update src/main/Groups.c and lib/sbin/GridFuncStuff.pl now and do a 'make <configuration>-clean; make <configuration>-rebuild;'. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2910 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[from Jonathan Thornburg]]tradke2002-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve error checking for nonexistent interpolation operators: * Instead of just testing that *some* operator is registered under this handle, also test that the particular operator being called is registered. * Upgrade the test-failed warning for this test (i.e. the warning you get if you try to use an unregistered interpolation operator) from level 3 to level 0 ==> should always abort the Cactus run rather than going ahead and trying to call through a null function pointer and core-dumping. * Add a hint to the error message about one common cause of this problem, eg CCTK_InterpGV(): no interpolation operator is registered under the handle 1 (did you activate PUGHInterp or some other thorn providing this interpolation operator? CCTK_InterpLocal(): no interpolation operator is registered under the handle 1 (did you activate LocalInterp or some other thorn providing this interpolation operator? CCTK_InterpLocalUniform(): no interpolation operator is registered under the handle 1 (did you activate LocalInterp or some other thorn providing this interpolation operator? git-svn-id: http://svn.cactuscode.org/flesh/trunk@2901 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't call malloc() with a size of zero bytes.tradke2002-06-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2900 17b73243-c579-4c4c-a9d2-2d5706c11dac