summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Replaced HUGE_VAL by DBL_MAX which should be used as the maximum floating-pointtradke2002-04-11
| | | | | | | | number. Thanks to Jonathan to point this out. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2707 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use HUGE_VAL instead of FLT_MAX for the maximum possible value for doubles.tradke2002-04-11
| | | | | | | This closes Cactus/966. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2706 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed to use the new GroupStorageIncrease/Decrease functions.goodale2002-04-04
| | | | | | | | | | | | Currently passes -1 as the timelevel for each group as we don't specify and read that data from the schedule.ccl files yet. This should make no visible change to anyone. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2694 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Two new overloadable routinesgoodale2002-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | CCTK_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) CCTK_GroupStorageDecrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) These should increase or decrease the number of timelevels with storage enabled to the number specified in the timelevels array for each group in the groups array. The status array is optional, and if not NULL should contain the previous number of timelevels enabled for that group. A timelevel value of -1 implies enable/disable all timelevels for that group. The Increase function should never decrease the amount of storage, and the Decrease one never increase it, so it is possible to use Enable to ensure a certain minimum number of timelevels are available without problem, and to pass the status return from Enable in as the timelevel array of Decrease to restore the previous state of the system. The defaults for these functions currently call the old Enable and Disable GroupStorage routines if they have been overloaded, similarly the defaults for the old routines have been changed to call the new routines if they are overloaded, passing -1 as the timelevel value. The old routines will disappear eventually once all drivers are converted to the new routines. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2693 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow implementation name for fully qualified parameter names when setting ↵goodale2002-04-03
| | | | | | | | | array sizes. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2687 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[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
* Increased the number of precision digits for floating-point values returnedtradke2002-03-28
| | | | | | | by CCTK_ParameterValString(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@2681 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
* Formatting change when printing out group names. Only puts a label at thegoodale2002-03-26
| | | | | | | | | beginning of a group now. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2670 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a thing from my previous commit when printing the schedule tree.tradke2002-03-25
| | | | | | | | Also put in Erik's patch to print group names in a schedule. This closes PR Cactus/771. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2669 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed the indentation level when printing scheduled groups.tradke2002-03-25
| | | | | | | This closes PR Cactus/943. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2664 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When printing the schedule tree, also say when periodic output is done.tradke2002-03-19
| | | | | | | This closes PR Cactus/804. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2655 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Print routines which are registered for CCTK_POST_RECOVER_VARIABLES.tradke2002-03-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2654 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added new KEYWORD parameter 'Cactus::recovery_mode' (steerable at RECOVER).tradke2002-03-19
| | | | | | | | | | | | | | | | | | This is evaluated during recovery and can be set to - 'strict' meaning all CCTK variables must be recovered successfully, and no INITIAL timebins will be scheduled This is the default. - 'relaxed' saying: recover variables if possible, and schedule INITIAL timebins afterwards Also added a new scheduling bin CCTK_POST_RECOVER_VARIABLES at which routines can be scheduling which want to modify (recovered) initial data. This closes PR Cactus/629, Cactus/893, Cactus/921. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2653 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Store the information whether we recover from a checkpoint or nottradke2002-03-19
| | | | | | | | (as returned by CCTKi_BindingsParameterRecoveryInitialise()) in the tFleshConfig structure. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2652 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
* Allow the param_type argument to CCTK_ParameterGet() to be passed in astradke2002-03-19
| | | | | | | a NULL pointer if no such information is wanted. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2649 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing prototype for fortran wrapper.tradke2002-03-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2645 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
* Nonimportant fix to a fortran wrapperallen2002-02-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2625 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Made it so that netdb.h and winsock2.h are never both included. This waskcamarda2002-02-22
| | | | | | | necessary to compile with the gnu compilers in cygwin. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2617 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
* Added fortran wrapper for CCTK_TerminateNext().rideout2002-02-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2609 17b73243-c579-4c4c-a9d2-2d5706c11dac
* [[from Jonathan Thornburg]]tradke2002-02-04
| | | | | | | | | | | | | | | | | | Small fixes to Util_TableSetFromString(): * trap some error cases involving invalid keys which slipped by before * document UTIL_ERROR_BAD_KEY as a possible error code * accept trailing whitespace at end of string (this was rejected before) * revise BNF in grdoc comment to correctly describe what the code accepts [I've already revised it in the latex docs (doc/UsersGuide/FunctionReference.tex)] Also fix Util_TableCreateFromString(): * document UTIL_ERROR_BAD_KEY as a possible error code Thanks to Erik Schnetter for pointing out these problems! git-svn-id: http://svn.cactuscode.org/flesh/trunk@2606 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Optimized version of Util_StrCmpi() which doesn't need to call strlen().tradke2002-01-28
| | | | | | | Closes PR Cactus-892. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2597 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Makefile for standalone test of Table Utilities archived on Maintainer weballen2002-01-25
| | | | | | | pages for now git-svn-id: http://svn.cactuscode.org/flesh/trunk@2596 17b73243-c579-4c4c-a9d2-2d5706c11dac
* The 'h' in $Header$ must be capitalized to be parsed by cvs.rideout2002-01-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2591 17b73243-c579-4c4c-a9d2-2d5706c11dac
* File committed into wrong directory.rideout2002-01-21
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2590 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
* [[message actually from Jonathan Thornburg, checkin by David Rideoutrideout2002-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | since JT doesn't have the appropriate CVS karma]] src/util/Table.c * by popular (or at least semi-popular :) demand..... add new function int Util_TableSetFromString(int handle, const char *string) to set a sequence of key/value entries in an existing table, based on a parameter-file-style string. [[This functionality was present before in Util_TableCreateFromSTring(), but bundled together with creating a new table. This change splits out the "scan through a string doing the table assignments it specifies" functionality into a separate function, since it seems useful in various contextx.]] * change Util_TableCreateFromString() to call the new Util_TableSetFromString() to do most of the work * change the test suite to test the new function a bit src/util/makefile * new file, makefile to build standalone test driver for table routines src/include/util_Table.h * add prototype for new Util_TableSetFromString() function git-svn-id: http://svn.cactuscode.org/flesh/trunk@2588 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added missing include.tradke2002-01-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2585 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for a race condition in case CCTK_CreateDirectory() is called for thetradke2002-01-17
| | | | | | | same directory from multiple procs at the same time. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2583 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
* Typo in grdocallen2002-01-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2573 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug getting the command line arguments.tradke2002-01-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2570 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add the name of the executable to the banner printed to standard out.allen2002-01-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2566 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a small bug. Completed grdoc.tradke2002-01-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2565 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
* Set warning level 2 for warnings about out-of-range parameter values.tradke2002-01-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2554 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed return code for CCTK_OutputGH() - now returns the total number of varstradke2001-12-30
| | | | | | | which were output by all I/O methods. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2548 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
* New functionsallen2001-12-29
| | | | | | | | | | | | | | | const char *CCTK_CoordName (int dir, const char *systemname) const char *CCTK_CoordSystemImplementation (int handle) int CCTK_NumCoordSystems (void) (probably not optimum names now, since maybe CoordSystemImplementation should take the system name, but this matches what there is now in IO, Interp, Reduce) Also fixed a bug in CCTK_CoordRange where there was no return value to signify that the range wasn't actually found if everything else was there. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2543 17b73243-c579-4c4c-a9d2-2d5706c11dac
* typo in grdocallen2001-12-29
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2542 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed return code evaluation of I/O methods' OutputGH() routines.tradke2001-12-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2535 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Tidied some warnings and added new function to return interp/reduce operator ↵allen2001-12-27
| | | | | | | | | name from handle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2534 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New function to return IO method name from handleallen2001-12-27
| | | | | | | const char *CCTK_IOMethod (int handle) git-svn-id: http://svn.cactuscode.org/flesh/trunk@2533 17b73243-c579-4c4c-a9d2-2d5706c11dac