summaryrefslogtreecommitdiff
path: root/src/include
Commit message (Collapse)AuthorAge
* [[from Jonathan Thornburg]]rideout2002-04-03
| | | | | | | | | | | | | | | | | | | | 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
* This is basically a no-op commit to correct the previous commit message:tradke2002-03-27
| | | | | | | | | | | | | | | > 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
* Changed the way how parameters are used within the USE_CCTK macros:tradke2002-03-27
| | | | | | | | 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
* Added an integer flag 'recovered' to the tFleshConfig structure indicatingtradke2002-03-19
| | | | | | | whether Cactus was restarted from a checkpoint or not. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2650 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[changes from Jonathan Thornburg]]rideout2002-02-27
| | | | | | | | | * 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
* [[changes from Jonathan Thornburg, checked in by David Rideout]]rideout2002-02-22
| | | | | | | | | | | | | * 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
* Commited this file into the wrong directory...rideout2002-01-21
| | | | | | | See log message for src/util/makefile 1.1 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2589 17b73243-c579-4c4c-a9d2-2d5706c11dac
* A revised version of the tables source code with auto-destroytradke2002-01-17
| | | | | | | | 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
* Fixed typo.tradke2002-01-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2562 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undefine NOTHING to avoid compiler warning if this macro gets redefined later.tradke2002-01-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2561 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The callback routine, CCTKi_SetParameter(), passed to the ParseFile() routinetradke2002-01-02
| | | | | | | | | | 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
* Changed CCTK_TimerPrintData and CCTK_TimerPrintDataI to take two arguements,allen2001-12-29
| | | | | | | | | | | | | | | | | | | | | 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
* Prototypes for new coordinate functions.allen2001-12-29
| | | | | | | | 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
* Adding prototypes for new functions to return IO methods, interp and reduceallen2001-12-27
| | | | | | | operator names from their handle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2532 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Error codes need to be thought about, removing this file to avoid confusionallen2001-12-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2515 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed name of CCTK_DisplayTimerDataXXX() to CCTK_TimerPrintDataXXX().rideout2001-12-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2513 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added prototypes for new CCTK_DisplayTimerDataXXX() routines.tradke2001-12-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2502 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed the complex div() and abs() routines to conform to the GNU Scientific ↵tradke2001-12-12
| | | | | | | | | | | 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
* requires cctk_Types.h to compilerideout2001-12-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2493 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed fortran wrappers for CCTK_SyncGroupXXX() and CCTK_Barrier()tradke2001-12-09
| | | | | | | | | | | 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
* Define USE_ARGUMENTS macro which expands to something which use the argumentstradke2001-12-09
| | | | | | | | | 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
* Fixes for Cactus/833,828,825allen2001-12-04
| | | | | | | | | | | | | | | 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
* Turned the GH argument type in calls to CCTK_EnableGroup[{Storage}{Comm}]()tradke2001-11-27
| | | | | | | | | | | 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
* Stuff for utility table routines, implemented by Jonathon Thornburg.goodale2001-11-13
| | | | | | | | | Documentation should follow shortly... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2462 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
* Adding a const qualifier to the 'cGH *' argument of some flesh routinestradke2001-11-05
| | | | | | | | 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
* 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
* Adding the trigger groups for a routine to the cFunctionData structure.allen2001-11-03
| | | | | | | 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
* Added thorn name, routine name and scheduling bin to the FunctionDataallen2001-10-31
| | | | | | | | 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
* CCTK_MyProc(), CCTK_nProcs(), CCTK_Barrier() and their Cactus defaulttradke2001-10-31
| | | | | | | overloadables take a 'const cGH *' argument now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2443 17b73243-c579-4c4c-a9d2-2d5706c11dac
* All the CCTK_VarDataPtr() routines take a 'const cGH *' argument.tradke2001-10-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2441 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routines returning coordinate ranges take a 'const cGH *' as an argumenttradke2001-10-30
| | | | | | | since they shouldn't modify the GH. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2440 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed fortran prototype for registering an IO methodallen2001-10-29
| | | | | | | Cactus/817 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2439 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a bug from my last commit.tradke2001-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2431 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Include a structure definition into 'extern "C" {' just to be suretradke2001-10-24
| | | | | | | that C bindings are used for it. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2429 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New function to provide the implementation which provided a groupallen2001-10-23
| | | | | | | | | 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
* Just incase anyone registers an IO method from fortranallen2001-10-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2426 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a function which returns a list of required (=inherited+friends) ↵allen2001-10-23
| | | | | | | | | | | | 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
* Adding prototypesallen2001-10-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2424 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added implementation information for interpolation operatorsallen2001-10-23
| | | | | | | | | | | 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
* Added implementation information to reduce structureallen2001-10-23
| | | | | | | | | | | 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
* Added implementation information to the IOMethod structureallen2001-10-23
| | | | | | | | | | | 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
* Renamed function parameter from 'this' to 'list' otherwise you get problemstradke2001-10-23
| | | | | | | including this header in some C++ code. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2419 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
* Preliminary support for 'vector' Grid Variables -goodale2001-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixed misspelling in prototype declaration for CCTK_CoordSystemHandle().tradke2001-10-01
| | | | | | | This closes PR Cactus/795. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2390 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed duplicate prototype declaration for CCTK_CoordSystemHandle().tradke2001-10-01
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2389 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
* Make 'cGH *' argument to CCTK_TerminateNext() and CCTK_TerminationReached()tradke2001-09-20
| | | | | | | a const pointer. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2371 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Renamed 'struct cTimerFuncs' into 'struct cClockFuncs'.tradke2001-07-12
| | | | | | | 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