summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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
* Workaround for compiler-bug with Intel compiler and 'restrict'.knarf2013-05-06
| | | | | | | | | | | | | | | | | | | | | See https://trac.einsteintoolkit.org/ticket/1276 Add conditional on the version of the (Intel) compiler for all CCODE. Then, for C and CXX separately, skip the autoconf-provided values for 'restrict' if the compiler was found to be bad, and instead let HAVE_CCTK_CXX_RESTRICT remain undefined and set CCTK_CXX_RESTRICT to empty, which later defines 'restrict' to empty too (similarly for C). Because someone might actually want to overwrite this, CCTK_INTEL_COMPILER_DONT_DISABLE_RESTRICT is checked, and if set, doesn't disable restrict even for bad compilers. Also, now all Intel compilers with build dates between 20121010 and 20130313 are flagged 'bad'. Others might need to be added later. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5001 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
* Allow setting parameter values at build timeeschnett2013-03-25
| | | | | | | | | | | | | | | Allow setting parameter values at build time, enabling additional compiler optimisations. I measured that e.g. ML_BSSN runs 5% to 10% faster if its parameters are chosen at build time. This introduces macros CCTK_PARAMETER${thorn}${parameter}. If unset, the parameter value is taken from the parameter file (default). If set at compile time, e.g. via a -D option in CPPFLAGS, this overrides the parameter database, and DECLARE_CCTK_PARAMETERS will always use this value. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4989 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
* Support Darwin 12.3.0eschnett2013-03-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4984 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a bit of white space to generated codeeschnett2013-03-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4983 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
* Make support for inf more explicit, and add supportsbrandt2013-03-05
| | | | | | | | for nan. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4977 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct autoconf of __builtin_unreachable()eschnett2013-03-05
| | | | | | | | Correct autodetection of __builtin_unreachable() Correct fallback implementation of CCTK_BUILTIN_UNREACHABLE git-svn-id: http://svn.cactuscode.org/flesh/trunk@4976 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct documenation of CCTK_Aborteschnett2013-03-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4975 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Significant upgrade of Piraha:sbrandt2013-03-04
| | | | | | | | | | | | | | It no longer uses strings to store intermediate values in expressions. It now supports everything that was supported by the old expression parser. Comments added. Numerous pieces of error checking added. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4974 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Regenerateeschnett2013-03-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4973 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct syntax error when checking for attribute(format)eschnett2013-03-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4972 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use C (instead of C++) autoconf results in some caseseschnett2013-03-04
| | | | | | | Some C++ autoconf results were erroneously used for C code. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4971 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct example for test.ccleschnett2013-03-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4970 17b73243-c579-4c4c-a9d2-2d5706c11dac
* force reconfigure after r4968 introduced a new variable XARGSrhaas2013-02-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4969 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add configuration option XARGS (much like TAR) to define the location of theknarf2013-02-27
| | | | | | | | 'xargs' command. This shouldn't be necessary on almost all systems, but sadly is on a few. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4968 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix a namespace issuesbrandt2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4967 17b73243-c579-4c4c-a9d2-2d5706c11dac
* (1) Fix compilation issues on Pandorasbrandt2013-02-26
| | | | | | | | | | | | (2) Disallow setting multiple parameters on one line (3) Allow sign in floating point format to be optional (4) Use package piraha (5) change PirahaParser to cctk_PirahaParser (6) remove size.py git-svn-id: http://svn.cactuscode.org/flesh/trunk@4966 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve fall-back for __builtin_unreachable()eschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4965 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4964 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4963 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4962 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow for unquoted file names so long as they begin with ./ or /sbrandt2013-02-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4961 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change the parameter parser to Pirahasbrandt2013-02-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4960 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Currently, known_architectures/linux only looks at the first line of '$F77knarf2013-02-21
| | | | | | | | | | | | | | | | | | | | | --version' to determine the version of a gnu-type fortran compiler. However, on bluewaters this returns {{{ /opt/cray/xt-asyncpe/5.16/bin/ftn: INFO: Compiling with CRAYPE_COMPILE_TARGET=native. GNU Fortran (GCC) 4.7.2 20120920 (Cray Inc.) Copyright (C) 2012 Free Software Foundation, Inc. }}} The information the script is actually interested in is on the second line, not the first. Thus, I propose the attached patch (grepping for "GNU" before choosing the first line). I didn't find a problem with this patch on other machines, but there might be in case $F77 --version does not contain GNU in the line with the version. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4958 17b73243-c579-4c4c-a9d2-2d5706c11dac
* correctly quote regular expressions in aclocal.m4rhaas2013-02-08
| | | | | | | | | | | | | | | m4 uses square brackets as quotation characters and removes one set of them per argument call. This affects regular expressions that contain character ranges. This in turn affect some HAVE_XXX macros where XXX contains invalid characters eg. XXX=math.h . The attached patch adds an extra level of [] around where the result is passed to a function. Also it seems as if the system provided AC_CHECK_FUNCS does not properly quote its third argument when passing it to AC_CHECK_FUNC. Hence I add an extra round of [] whenever it is used. This is a mess. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4953 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support IBM Blue Gene compilerseschnett2013-01-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4949 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Be more cautious with macro argument namespaces in cctk_Loop.heschnett2013-01-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4948 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct Fortran OpenMP errors in loop macroseschnett2013-01-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4947 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't crash when activating non-existing thornseschnett2013-01-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4946 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add more error checks when activating thornseschnett2013-01-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4945 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make it obvious that all variables are used initialisedeschnett2013-01-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4944 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Mark some cctk_Loop variables as unusedeschnett2013-01-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4943 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct variable nameeschnett2013-01-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4942 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Only warn (don't err) if a thorn is activated multiple timeseschnett2013-01-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4941 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct regular expressions for parsing configuration.ccl fileseschnett2013-01-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4940 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Automatically activate required thornseschnett2013-01-18
| | | | | | | | Activate require and optional thorns automatically (but not optional_ifactive thorns). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4939 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Introduce OPTIONAL_IFACTIVEeschnett2013-01-18
| | | | | | | | | | | Following up on a discussion on the Cactus developers mailing list, this patch introduces a third way of indicating a desired capability: in addition to REQUIRES and OPTIONAL there is OPTIONAL_IFACTIVE. This behaves like OPTIONAL, except that the capability relationship only exists if the thorn providing the capability is active. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4938 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Clean up namespace for vectorised loopseschnett2013-01-17
| | | | | | | | | Add two new arguments (imin and imax) to vectorised loops, which are variable names that will be set to the desired loop bounds by the looping macros. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4937 17b73243-c579-4c4c-a9d2-2d5706c11dac