summaryrefslogtreecommitdiff
path: root/src/include/cctk_Parameter.h
Commit message (Collapse)AuthorAge
* Added two new flesh API functions CCTK_ParameterSetNotifyRegister() andtradke2006-09-28
| | | | | | | | | | | | | CCTK_ParameterSetNotifyUnregister() to register/unregister user callback functions for parameter set nofications. See discussion thread http://www.cactuscode.org/old/pipermail/developers/2006-September/005090.html for details. This closes patch Cactus-2057 "add new flesh functions to register/unregister notify callbacks for parameter set operations". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4375 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabifying.goodale2005-10-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4163 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use different numerical values for the #defined enum-like constants.schnetter2003-10-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3438 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added array and accumulator parameters.goodale2002-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Array parameters are specified by a [number] after the parameter name, where number must be an integer. In your parameter file you can specify them with something like foo::bar[9] = 99 (note it is C numbering, starting at 0). In your source code they appear as arrays, bar() in Fortran, starting at 1, and bar[] in C, starting at 0. Accumulator parameters are parameters whose value is built up from the value of other parameters. The other parameters don't need to be known about by the thorn providing the parameter. The syntax is: base parameters are defined like REAL foo "The foo parameter" accumulator=(<expression>) { (1:500 :: "Anything greater than 1 and less than or equal to 500" } 72 and parameters which modify this one's value would be like REAL foobar "The foo parameter" accumulator-base=foo::bar { 22:65 :: "Sensible number" } 42 <expression> is an arbitrary arithmetical expression involving the old value of the parameter,refered to as 'x', and the parameter which is modifying it, refered to as 'y'. E.g. x+y, x+(1/y) x*y, x+y^2, x/y,... The expression should commute when applied twice, i.e. for expression L(x,y), we should have L(L(a,b),c) = L(L(a,c),b) (This allows people to use x/y as an expression which would end up as a/b/c = a/c/b .) To add a value to an accumulator parameter from another implementation, you need to USE or EXTEND that parameter first. As a more complete example, to provide a parameter which is the sum of the squares of other parameters, you can say REAL squares "Sum of squares" accumulator=(x+y^2) { 0: :: "Any non-negative number" } 0 Then, someone in another thorn can add to your squares by saying USES REAL squares REAL mynumber "My number" accumulator-base=foo::squares { 0 : 45 :: "Some numbers" } 3 Then, when these thorns are activated, the value of foo::squares will be 9 (0 + 3^2). Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2830 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_ParameterGet() returns a const pointer now.tradke2001-09-20
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2372 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Additions for parameter checking level of warningallen2001-02-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2047 17b73243-c579-4c4c-a9d2-2d5706c11dac
* char -> const charallen2000-07-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1732 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_ParameterQueryTimesSetallen2000-07-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1722 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Defining CCTK_ParameterSet() mask flags constants.tradke2000-04-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1585 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed interface for CCTK_ParameterWalk() to return both a canonical nametradke2000-03-14
| | | | | | | | | | | | | | | | | | | | | | | and a pointer the parameter properties. Replaced calls to CCTK_ParameterList() by CCTK_ParameterWalk() in CommandLine.c. CCTK_ParameterList() is gone now. Inserted a line "Parameters of thorn 'BLA' providing implementation 'LABER':" in the -O output. Should be easily filtered out for automatic postprocessing. Option -o now prints out both "thorn::param" and "impl::param" as full names for global/restricted parameters. #ifdef'd out ParameterPTreeNodeAdd() in Parameters.c to fix a compiler warning (unused static function). Thomas git-svn-id: http://svn.cactuscode.org/flesh/trunk@1470 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2000-03-07
| | | | | | | | | | | | | | | | | Added protection for the two static arrays in this file. Now only defined if #define NEED_PARAMETER_SCOPE_STRINGS #define NEED_PARAMETER_TYPE_STRINGS are defined. Still not an ideal solution. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1436 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_ParameterWalk() allocates memory for its return value and thus shouldtradke2000-02-21
| | | | | | | have a return type of 'char *' instead of 'const char *'. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1399 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Formatting change.goodale2000-02-11
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1378 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed prototypeallen2000-02-03
| | | | | | | Cactus/220 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1356 17b73243-c579-4c4c-a9d2-2d5706c11dac
* standardizing names ... you will need to do a gmake <config>-clean beforeallen2000-02-03
recompiling. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1342 17b73243-c579-4c4c-a9d2-2d5706c11dac