| Commit message (Collapse) | Author | Age |
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3949 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Fixes PR Cactus/1607.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3684 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
static int ParameterSetReal (t_param *param, const char *value)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3513 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
static int ParameterSetSimple (t_param *param, const char *value)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3512 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3381 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
This closes PR Cactus/1559.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3268 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
This closes PR Cactus/1439.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3172 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
from HTTPD.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3155 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
This closes PR CactusPUGHIO/1382.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3144 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2869 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2836 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Fixes Cactus/1063.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2835 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
errors when setting accumulator parameters.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2834 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
STEERABLE = RECOVER | ALWAYS parameter has been set during recovery.
Now you can tell whether such a parameter was just recovered from a checkpoint
file (n_set == 1) or also overwritten again from the parameter file (n_set > 1).
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2784 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2709 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
by CCTK_ParameterValString().
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2681 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
a NULL pointer if no such information is wanted.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2649 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2554 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
is not set from a parameter file during recovery.
Closes PR/442.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2492 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2458 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
| |
CCTK_ParameterValString().
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2457 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use it as
call CCTK_ParameterValString (ierror, parameter, thorn, value)
with parameter, thorn, value being fortran strings, the last one holding
the actual stringified value of the parameter.
ierror must be of type CCTK_INT and holds the return code of this wrapper
where 0 stands for success, -1 for 'parameter doesn't exist', -2 for
'fortran string buffer is too short to hold the value.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2446 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Also fixed some gcc warnings and added some grdoc.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2373 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
can be set on the command line. Please see the Running Cactus section
of the UsersGuide for more information.
The only things you should notice are:
1) Cactus will now error and stop if you try and set a parameter foo::bar
for an *active* implementation or thorn foo which has no parameter bar
(if foo is not active you only get a warning)
2) Cactus will not stop if you steer a parameter out of its allowed range.
Making these changes involved delicate tracing of error codes, so please
let us know if you notice anything weird.
Gabrielle.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2050 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1964 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1851 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1797 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
| |
Added CCTK_ParameterQueryTimesSet
which can be used to see if a parameter was set in the parameter file, and
so can be used to replace some of the parameter "magic numbers" like -424242
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1716 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
instead of a level 0 warning.
Cactus will still terminate when a parameter in a parameter file has an incorrect range, but the check
now takes place outside of ParameterGet. This is to be able to change steerable parameters during a run
without accidently crashing the code with a bad parameter value.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1680 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Check the new parameter set mask flag in CCTK_ParameterSet().
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1586 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tidied include files a bit, removing a few cctk.h's, so I've introduced a few more warnings to fix
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1550 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1435 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tidying up how they are included - now people should include
cctk_GNU.h. This will allow us later to check what functions
are available and maybe not compile the GNU stuff.
NOTE: If you edit the GNU stuff please put a wapping great comment
/* CCTK: Changed by <> on <> */
by the change and a note in the README.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1380 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1352 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
ParameterGet -> CCTK_ParameterGet
ParameterValString -> CCTK_ParameterValString
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1330 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1312 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1305 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1297 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
char *ParameterValString (const char *param_name, const char *thorn)
which returns the string representation of a parameter's value.
Used for checkpointing/recovery.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1276 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1271 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1265 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1247 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
be tidied so that it can be over riden, and so that all the out of
range parameters are given before the code stops.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1204 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
range
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1197 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1179 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
Added @version lines to various header files.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1170 17b73243-c579-4c4c-a9d2-2d5706c11dac
|