summaryrefslogtreecommitdiff
path: root/src
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 typo in commentschnetter2005-06-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4071 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
* Return the documented error indicating values.schnetter2005-05-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4047 17b73243-c579-4c4c-a9d2-2d5706c11dac
* make CCTK_WARN_* #defines visible to Fortran code, as perjthorn2005-05-11
| | | | | | | | http://cactus.cct.lsu.edu/pipermail/developers/2005-May/000920.html http://cactus.cct.lsu.edu/pipermail/developers/2005-May/000938.html git-svn-id: http://svn.cactuscode.org/flesh/trunk@4044 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove duplicate definitionschnetter2005-04-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed gcc compiler warnings about local variables named after global symbolstradke2005-04-05
| | | | | | | and potentially uninitialized variables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4021 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rename pow10 to mypow10 because pow10 is defined on some systems in <math.h>schnetter2005-03-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4018 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Declare variables at the beginning of a function block.tradke2005-03-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4017 17b73243-c579-4c4c-a9d2-2d5706c11dac
* This is a partial fix for bug Cactus/1908jthorn2005-03-21
| | | | | | | | | | | | | | | | | | | | | | scheduling error neither aborts Cactus run nor gives useful error message so scheduling errors now abort the Cactus run. In particular, this commit changes the error-handling strategy of CCTKi_DoScheduleSortAllGroups() ScheduleSortGroup() from "print a message to stderr, then return error code" to CCTK_VWarn(CCTK_WARN_ABORT, ...), i.e. "print a message to stderr, then abort the Cactus run". The CCTKi_DoScheduleSortAllGroups() message is the same one as before. The ScheduleSortGroup() message is changed to include the group name. (N.b. the other part of Cactus/1908, that the schedule-error message is uninformative, is *not* fixed by this commit.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4016 17b73243-c579-4c4c-a9d2-2d5706c11dac
* update header comment description of where more docs can be foundjthorn2005-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4014 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix header comment description of where more documentation can be foundjthorn2005-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4013 17b73243-c579-4c4c-a9d2-2d5706c11dac
* remove a FIXME comment 'should write some latex docs'jthorn2005-03-18
| | | | | | | since there are now fairly extensive latex docs git-svn-id: http://svn.cactuscode.org/flesh/trunk@4012 17b73243-c579-4c4c-a9d2-2d5706c11dac
* change hexadecimal flags-words constants to decimal so Fortran 77jthorn2005-03-18
| | | | | | | | will grok them (keep hex values in comments since they're convenient for C bitwise-oring) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4011 17b73243-c579-4c4c-a9d2-2d5706c11dac
* move some debug printf() calls closer to the start of their functionsjthorn2005-03-18
| | | | | | | (all inside #ifdef UTIL_TABLE_TEST) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4010 17b73243-c579-4c4c-a9d2-2d5706c11dac
* split Table.c test driver out into a separate thorn (CactusTest/TestTable)jthorn2005-03-18
| | | | | | | | | | | also add another error check in insert_table_entry() to catch the case where the type code is invalid and hence CCTK_VarTypeSize() returns -1 --> this gives a new error return from this function, and hence from all the Util_TableSet* functions git-svn-id: http://svn.cactuscode.org/flesh/trunk@4008 17b73243-c579-4c4c-a9d2-2d5706c11dac
* * untabifyjthorn2005-03-17
| | | | | | | | | * add a bunch of debug printing to the standalone test drivers (which still core-dumps on my laptop after corrupting the malloc heap; I'm in the process of tracking down what's wrong...) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4006 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Move check for C++ into CCODE sectionschnetter2005-02-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3995 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
* Fixed typo to properly end a comment which otherwise would have been enclosed intradke2005-02-22
| | | | | | | another comment. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3991 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add cctk_Interp.h to cctk.h (FCODE section). Surround C prototypes inhawke2005-02-18
| | | | | | | | | cctk_Interp.h with CCODE ifdefs. This allows Fortran code to use the same #def'd error codes as the C code. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3989 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct description of the warning levelsschnetter2005-02-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3980 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct description of the warning levelsschnetter2005-02-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3979 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Declare CCTK_CHAR in C a char instead of unsigned char.schnetter2005-01-30
| | | | | | | | | | | Turn CCTK_STRING from a #define into a typedef. Do not declare CCTK_CHAR in Fortran, as it does not make sense. Add some comments. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3975 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
* Remove self field from cGH structureschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3971 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add "activetimelevels" field to cGroupDynamicData structureschnetter2005-01-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3970 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The Fortran wrappers for Util_Table{Get,Set}Char are broken; removeschnetter2005-01-27
| | | | | | | | | them. Technically, Fortran has no character type, but only strings, hence the interface to that routine needs to be different from C. Util_TableSetString is still there, used, and works. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3967 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
* Remove unnecessary #include <stdio.h>schnetter2005-01-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3962 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed way that variables are automatically 'used' so that we don't getgoodale2005-01-07
| | | | | | | compiler warnings about the restrict qualifier. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3952 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use int instead of size_t for string length. All other flesh routinesschnetter2004-12-30
| | | | | | | also use int for lengths and not size_t. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3950 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
* Add missing #include <stddef.h> statement.schnetter2004-12-29
| | | | | | | Move #include statements below include guards. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3948 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix wrong function name in grdoc commentjthorn2004-12-28
| | | | | | | -- it's Util_StrSep(), not CCTK_StrSep() git-svn-id: http://svn.cactuscode.org/flesh/trunk@3947 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Revert another accidental change.schnetter2004-12-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3946 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Revert accidental changes from the last commit.schnetter2004-12-28
| | | | | | | Sorry. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3945 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Rename "round" to "myround". Otherwise, the function "round" has theschnetter2004-12-28
| | | | | | | | same name as the one from <math.h> (which is #included) but has a different return type, which is an error for gcc 4.0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3944 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added support for 'g' format.goodale2004-12-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3941 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added support for E format.goodale2004-12-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3940 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix bug which ate zeros after decimal places for output.goodale2004-12-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3939 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
* Undo my previous commit because it was GPL code.tradke2004-12-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3936 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New version of snprintf() and vsnprintf(). These are taken from the glib 1.2.8tradke2004-12-17
| | | | | | | | | source code. They have integrated a fix to correctly convert floating point numbers into their string representation. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3935 17b73243-c579-4c4c-a9d2-2d5706c11dac