summaryrefslogtreecommitdiff
path: root/src/main
Commit message (Collapse)AuthorAge
* Allow CCTK_Group* calls for grid scalars; grid scalars are treated asschnetter2003-10-31
| | | | | | | grid arrays with dim=0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3447 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change the way in which pointers are passed to and from Fortran.schnetter2003-10-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3446 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use different numerical values for the #defined enum-like constants.schnetter2003-10-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3438 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
* Allow vector groups of size 0.schnetter2003-10-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3426 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
* new CCTK_WRAGH timebinrideout2003-08-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3384 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
* 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
* 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
* 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 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Added a check against scheduling items with the same name in a schedule bingoodale2003-02-17
| | | | | | | | | or group. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3148 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now scheduling a group AS preserves the identity of the group, allowinggoodale2003-02-17
| | | | | | | | | | | | | | | | people to schedule in the real name and then schedule many aliases of the group in the same schedule bin or parent group. Note that you need to do a make <config>-rebuild on your configurations after updating with this change. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3147 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for a valid timelevel argument value in CCTK_VarDataPtr*().tradke2003-02-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3146 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed CCTK_ParameterWalk() to also walk through array parameters.tradke2003-02-14
| | | | | | | This closes PR CactusPUGHIO/1382. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3144 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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