summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* 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
* Check if there is an local/grid interpolation operator registered under atradke2002-05-31
| | | | | | | given name. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2878 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed wrong number of arguments in calls to CCTK_VWarn().tradke2002-05-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2869 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing include "cctki_Parameter.h".tradke2002-05-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2868 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check consistency of fprintf(3)-style format strings passed to CCTK_VWarn()tradke2002-05-29
| | | | | | | | | | | | | | | | and CCTK_VInfo() when using GNU C/C++. eg now CCTK_REAL r = 3.14; CCTK_VInfo(CCTK_THORNSTRING, "r=%d", r); will give a gcc warning message, because r doesn't match the %d format. Also added missing prototype for CCTK_ParamWarn(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@2867 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed a garbage line in the grdoc.tradke2002-05-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2866 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Completed Util_TableSetFromString() to also parse string values and arrays.tradke2002-05-23
| | | | | | | See its Function Reference entry in the User's Guide for details. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2850 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[from Jonathan Thornburg]]tradke2002-05-23
| | | | | | | | | | | | | | | | | | | | | | | User-visible changes to the register-interpolation-operator routines: * (almost) all error messages now include the name of the calling thorn * if an attempt to register an interpolation operator fails because it's already registered, the error message now also includes the name of the thorn which had previously registered the operator The new error message format looks like this: > WARNING[L1,P0] (Cactus): CCTKi_InterpRegisterOperatorLocal: > (called from thorn PUGHInterp) > Ignoring attempt to register operator "third-order uniform cartesian" > because it has already been registered by thorn LocalInterp Internal changes: * expand struct interp_info to store the extra info for the fancier error messages * rename internal fn get_interp_info() --> GetOrSetupInterpInfo() to (a) comply with Cactus naming conventions, and (b) better describe what the function actually does git-svn-id: http://svn.cactuscode.org/flesh/trunk@2849 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new error code UTIL_ERROR_TABLE_NO_MIXED_TYPE_ARRAY which will be returnedtradke2002-05-22
| | | | | | | by Util_TableSetFromString() if different array values have different datatypes. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2847 17b73243-c579-4c4c-a9d2-2d5706c11dac
* TAGS tables for groups.goodale2002-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now do TAGS='foo=... bar=...' in a group definition in your interface.ccl files. The intention is that this can be used to assign tensor types and coordinate systems to gorups. This is implemented as a table, the handle of which you can get by calling CCTK_GroupTagsTable or CCTK_GroupTagsTableI and query using the normal table operators. Note that currently the Util_TableCreateFromString function, which is used to generate the table, doesn't support setting of string members. This will be changed soon. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2845 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding const qualifier to the rcsid.goodale2002-05-21
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2843 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Corrected allowed values for -paramater-level command line option.rideout2002-05-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2842 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_VParamWarn for variable argument listallen2002-05-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2840 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fortran wrappers for CCTK_OutputVar and CCTK_OutputVarAsallen2002-05-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2838 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Give error message if tried to set an array parameter without the [number].goodale2002-05-20
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2836 17b73243-c579-4c4c-a9d2-2d5706c11dac