summaryrefslogtreecommitdiff
path: root/src/util/Expression.c
Commit message (Collapse)AuthorAge
* 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
* expand expression language, add error checking, and more documentationrhaas2012-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4804 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow arithmetic expression in ParameterSetrhaas2012-04-11
| | | | | | | | | | | | | | | | | | Expression are of the form: foo::bar = 2*sin(foo:baz) ie. arithmetic and access to already set parameters. The new behaviour is triggered if the parameter string (for real, boolean and int parameters) does not parser properly as a double/int/bool. This last test is mostly an optimization. The largest change is actually in the expression parser which has been extended to handle eg. exponential notation and negations. It now uses a state machine to parse its input. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4797 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Insert missing "do" statement (which did not make the code incorrectschnetter2005-07-16
| | | | | | | -- very interesting bug!) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4092 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Change whitespace for the RESIZE_STACK, PUSHOP, and PUSHTOK macroschnetter2005-07-16
| | | | | | | definitions to make the code fit into 80 columns. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4091 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove spurious (but harmless) break statement from PUSHTOK macro.schnetter2005-07-16
| | | | | | | Make RESIZE_STACK macro semicolon-safe. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4090 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow comparison operators in accumulator expressions.schnetter2003-11-07
| | | | | | | Add the ! not operator to accumulator expressions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3454 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of the CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed compiler warnings for variables with 'const' qualifiers.tradke2001-12-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2475 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undefine strdup before it is redefined. Fixes a gcc warning.tradke2001-11-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2470 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes:goodale2001-11-07
| | | | | | | | | | Some extra checking. Moved types not needed by external stuff into its own header. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2459 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved verification out of evalaution and into parsing stage to speed upgoodale2001-11-06
| | | | | | | | | evaluation. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2454 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New improved, or at least more functional, expression parser and evaluator.goodale2001-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now can deal with both floating point and integer values. You can use the functions from the standard C maths library which take one argument. Evaluation should be faster, 'though parsing is probably a bit slower. Now the user-supplied evaluation routine is called just once at the beginning of the evaluation, so if any of the evaluations need a global operation, these can all be done at once. The routines have now been renamed as Util_ functions and the header file cctki_Expression.h has been renamed as util_Expression.h. IMPORTANT NOTE: The above means you will need to rm configs/*/build/Cactus/util/Expression.c.d rm configs/*/build/Cactus/main/Groups.c.d after updating to get rid of stale dependency files. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2449 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing memory allocation error.goodale2001-10-25
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2435 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Start of putting the expression parser into the flesh available routines.goodale2001-10-13
Currently just a copy of the stuff from HTTPD changed to integer and a bug fix. When it is generalised and some optimisation is done these will become Util routines rather than CCTKi routines. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2400 17b73243-c579-4c4c-a9d2-2d5706c11dac