| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/util/Table.c
src/include/util_Table.h
* add new functions (cf my E-mail of 30 Mar 2002)
Util_TableClone()
Util_TableItClone()
* add new functions (cf Erik Schnetter's E-mails of 5 Feb 2002)
Util_Table{Set,Get}Generic()
Util_Table{Set,Get}GenericArray()
* add tests for new functions
* fix a memory leak in Util_TableDestroy()
* fixed some assert( variable = value ) bugs (yikes!!)
* refactor some code to better modularize the implementation
* add some more const qualifiers to local vars
* reformat code to match flesh standard indentation and { } conventions
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2683 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> Changed the way how parameters are used within the USE_CCTK macros:
> now it's done by "(void) (parameter = 0);" which is better than
> assigning the address of it to some dummy pointer.
should read as
> Changed the way how parameters are used within the USE_CCTK macros:
> now it's done by "(void) (parameter + 0);" which is better than
> assigning the address of it to some dummy pointer.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2678 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
now it's done by "(void) (parameter = 0);" which is better than
assigning the address of it to some dummy pointer.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2677 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
whether Cactus was restarted from a checkpoint or not.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2650 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
* define error return code for "point out of range"
from CCTK_InterpLocalUniform() API
(I've discussed this with Tom Goodale)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2632 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add new flesh API CCTK_InterpRegisterOpLocalUniform() to register
CCTK_InterpLocalUniform() interpolators
* rework implementation of all interpolator registration APIs to
factor out common code into new static fn and macro in Interp.c
JT will checkin docs on the new CCTK_InterpRegisterOpLocalUniform()
API after the code is in...
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2616 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
See log message for src/util/makefile 1.1
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2589 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
completely removed. (I also changed the standalone test suite
correspondingly.)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2581 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2562 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2561 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
| |
now takes the current line number in the parameter file as a third argument.
CCTKi_SetParameter() is now able to tell you what line in the parameter file
was erroneous.
This closes PR Cactus-838.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2555 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so you can choose both a timer and a clock to print. Passing a NULL argument for a string, or a -1 for the index versions will cause all the timers/clocks to
be used.
Also added new functions
CCTK_NumClocks
CCTK_ClockName
CCTK_ClockHandle
which I needed for this. Not sure that I really needed the ClockHandle
one, but it is useful anyway to test if a clock is registered.
Maybe these functions should also take something like a file descriptor,
so that the information can be easily printed to a file, or to the HTTPD
pages.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2547 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
Also needed a macro for fortran, since the call to register a system now
automatically hide the argument with the thorn name doing the registering
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2544 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
operator names from their handle
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2532 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2515 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2513 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2502 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
Library.
This closes PR Cactus/335.
Also added complex exp(), sin(), cos(), and sqrt() routines according to GSL.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2499 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2493 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
which also takes an 'ierror' argument now returning the result of the
corresponding C call.
You will also need to update all thorns now which call these routines.
See also separate mail to developers@cactuscode.org regarding this change.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2489 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
of overloaded functions.
This gets rid of nasty compiler warnings about unused function arguments for
dummy overloadables.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2488 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Parsing errors from Parameter file are fatal errors
Report all parameter errors before terminating simulation (actually
this isn't quite true, it will report all parsing errors and then stop if
necessary and
then report all parameter setting errors and stop if necessary)
In parsing the parameter file omitting the
"=" and ommiting the "= value" are fatal errors.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2478 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
from 'void *' into 'cGH *'.
Note that this is likely to change into a 'const cGH *' argument before the
next release.
This closes PR Cactus-820.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2471 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
Documentation should follow shortly...
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2462 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
and for I/O method registration.
You will also need to update the I/O thorns which I will commit changes to now.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2452 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This field should be considered volatile, it may not remain on this structure
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2448 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
structure. This should be considered volatile, the information might move
back to the internal structure.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2444 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
overloadables take a 'const cGH *' argument now.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2443 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2441 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
since they shouldn't modify the GH.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2440 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Cactus/817
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2439 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2431 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
that C bindings are used for it.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2429 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
const char *CCTK_GroupImplementationI(int group)
Also reduced warning level to fix Cactus/812 in DecomposeName
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2427 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2426 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
| |
implementations for a given implementation.
I don't like the function name too much, so it may change in the next
couple of weeks
uStringList *CCTK_ImplementationRequires(const char *imp)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2425 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2424 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
Two new functions
const char *CCTK_InterpOperatorImplementation(int handle);
int CCTK_NumInterpOperators(void);
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2423 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
New functions:
const char *CCTK_ReduceOperatorImplementation(int handle);
int CCTK_NumReduceOperators(void);
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2422 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
Two new functions:
const char *CCTK_IOMethodImplementation(int handle);
int CCTK_NumIOMethods(void);
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2421 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
including this header in some C++ code.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2419 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
defined as
<type> <group_name>[<size>] ...
as per a normal 1 variable group except with an extra argument. This
creates a vector of GVS, with an extra index (the last one for a GA or GF)
corresponding to the element in the vector. For scalars this creates an array
similar to a DISTRIB=CONSTANT GA. <size> may be either an integer or an
integer-valued parameter.
So, fortran sees
REAL foo[param] TYPE=GF DIM=3
as
CCTK_REAL foo(nx,ny,nz,param)
and in C it should be accessed as foo[CCTK_GFINDEX3D(cctkGH,i,j,k)*l]
When we have COMPACT groups you will also be able to make the extra index
the first one rather than the last one.
Please treat this as volatile until it is documented, and let me know if you are using
it.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2392 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
This closes PR Cactus/795.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2390 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2389 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2372 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
a const pointer.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2371 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
Added prototypes for new timer routines CCTK_NumTimers() and CCTK_TimerName ().
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2287 17b73243-c579-4c4c-a9d2-2d5706c11dac
|