summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* recover parameters earlyrhaas2014-05-16
| | | | | | | | | | | | CCTK_RECOVER_PARAMETER is special anyway and scheduled very early (even before the thorn's startup routines are called). This patch to the flesh moves parameter recovery to just after the parameters from the parfile are processed. This ensures that anything afterwards sees the parameters from the checkpoint (for example the cache setup routine which looks at some Cactus parameters and importantly CCTKi_BindingsVariablesInitialise. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5114 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve error messages for invalid parameter rangeseschnett2014-04-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5111 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Provide always-working isnan etc.eschnett2014-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | Certain math optimization options (e.g. -ffast-math) tell the compiler that IEEE floating point numbers such as inf and nan do not need to be handled correctly (in the sense specified by the IEEE standard). This greatly improves floating-point speed and is commonly used in numerical HPC applications. However, since compilers then don't need to handle inf and nan correctly, they have begun to optimise isnan(x) to simply returning false all the time. This improves speed (since the check does not actually need to occur) and reduces code size (since the nan-handling if branches can be omitted). Of course, this makes it then impossible to actually check for nan by calling isnan. Currently, e.g. g++ performs this optimisation, whereas gcc does not. Things vary with other compilers. In the future, with link-time optimisations, I expect other compilers to follow g++. This patch provides functions CCTK_IEEE_isnan etc. that always check for nan, independent of the chosen optimisation flags. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5107 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct minor const erroreschnett2014-04-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5106 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Take clang debug information into account.sbrandt2014-03-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5104 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use "const int" instead of "int const"eschnett2014-03-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5100 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add more const qualifierseschnett2014-03-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5099 17b73243-c579-4c4c-a9d2-2d5706c11dac
* automatically expand StringLists when requiredrhaas2014-03-15
| | | | | | | | | This works around issues where ActiveThorns tries to activated more thorns than are compiled into the executable. Not change in behaviour if the initial size of the StringList is large enough. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5097 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow / in filenamesbrandt2014-02-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct sizes for real and complexsbrandt2014-02-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5089 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Update to work with Chemora. Not currently used by regular Cactus.sbrandt2014-02-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5088 17b73243-c579-4c4c-a9d2-2d5706c11dac
* remove timersbrandt2014-02-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5087 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make it possible to parse very large paramter files and to do it quickly.sbrandt2014-02-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5086 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Turn CCTK_REAL8 etc. into typedefseschnett2014-02-13
| | | | | | | | | | | | | Create typedefs for the Cactus types CCTK_REAL8 etc., so that C++ function-style cases such as CCTK_REAL8(x) become legal. Otherwise, e.g. "CCTK_REAL16(x)" may expand to "long double(x)", which is not legal. Configure results are still stored in macros. These are now called CCTK_REAL8_TYPE etc. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5084 17b73243-c579-4c4c-a9d2-2d5706c11dac
* disallow empty value strings when setting numbers in CCTK_ParameterSetrhaas2014-02-13
| | | | | | | | | | | | | | | Before this patch due to the way strtol and strtod work one can do CCTK_ParameterSet("cctk_itlast", "Cactus", "") which returns 0 (all is fine) and sets cctk_itlast to 0 (rather than failing with -6 "invalid string"). This cannot happen from inside of parfiles since the parser disallows it. It can happen when using the Trigger thorn. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5083 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for #1521sbrandt2014-02-12
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5082 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Separate C and C++ APIs for complex numberseschnett2014-02-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5079 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Whitespace updateeschnett2014-02-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5078 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use #ifdef HAVE_CCTK_REAL8 instead of #ifdef CCTK_REAL8eschnett2014-02-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5077 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for #1525sbrandt2014-01-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5069 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Close ticket #1519sbrandt2014-01-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5067 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix ticket 1401sbrandt2014-01-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5066 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for #1363sbrandt2014-01-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5064 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Re-fix. Test suite definitely passes.sbrandt2014-01-06
| | | | | | | | | Now detects invalid numerical values for double, as well as invalid numerical values for int. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5063 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ticket #1469sbrandt2014-01-06
| | | | | | | | Fixed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5062 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reformat routineeschnett2013-10-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5045 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove unused variableseschnett2013-08-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5041 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make the --python flag work.sbrandt2013-07-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5037 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added parfile pegsbrandt2013-07-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5036 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus currently printsknarf2013-07-27
| | | | | | | | | | | | | | | | | | | | | 10 1 0101 ************************ 01 1010 10 The Cactus Code V4.0 1010 1101 011 www.cactuscode.org 1001 100101 ************************ 00010101 100011 (c) Copyright The Authors 0100 GNU Licensed. No Warranty 0101 Cactus version: 4.2.1 Note the first version, mentioned in the Banner (4.0) is wrong - it's hard-coded in the source. The attached patch uses CCTK_FullVersion() instead. Kudos to Steve to spot this. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5035 17b73243-c579-4c4c-a9d2-2d5706c11dac
* return "parameter already set" when resetting a fixed parameter during recoveryrhaas2013-07-04
| | | | | | | | | this allows the caller to abort the run since the user tried to change a non-steerable parameter during recovery. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5031 17b73243-c579-4c4c-a9d2-2d5706c11dac
* use lrint and casts to avoid compiler warnings about type conversionrhaas2013-07-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5030 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Regenerateeschnett2013-06-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Honour CCTK_DISABLE_OMP_COLLAPSEeschnett2013-06-13
| | | | | | | Also add CCTK_ATTRIBUTE_UNUSED. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5027 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix implementation of 'complex' for c++0x, see #1374knarf2013-05-31
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5022 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Move all of Piraha into cctki_piraha namespaceeschnett2013-05-15
| | | | | | | | | | Change namespace "piraha" to "cctki_piraha", as per Cactus naming standard. Move smart_ptr into this namespace as well. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5012 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Disable Piraha debugging codeeschnett2013-05-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5010 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed license text.sbrandt2013-05-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5006 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undoing an accidental commit.sbrandt2013-05-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5003 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Closing tickets #1290, #1328, #1324sbrandt2013-05-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@5002 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add the basic grammar files, and the changessbrandt2013-04-03
| | | | | | | | | to the piraha code necessary to parse all of Cactus. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4990 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updates to Piraha:sbrandt2013-03-22
| | | | | | | | | | | 1) Added some debug code 2) Fix logic bugs that only I noticed Still passes the ET testsuite. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4988 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Minor cleanup of the grammar.sbrandt2013-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4987 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Let active thorns treat \r as whitespace when parsing tokens.sbrandt2013-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4986 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't require a final newline.sbrandt2013-03-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4985 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove debug outputeschnett2013-03-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4982 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct typo in commenteschnett2013-03-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4981 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Mark code after CCTK_Warn(0,...) as unreachableeschnett2013-03-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4980 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Replace Cactus complex number type with C/C++ complex numberseschnett2013-03-08
| | | | | | | | | | | | | | | | Map CCTK_COMPLEX to "double complex" in C, and "complex<double>" in C++. (It is already mapped to "double complex" in Fortran.) Update type definitions. Re-implement Cactus complex number math functions by calling the respective C functions. Update thorn that access real and imaginary parts of complex numbers to use standard-conforming methods instead. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4979 17b73243-c579-4c4c-a9d2-2d5706c11dac
* 1) Allow comments in quotessbrandt2013-03-06
| | | | | | | | | | | | 2) expand variables in quotes 3) parse fortran format floats, e.g. 1.0e-3 4) allow some sequences of number/letter to be treated as a name even if they start with a digit. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4978 17b73243-c579-4c4c-a9d2-2d5706c11dac