summaryrefslogtreecommitdiff
path: root/src/main/WarnLevel.c
Commit message (Collapse)AuthorAge
* Extend CCTK_VWarn() so that, if Cactus::cctk_full_warnings is set to true,tradke2005-12-13
| | | | | | | | | it also prints the hostname of the originating warning message. This information comes in handy when debugging a problem on clusters by directly logging into the nodes. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4214 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cosmetic changes.goodale2005-12-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4208 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing unused variables as found by David Rideout and Erik Schnetter.goodale2005-12-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4207 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correcting some formatting.goodale2005-12-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4206 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding missing header.goodale2005-10-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4161 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing C++ comment markers to C comment markers.goodale2005-10-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4160 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Patch from Jian Tao to add some callback functionality to thegoodale2005-10-03
| | | | | | | | | | warning system. This allows thorns to register functions which will be called when CCTK_Warn or CCTK_Info are called, with the contents of the warning/info message, thus allowing thorns to do things like logging warnings to file or displaying on webpages. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4157 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print run time warnings while setting parameters with CCTK_WARNschnetter2005-09-26
| | | | | | | | | | | | | | instead of with fprintf (stderr, ...). Correct critical error in looking at the values of cctk_full_warnings, highlight_warning_messages, and cctk_strong_param_check. Handle the empty regular expression specially in CCTK_RegexMatch, since regcomp may treat it as illegal expression. In Cactus, an empty regular expression matches everything. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4150 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* Fixed wrong number of arguments in calls to CCTK_VWarn().tradke2002-05-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2869 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_VParamWarn for variable argument listallen2002-05-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2840 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed checking of parameter value.tradke2001-12-10
| | | | | | | Closes Cactus/859. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2490 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing includes and fixed a couple of 'cast from const pointer' warnings.tradke2001-10-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2442 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing to new macros for FORTRAN_STRINGallen2001-09-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2357 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Duplicate warning messages from other processors than 0 to stdout.tradke2001-06-12
| | | | | | | Fixes PR Cactus-709. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2226 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_Info() calls CCTK_VInfo() so that stdout is flushed in there.tradke2001-06-01
| | | | | | | This closes PR Cactus-700. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2213 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed warning level typoallen2001-05-14
| | | | | | | Cactus/682 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2182 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add processor number to warnings (Cactus/635)allen2001-05-07
| | | | | | | | | Tidying of warnings given by warnings routines Always give full information for a terminal warning git-svn-id: http://svn.cactuscode.org/flesh/trunk@2154 17b73243-c579-4c4c-a9d2-2d5706c11dac
* In CCTK_VWarn(), check if the parameter 'cactus::cctk_full_warnings' wastradke2001-05-04
| | | | | | | | | already created and thus can be used. If not created it is assumed to be zero. This closes PR Cactus 656. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2141 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Report error/warning level changes with an info message rather than a warning.tradke2001-04-20
| | | | | | | | | This fixes the problem where the code terminated immediately after decreasing the error level to 1. Also fixed compiler warnings, formatted the code, completed grdoc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2131 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed grdoc.tradke2001-03-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2076 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding CCTK_ParameterLevel to get the current level of parameter checking.allen2001-02-24
| | | | | | | Rearranging file contents git-svn-id: http://svn.cactuscode.org/flesh/trunk@2048 17b73243-c579-4c4c-a9d2-2d5706c11dac
* grdoc, style-guidelines, ...goodale2000-10-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use CCTK_Abort instead of exit to quitallen2000-07-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1731 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added ParameterGetallen2000-06-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1690 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New macros for Fortran callsallen2000-05-10
| | | | | | | CCTK_Warn -> CCTK_VWarn where appropriate git-svn-id: http://svn.cactuscode.org/flesh/trunk@1639 17b73243-c579-4c4c-a9d2-2d5706c11dac
* removing USE_blalanfer2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1605 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing warnings from rcsid variables.allen2000-04-17
| | | | | | | Tidied include files a bit, removing a few cctk.h's, so I've introduced a few more warnings to fix git-svn-id: http://svn.cactuscode.org/flesh/trunk@1550 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added C version of CCTK_VInfo.tradke2000-04-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1530 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing compiler warningsallen2000-03-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1505 17b73243-c579-4c4c-a9d2-2d5706c11dac
* bug fixlanfer2000-03-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1480 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_Info only on proc0lanfer2000-03-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1477 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2000-01-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1312 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed void returns to intsallen2000-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1290 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Capitalising include file namesallen2000-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1265 17b73243-c579-4c4c-a9d2-2d5706c11dac
* config.h -> cctk_config.hallen2000-01-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1247 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding USE_CCTK_PARAMETERS and changing format of warningallen2000-01-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1233 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More for the error checking...lanfer1999-11-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1173 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed tabs from files.goodale1999-11-24
| | | | | | | | | Added @version lines to various header files. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1170 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added variable argument CCTK_Warn.goodale1999-11-23
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1161 17b73243-c579-4c4c-a9d2-2d5706c11dac