summaryrefslogtreecommitdiff
path: root/src
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
* 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
* 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
* 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
* 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
* Implement CCTK_Error and friendseschnett2013-02-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4963 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
* 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
* 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
* 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
* Make CCTK_REAL16 more flexibleeschnett2013-01-15
| | | | | | | | | Instead of assuming that CCTK_REAL16 is real*16 in Fortran, allow any real*N for user-specified values of N. This enables using CCTK_REAL16 e.g. with gcc versions that call it real*10. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4936 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct and beautify timer outputeschnett2013-01-14
| | | | | | | | | | Output "seconds" instead of the actual timer value, in accordance with the column headers. Do not indent output. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4933 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Always include <cmath> and <math.h> in the same ordereschnett2013-01-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4932 17b73243-c579-4c4c-a9d2-2d5706c11dac
* re-instate range checks for integer parameters rhaas2012-12-10
| | | | | | | that were lost in rev 4797. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4928 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't define C++ wrappers isnan() etc. for CUDAeschnett2012-12-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4925 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus allows for negative error levelknarf2012-12-03
| | | | | | | | | Currently, Cactus allows to set a negative error level through the command line option. This leads to CCTK_WARN(0,"") not necessarily aborting. While this is not wrong by itself, a lot of code assumes an abort at that point. This patch changes CCTKi_SetErrorLevel() to only accept non-negative error levels and to change the command-parsing code to give an error message for that case as well. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4923 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make data parameter of expression evaluation functions consthinder2012-11-30
| | | | | | data is a pointer to user-supplied data used for evaluating the expression. It should not be modified by the evaluation. Note that this modifies the flesh API to the (undocumented) thorn-visible function Util_ExpressionEvaluate. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4922 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for errors when redirecting stdout/stderreschnett2012-11-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4919 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove unused variableeschnett2012-11-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4918 17b73243-c579-4c4c-a9d2-2d5706c11dac
* ParseFile.c: Change semantics of call to fread so that error check makes sensehinder2012-11-20
| | | | | | fread takes an "item size" and a "number of items" and returns the number of items successfully read. Previously, we asked for 1 item of the size of the file, to read the entire file. The error check which was added in r4915 assumed that the returned value of fread was the number of bytes read, which is not correct since only one item is returned, and causes Cactus to fail with a fatal error when any parameter file is loaded. The present commit changes the fread call to ask for file_size items of size 1, for which the error-checking code makes sense, as there are now file_size items returned. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4917 17b73243-c579-4c4c-a9d2-2d5706c11dac
* ScheduleInterface.c: Add printf format stringhinder2012-11-20
| | | | | | Using the data string as a format string can be a security vulnerability and hence triggers a compiler warning. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4916 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check file size while readingeschnett2012-11-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4915 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cache result of gethostname() calleschnett2012-11-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4914 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use CCTKi_VarDataPtrI in CCTK_DECLARE_ARGUMENTSeschnett2012-10-26
| | | | | | | | Introduce new function CCTKi_VarDataPtrI which does not emit warnings. Use it when defining CCTK_DECLARE_ARGUMENTS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4898 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use ANSI C prototype for CCTKi_ExitAfterParamCheckeschnett2012-10-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4895 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use CCTKi prefix for ExitIfParamCheckOnlyeschnett2012-10-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4894 17b73243-c579-4c4c-a9d2-2d5706c11dac
* allow ${parfile} in parameter files to allow ${parfile}/subdirknarf2012-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4892 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_TimerRunning and CCTK_TimerRunningIknarf2012-10-24
| | | | | | | These functions return whether a Cactus timer is running or not (either by name or by handle). git-svn-id: http://svn.cactuscode.org/flesh/trunk@4890 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add a flag indicating if a timer is running or not.knarf2012-10-24
| | | | | | | Starting a running timer and stopping a not running timer will produce a level 1 warning and will otherwise do nothing (will not actually start/stop twice). This fixes the issue at hand - although it will now produce that warning for the total simulation time timer - which is stopped multiple times within Carpet. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4889 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make the -P short version of --exit-after-param-check work.diener2012-10-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4887 17b73243-c579-4c4c-a9d2-2d5706c11dac