summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
* config.h -> cctk_config.hallen2000-01-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1247 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for negative parameters from Eric Schnetterallen1999-12-16
| | | | | | | | | Cactus/186 Also fix for closed ranges of parameters git-svn-id: http://svn.cactuscode.org/flesh/trunk@1200 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various changes to make sure there are function prototypes for things.goodale1999-11-30
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1179 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New cache alignment stuff.goodale1999-11-30
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1178 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed tabs from files.goodale1999-11-24
| | | | | | | | | Added @version lines to various header files. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1170 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_FortranString has to return the lenght of the string as CCTK_INT, not ↵lanfer1999-11-09
| | | | | | int because this gives pointer errors (on the T3E) git-svn-id: http://svn.cactuscode.org/flesh/trunk@1147 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a silly mistake I just committed. Thanks Ralph.goodale1999-11-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1131 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing various things pointed to by compiling with -Wall.goodale1999-11-03
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1129 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Collision chaining hash tables.goodale1999-10-27
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1115 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check for an active handle in Util_GetHandle().tradke1999-10-27
| | | | | | | | The following strcmp() crashed if an already destroyed handle was passed. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1113 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Various things pointed out by running Insure on the code.goodale1999-10-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1109 17b73243-c579-4c4c-a9d2-2d5706c11dac
* A bugfix in creating anonymous timers.goodale1999-10-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1105 17b73243-c579-4c4c-a9d2-2d5706c11dac
* added default return value for CCTK_mkdir (purify complaint)lanfer1999-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1095 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fortran string stuff on the T3E. Have introducedgoodale1999-10-22
| | | | | | | | | | | | | | | ONE_FORTRSTRING_PTR(arg) etc to get the pointer to a fortran string. Still needs testing on other architectures. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1084 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More updates to timer stuff.goodale1999-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | Now to get info from a timer, one must create a timer info function: info = CCTK_TimerCreateInfo(); Get the data CCTK_TimerGet(timer, info); Query the fields in the info structure, and then either query another timer with the same info structure, or destroy the info structure. CCTK_TimerDestroyInfo(info); The info structure contains the number of values, and an array of these values, along with header info, units, data types and values. I think this is a fairly complete interface, but if a better one can be found, this may change. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1083 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changes for new timer stuff.goodale1999-10-21
| | | | | | | | | | Currently have #if 0ed out all references to old timers in thorns and flesh to act as placeholders for new timer stuff. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1079 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some new timer stuff. Compiles and links under linux and NT, butgoodale1999-10-20
| | | | | | | | | | | untested as yet. Still need to put in MPI time and the windows time stuff, as well as hardware counters, and still need to wrap schedule stuff with timers. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1074 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Bug fixes - hopefully traversal of the threaded tree works now.goodale1999-10-18
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1049 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Only try and create each directory name onceallen1999-10-18
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1048 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_FortranString which turns a C string into a fortran stringallen1999-10-14
| | | | | | | | Note that the fortran string has to have its length predefined, this routine returns also the number of characters which are used git-svn-id: http://svn.cactuscode.org/flesh/trunk@1022 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fortran binding for CCTK_mkdirallen1999-10-14
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1021 17b73243-c579-4c4c-a9d2-2d5706c11dac
* STR_cmpi returns immediately if the two string are a different length. Thegoodale1999-10-13
| | | | | | | | | return code in that case indicates which is longer. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1018 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now a "!" starts a directive in the parameter files, for now this isallen1999-09-25
| | | | | | | | | | | | | just for adding a description of the par file !DESC "Black hole evolution with ADM" which is parsed by runtest Needs to be changed so that it only picks up a ! at the start of the line, git-svn-id: http://svn.cactuscode.org/flesh/trunk@993 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Renamed LOGICAL in ccl files to BOOLEANallen1999-09-21
| | | | | | | | | | LOGICAL will still work for now Hopefully this will remove the confusion in Fortran with "logicals" having integer values git-svn-id: http://svn.cactuscode.org/flesh/trunk@977 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added headersallen1999-09-15
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@920 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Start on the new timer stuff.goodale1999-09-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@906 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Minor bug fix.goodale1999-09-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@905 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo using MKDIRFLAGS until it also works under NT.tradke1999-09-13
| | | | | | | Commented the code out and added a small description. git-svn-id: http://svn.cactuscode.org/flesh/trunk@900 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Use also MKDIRFLAGS when creating directories.tradke1999-09-13
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@899 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Null Terminate String now gives a warning if the length of the stringallen1999-09-11
| | | | | | | | | | passed is more that 100000, since this always happens if you put the wrong arguments in a call to C from Fortran. It lets you carry on, since then you can use a debugger to see exactly where the problem is without editting any par files. git-svn-id: http://svn.cactuscode.org/flesh/trunk@896 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed MKDIRFLAGS from directory creation command. Default will beallen1999-09-07
| | | | | | | to give a warning if the directory exists. git-svn-id: http://svn.cactuscode.org/flesh/trunk@882 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed a new line in a print statementallen1999-09-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@879 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Routine to create new directories CCTK_mkdirallen1999-09-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@878 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a cut'n'paste bug.goodale1999-09-03
| | | | | | | | | | Added <float.h> to make sure the definitions of FLT_MAX and _MIN are included, this should help the build on NT. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@866 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New parameter stuff.goodale1999-08-26
| | | | | | | | | | | Now a non-active thorn's extensions to parameters shouldn't be valid, range checking is now done, even for strings, which must conform to a regular expression. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@859 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a find function.goodale1999-08-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@858 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Some tidying up - removing some redundant stuff added for WIN32.goodale1999-08-26
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@857 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New include file namesallen1999-07-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@833 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK function name changesallen1999-07-26
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@787 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More names changesallen1999-07-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@780 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More subroutine name changesallen1999-07-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@778 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changing some routine names.allen1999-07-24
| | | | | | | | | Internal functions are CCTKi_ Utility functions are Util_ git-svn-id: http://svn.cactuscode.org/flesh/trunk@777 17b73243-c579-4c4c-a9d2-2d5706c11dac
* If there is no = before the end of the line discards the tokensgoodale1999-07-07
| | | | | | | | | | | | collected so far. This stops it continuing collecting the name of a parameter across newlines. Note that this bug will also be there in Cactus 3.0. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@686 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updated CCTK_SetLogical to use CCTK_INT.goodale1999-07-06
| | | | | | | | | | Moved a ONE_FORTSTRING_ARG to end of variable declarations so that it can contain non-declarations. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@683 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix to SetDoubleInRange and SetIntInRange so compiling on the T3E works.allen1999-07-05
| | | | | | | | At the moment it won't work for real or int parameters which aren't defined as CCTK_INT or CCTK_REAL in param.ccl git-svn-id: http://svn.cactuscode.org/flesh/trunk@654 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes for the ActiveThorns.goodale1999-07-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@649 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug in tree creation.goodale1999-07-04
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@647 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Stuff for the ActiveThorns parameter.goodale1999-07-04
| | | | | | | | | | | | | | | | Now need to specify ActiveThorns before any other parameters to list those thorns which are active. No parameters or startup or rfr routines are available from inactive thorns. Note that this isn't quite working yet but I hope to track it down by morning. In the meantime either don't update or be prepared for things to be slightly broken. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@645 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Need to include cctk.h to get CCTK_WARN macros.allen1999-07-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@622 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed CCTK_Warns t CCTK_WARN so that I can try and pass thorught theallen1999-07-03
| | | | | | | | | | | | | | | | | | | | | | | | line number and file name to the Warn message. This hass problems: 1) I really need to include cctk.h then (for some reason) in WarnLevel.h, but then I guess the Fortran name for CCTK_Warn is CCTK_WARN so it doesn't much care for me having a macro for CCTK_WARN. 2) Now I need three fortran strings to be passed into C. This works at the moment on Linux, but not on other machines, so you may need to run with warnings off for a little while. 3) Fortran doesn't get the file name, because (?) it is actually something from a pipe which gets preprocessed and not the file. I have no idea how to fix this. I may just scrap all this, but I want to persevere a bit Oh, there is a new parameter cctk_full_warnings (default yes for now) which gives the old style warnings with no. git-svn-id: http://svn.cactuscode.org/flesh/trunk@618 17b73243-c579-4c4c-a9d2-2d5706c11dac