summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* 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
* Allow routines scheduled within groups triggered in analysis to be run if thegoodale2003-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | enclosing group is triggered. The logic is now that if a group is triggered at analysis, all member routines or groups of that group will be automatically triggered unless they in turn have a trigger, in which case that overrides the trigger. E.g. schedule TestSchedule_CalcOne AT Analysis before TestSchedule_Analysis { storage: testschedule::one trigger: testschedule::one lang: C } "Calculate the value of one" schedule group TestSchedule_Analysis at ANALYSIS { trigger: testschedule::two testschedule::three } "TestSchedule top level analysis group" schedule TestSchedule_CalcTwo IN TestSchedule_Analysis { trigger: testschedule::two storage: testschedule::two lang: C } "Calculate the value of two" schedule GROUP TestSchedule_Analysis2 in TestSchedule_Analysis after TestSchedule_CalcTwo { trigger: testschedule::three } "TestSchedule second level analysis group" schedule TestSchedule_CalcThree IN TestSchedule_Analysis2 { trigger: testschedule::three storage: testschedule::three lang: C } "Calculate the value of three" will call the appropriate routines to calculate one, two or three if these are selected for output. As before, output is done on any trigger variable or variable group when a routine with the variable as a trigger exits. So in the above example "three" is output when CalcThree exits. If this is not desired, the trigger and storage for "three" could have been placed on the enclosing schedule group, and then the routine would have been called even if output was only requested for "two" and not for "three". This fixes PR 694, and helps with PR 844. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3188 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix compiler warning of uninitialized variable.rideout2003-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3177 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed compiler warnings about type casts with missing const qualifiers.tradke2003-03-12
| | | | | | | This closes PR Cactus/1439. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3172 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Protect the table API C prototype declarations by '#ifdef CCODE' so that thetradke2003-03-11
| | | | | | | | header file can also be included in fortran code now (to use the #define's). Substituted tabs by spaces. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3170 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new error code CCTK_ERROR_INTERP_GHOST_SIZE_TOO_SMALL.tradke2003-03-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3166 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added const qualifiers to all the pointer function arguments in the flesh'stradke2003-03-10
| | | | | | | | reduction API which refer to input-only arrays and structures. This fixes former problems with passing a 'const cGH *' pointer to this API. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3164 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bug fix for CCTK_ParameterWalk() which caused an infinite loop when calledtradke2003-02-27
| | | | | | | from HTTPD. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3155 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTKBindings_SetupThornFunctions () commented out, it is no longer needed.rideout2003-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3154 17b73243-c579-4c4c-a9d2-2d5706c11dac