summaryrefslogtreecommitdiff
path: root/src/main
Commit message (Collapse)AuthorAge
* Fixed bug from my last commit: CCTK_NumGroups() doesn't take an argument.tradke2005-06-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4076 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check group/variable name/index argument in CCTK_ActiveTimeLevels*().tradke2005-06-07
| | | | | | | This closes PR Cactus/1945: "CCTK_ActiveTimeLevels does not check its arguments". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4075 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When creating the output file names for the "-r" options, use %uschnetter2005-06-05
| | | | | | | | (unsigned int) instead of %d (signed int) to prevent a (theoretical) buffer overflow on 32 bit machines. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4073 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct a severe error in handling sync statements in schedulingschnetter2005-05-25
| | | | | | | | | | | | | | | | | | | | | | | | | | groups. Whether the synchronisation was done by CCTK_CallFunction or not was stored in the "synchronised" flag of a t_sched_data object. This object exists only once for the simulation, and not once for each recursive call of the scheduler when it traverses groups. Thus the information was correct only for the innermost schedule item, namely functions, and incorrect for schedule groups. Because PUGH does not overload CCTK_CallFunction, and thus this flag always stays false, I assume that this error does not occur with PUGH simulations. It does occur with Carpet simulations. As a quick solution, I moved the "synchronised" flag from the t_sched_data structure into the t_attribute structure. This does not work for recursive calls. It may be that the t_attribute structure is meant for unchanging information. In that case, it is necessary to construct a stack of t_sched_data objects. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4060 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not emit an error message "invalid group/variable name" fromschnetter2005-05-21
| | | | | | | | | | CCTK_TraverseString if a name is a valid group name, but the group has zero variables. Instead, do nothing in this case, which is correct, because the callback function should be called for each variable in the group. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4057 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Test for availability of va_copy(3).tradke2005-05-16
| | | | | | | | | Use 'memcpy (&aq, &ap, sizeof (ap));' if it isn't available. This fixes a linker problem with older C compilers (eg. PGI 5.1). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4053 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Prevent unnecessary overflow or underflow in complex division byschnetter2005-05-15
| | | | | | | rescaling the arguments. This is a standard algorithm. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4050 17b73243-c579-4c4c-a9d2-2d5706c11dac
* In CCTK_VWarn(): use copies of va_list when printing to stderr and stdout resp.tradke2005-02-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3994 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce a parameter -L to select the logging level.schnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3974 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make CCTK_BYTE and CCTK_CHAR be distinct types. CCTK_BYTE is for gridschnetter2005-01-29
| | | | | | | | | | | | variables, and CCTK_CHAR (like CCTK_STRING) only for other purposes, e.g. tables. * Introduce unique integer constants for them * Add missing conversion functions from and to strings * Add table functions for CCTK_BYTE. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3972 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Yaakoub to add a complex version of the 'pow' function.goodale2005-01-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3966 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add missing #include <stdio.h> statement.schnetter2004-12-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3949 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement steerable boolean parameter Cactus::highlight_warning_messagestradke2004-12-20
| | | | | | | | which turns on/off highlighting of CCTK warning messages using ANSI escape sequences. Default is on. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3937 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print warning message headers in bold font.tradke2004-12-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3931 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Functions completing the Cactus Timer API.swhite2004-08-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3828 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct wrong function description.schnetter2004-08-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3819 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add additional scheduler options "loop-local", "loop-singlemap",schnetter2004-07-31
| | | | | | | | "loop-level", "loop-global", and "loop-meta". This makes CallFunction loop over the corresponding modes. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3812 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Output more information when an unknown schedule option is encountered.schnetter2004-07-31
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3811 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Delimit timer info with "=" instead of "-" to make it more readable.schnetter2004-07-31
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3810 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not use CCTK_L2_CACHE_SIZE and CCTK_L2_CACHELINE_BYTES macros anymore.tradke2004-06-26
| | | | | | | They have been depricated in beta13. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3791 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add option flag for 'local' mode.tradke2004-06-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3788 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Describe POSTRESTRICT and POSTREGRID bins during startup.schnetter2004-06-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3768 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_TraverseString() returns error code (-5) if it encounters an invalidtradke2004-06-09
| | | | | | | variable or group name. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3764 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing fortran wrapper prototypes.tradke2004-06-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3756 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed typo in warning message.tradke2004-05-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3703 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed deprecation commentallen2004-05-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3686 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Give error when trying to treat a non-array parameter as an array parameter.goodale2004-05-03
| | | | | | | Fixes PR Cactus/1607. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3684 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stop after printing warning for being unable to open parameter file.goodale2004-05-03
| | | | | | | Fixes PR Cactus/1569. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3683 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed CCTKi_GroupLengthAsPointer() to return the length of a single vectortradke2004-04-30
| | | | | | | | | variable for vector groups. This closes Cactus/1664: vector group with multiple elements passes arrays of incorrect size to F90. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3680 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTKBindings_RegisterThornFunctions() returns any non-negative value in casetradke2004-04-24
| | | | | | | of an error. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3675 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check return code of CCTKBindings_RegisterThornFunctions() and stop withtradke2004-04-23
| | | | | | | a level-0 warning in case of an error. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3671 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Provide Fortran wrappers for some flesh functions that return a string.schnetter2004-04-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3662 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Flush stdout before printing to stderr.schnetter2004-04-06
| | | | | | | | | Don't flush stderr twice. Call CCTK_Abort instead of exit. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3648 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Create timers with unique names by using an integer serial number.schnetter2004-04-06
| | | | | | | | | | | This removes spurious timer warnings. Check malloc return value. Change message from "[...] at [group]" to "[...] in [group]". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3646 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check malloc return values more carefully: malloc(0)==0 is not anschnetter2004-04-04
| | | | | | | | | | error. CCTKi_Extract: Ensure dimension>=0, and do not access the array when dimension==0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3644 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check malloc return valueschnetter2004-04-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3643 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Complete list of error codes for CCTK_FirstVarIndexschnetter2004-04-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3642 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed parsing of vector groups in CCTK_TraverseString().tradke2004-04-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3634 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Option strings parsed in CCTK_TraverseString() should now be enclosed in curlytradke2004-03-13
| | | | | | | | | | brackets. A level-1 warning will be issued if the old-style square bracket notation is used. This closes PR CactusBase/1615: "Vector group variable namesclash with I/O options". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3589 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add new scheduling options "meta" and "singlemap" for Carpet.schnetter2004-02-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3575 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add entry "tagstable" to the cGroup structure.schnetter2004-02-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3565 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allows scheduling in the analysis bin without any triggers. Thisschnetter2004-01-21
| | | | | | | executes the scheduled item always. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3552 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed CCTK_CoordLocalRange() to calculate the local ranges fromtradke2004-01-20
| | | | | | | | the registered coordinate's lower and upper bounds (rather than using GH->cctk_[ul]bnd). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3542 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use inline functions instead of #defines for CCTK_GFINDEX?D if availableschnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3536 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print shutdown message before shutting down MPI.schnetter2004-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3528 17b73243-c579-4c4c-a9d2-2d5706c11dac
* add/clarify comments injthorn2004-01-16
| | | | | | | static int ParameterSetReal (t_param *param, const char *value) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3513 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix a wrong header comment forjthorn2004-01-16
| | | | | | | static int ParameterSetSimple (t_param *param, const char *value) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3512 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print WRAGH bin name in schedule treeschnetter2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3506 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix typoschnetter2004-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3505 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cleanup output of -h command line option.rideout2004-01-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3491 17b73243-c579-4c4c-a9d2-2d5706c11dac