summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Include cctk_Faces.h automatically when "cctk.h" is included, for bothschnetter2003-10-13
| | | | | | | | | | Fortran and C. Also fix a bug in cctk_Faces.h, which used the non-existing macro CCTK_INTEGER_PRECISION. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3436 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print the schedule bin names, enclosed in square brackets, in theschnetter2003-10-13
| | | | | | | schedule tree. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3432 17b73243-c579-4c4c-a9d2-2d5706c11dac
* 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/flesh/trunk@3431 17b73243-c579-4c4c-a9d2-2d5706c11dac
* /* flush stdout/stderr and then wait a few seconds before callingtradke2003-10-09
| | | | | | | | | | | MPI_Abort() This cures a problem where processor 0 is slightly behind, eg. with activating thorns, and would print an error message (to stdout!!) about a thorn missing only a few milliseconds later. If other processors call CCTK_Abort() before that those messages wouldn't be seen. */ git-svn-id: http://svn.cactuscode.org/flesh/trunk@3428 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix typo.schnetter2003-10-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3427 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow vector groups of size 0.schnetter2003-10-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3426 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Properly initialize an allocated cTimerData structure.tradke2003-09-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3416 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bugfix in CCTKi_RegisterThorn(): an allocated structure wasn't properly ↵tradke2003-09-12
| | | | | | | | | initialized. This closes PR Cactus/1598: Fails Testsuites, problem seems to be in ActiveThorns.c. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3399 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check that all thorns which are required by a given thorn to be activatedtradke2003-09-04
| | | | | | | are also activated. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3394 17b73243-c579-4c4c-a9d2-2d5706c11dac
* typo in commentrideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3385 17b73243-c579-4c4c-a9d2-2d5706c11dac
* new CCTK_WRAGH timebinrideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3384 17b73243-c579-4c4c-a9d2-2d5706c11dac
* works with 2 byte integersrideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3383 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed flesh-internal routine STR_compi(). Instead, Util_StrCmpi() should betradke2003-08-22
| | | | | | | | used which is also better optimized. This closes PR Cactus/1584. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3382 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use Util_StrCmpi() instead of STR_CMP().tradke2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3381 17b73243-c579-4c4c-a9d2-2d5706c11dac
* implement new flesh parameter cactus::info_formatjthorn2003-08-05
| | | | | | | | | | | | | to optionally provide timestamps for CCTK_INFO() / CCTK_VInfo() output the current implementation uses gettimeofday(2) to provide microsecond-precision timing info if this is available (Cactus checks this at configure time), otherwise it falls back to time(3) (which only gives 1 second precision) which is in the ISO C standard, and so should be available everywhere... git-svn-id: http://svn.cactuscode.org/flesh/trunk@3376 17b73243-c579-4c4c-a9d2-2d5706c11dac
* renamejthorn2003-07-20
| | | | | | | | | | | | | | | | | Util_Table{Set,Get}FnPointer() --> Util_Table{Set,Get}FPointer() Util_Table{Set,Get}FnPointerArray() --> Util_Table{Set,Get}FPointerArray() (and keep old names as aliases for backwards compatability) this fixes bug Cactus/1308 also add test routines for Util_Table{Set,Get}PointerArray() Util_Table{Set,Get}FPointer() Util_Table{Set,Get}FPointer_Array() so there are now test routines for all the CCTK_POINTER and CCTK_FPOINTER routines (both scalar and array) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3321 17b73243-c579-4c4c-a9d2-2d5706c11dac
* renamejthorn2003-07-20
| | | | | | | | | | | | Util_TableSetFnPointer() --> Util_TableSetFPointer() Util_TableSetFnPointerArray() --> Util_TableSetFPointerArray() Util_TableGetFnPointer() --> Util_TableGetFPointer() Util_TableGetFnPointerArray() --> Util_TableGetFPointerArray() (and keep old names as aliases for backwards compatability) this is part of my fix for bug Cactus/1308 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3320 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix a memory leak in Util_TableCreateFromString():jthorn2003-07-19
| | | | | | | | | | | | | This routine first tries to create a table (if this fails it returns an error code). Then it tries to add entries to the table via Util_TableSetFromString(). If this fails it previously returned without destroy the table, thus leaking memory. The fix is to destroy the table before returning the error code. This fixes bug Cactus/1561. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3317 17b73243-c579-4c4c-a9d2-2d5706c11dac
* add standalone-test-driver tests for Util_Table{Set,Get}Pointerjthorn2003-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3316 17b73243-c579-4c4c-a9d2-2d5706c11dac
* put all Fortran-wrapper routines insidejthorn2003-07-19
| | | | | | | | | | | | | | | #ifndef UTIL_TABLE_TEST #endif /* !UTIL_TABLE_TEST */ since they use CCTK_FCALL and CCTK_FNAME, both of which are only expanded by the perl preprocessor, and thus won't be defined when compiling this (C) file directly for standalone tests. With this change (and my just-committed changes to the standalone-test makefile), the standalone test driver in Table.c now compiles ok, and passes all its tests. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3315 17b73243-c579-4c4c-a9d2-2d5706c11dac
* add EXTRA_CFLAGS to make changing command-line -Dxxx options easierjthorn2003-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3314 17b73243-c579-4c4c-a9d2-2d5706c11dac
* add header comment explaining why all the complciated machinery is needed :)jthorn2003-07-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3313 17b73243-c579-4c4c-a9d2-2d5706c11dac
* * allow C compiler and flags to be overridden from command linejthorn2003-07-19
| | | | | | | | * detect whether the configuration we're using has MPI, and if so link against the right MPI libraries git-svn-id: http://svn.cactuscode.org/flesh/trunk@3312 17b73243-c579-4c4c-a9d2-2d5706c11dac
* restore standalone-test Makefilejthorn2003-07-19
| | | | | | | | | | | | | This Makefile was formerly called makefile (see the cvs attic under that name for older history), but that caused problems with systems with case-insensitive file systems, where the build process confused this with Makefile . I discussed standalone-test Makefiles with Tom Goodale on 18.Jul.2003, and he said that with the name Makefile.standalone they're ok. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3311 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Missing prototypes for fortran versions of CCTK_ActiveTimeLevelsallen2003-07-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3297 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New functions for querying the number of active timelevels for a group/variableallen2003-07-17
| | | | | | | | | | | | | | int CCTK_ActiveTimeLevels(const cGH *GH, const char *groupname); int CCTK_ActiveTimeLevelsGN(const cGH *GH, const char *groupname); int CCTK_ActiveTimeLevelsGI(const cGH *GH, int groupindex); int CCTK_ActiveTimeLevelsVN(const cGH *GH, const char *varname); int CCTK_ActiveTimeLevelsVI(const cGH *GH, int varindex); All are basically wrappers for CCTK_GroupStorageIncrease requesting no increase of storage. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3283 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Replace CCTK_NumTimeLevels with CCTK_MaxTimeLevelsallen2003-07-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3282 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Deprecated CCTK_NumTimeLevels and all variants.allen2003-07-16
| | | | | | | | | | | | | | | | Replaced with new names int CCTK_MaxTimeLevels(const char *group); int CCTK_MaxTimeLevelsVN(const char *var); int CCTK_MaxTimeLevelsVI(int var); int CCTK_MaxTimeLevelsGN(const char *group); int CCTK_MaxTimeLevelsGI(int group); This is because we are adding CCTK_ActiveTimeLevels and also the names make more sense. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3281 17b73243-c579-4c4c-a9d2-2d5706c11dac
* prototypes for CCTK_NumTimeLevelsI and CCTK_NumTimeLevelsrideout2003-07-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3280 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed usused routines CCTKi_ExpectError() and CCTKi_ExpectOK().tradke2003-07-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3278 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Minor fixes for Cactus/1117allen2003-07-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3277 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for valid variable index in CCTK_NumTimeLevelsFromVarI().tradke2003-07-15
| | | | | | | This closes PR Cactus/1133. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3276 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a const qualifier to the cGH argument of all CCTK_SyncGroup*() fleshtradke2003-07-15
| | | | | | | routines. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3275 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a const qualifier to the 'cGH *' argument of the following functionstradke2003-07-14
| | | | | | | | | | | | | (and their default overloadables): - CCTK_SyncGroup - CCTK_EnableGroupCommI / CCTK_DisableGroupCommI - CCTK_EnableGroupStorageI / CCTK_DisableGroupStorageI - CCTK_GroupStorageIncrease / CCTK_GroupStorageDecrease - CCTK_CoordRegisterRange / CCTK_CoordRegisterRangePhysIndex You should also update all driver thorns (eg. PUGH) now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3274 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Free structure returned by Util_ExpressionParse().tradke2003-07-08
| | | | | | | This closes PR Cactus/1559. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3268 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Free the string returned by CCTK_GroupName();tradke2003-07-08
| | | | | | | This closes PR Cactus/1560. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3267 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Flush stdout before writing stderr for warnings.allen2003-07-07
| | | | | | | Fixes Cactus/1505 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3261 17b73243-c579-4c4c-a9d2-2d5706c11dac
* slightly expand comments as to what the error codesjthorn2003-06-27
| | | | | | | | | | | | CCTK_ERROR_INTERP_POINT_OUTSIDE CCTK_ERROR_INTERP_POINT_X_RANGE CCTK_ERROR_INTERP_POINT_EXCISED mean: add text that they can also mean that an interpolation point is too close to the outside / excised region git-svn-id: http://svn.cactuscode.org/flesh/trunk@3244 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed CactusDefaultAbort() to return with the given return code to abort withtradke2003-06-19
| | | | | | | | (and not with 0 as it was before). This fixes PR CactusPUGH/1546. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3242 17b73243-c579-4c4c-a9d2-2d5706c11dac
* cGH.h: Add three new fields cctk_timefac, cctk_levoff, andschnetter2003-06-17
| | | | | | | | | | | | | cctk_levoffdenom to the cGH structure that simplify handling coordinates in mesh refinement settings. cctk.h: Pass the new fields to Fortran routines. Add a new macro CCTK_ORIGIN_SPACE to simplify using these fields. CactusDefaultComm.c: Initialise the new fields. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3240 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_NumTimeLevels and CCTK_NumTimeLevelsIallen2003-06-08
| | | | | | | Fixes Cactus/1309 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3237 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change labelling of error messages for problems with parameter filesallen2003-06-07
| | | | | | | | | | to avoid confusion with standard warning levels. Tidied errors to handle the difference between 1 or more errors with better grammar. Fixes Cactus/1500 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3236 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add support for redirection of standard error.rideout2003-05-15
| | | | | | | | | Use -r[o|e|oe|eo] or -redirect=[o|e|oe|eo]. Document verbose option on -describe-all-parameters. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3218 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Set CCTK_ALL_FACES to 2^30-1, so that it sets the lowest 30 bits torideout2003-05-13
| | | | | | | | '1'. The top two bits are difficult (impossible?) to use because Fortran does not have unsigned ints. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3214 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Produce an error message when a user asks for parameter info forgoodale2003-05-12
| | | | | | | | | | | | | | a non-existing parameter. Additionally ff the parameter exists the code returns 0 as its exit status, and if it doesn't the code returns 1, so this can also be checked in scripts. We need to audit the current set of exit status codes, make sure they are distinct, and document them. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3213 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make it possible to use the string stuff in other standalone tests. Patchgoodale2003-05-09
| | | | | | | | | submitted by Jonathon Thornburg. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3212 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added level mode:goodale2003-05-09
| | | | | | | | | | | a scheduled routine can have options associated with it. LEVEL mode is where the routine should only be called once for any set of sub-grids with the same cctk_levfac numbers. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3209 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for macros for cache size before usingallen2003-04-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3203 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added OpenBSD-ish Util_strlcpy and Util_strlcat functions submitted by Jonathongoodale2003-04-22
| | | | | | | | | Thornburg. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3196 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Store function pointers in a struct before adding them to the array reductiontradke2003-03-26
| | | | | | | | | operator registry database. This prevents potential problems on platforms where function pointers have a different memory representation than data pointers. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3191 17b73243-c579-4c4c-a9d2-2d5706c11dac