summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
...
* 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
* Added FMODIFIER to Fortran subroutine definitions.goodale1999-06-24
| | | | | | | | | | FMODIFIER is now in config.h, so you may need to do a <conf>-reconfig after updating. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@568 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Reinstating the #ifdefed out regular expression stuff now that the gnugoodale1999-06-07
| | | | | | | | | regex stuff is in the source. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@548 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Commented out some Windows specific stuff, this should go into an ifdef at somegoodale1999-06-03
| | | | | | | | | point very soon... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@545 17b73243-c579-4c4c-a9d2-2d5706c11dac
* More changes from Joan and his NT nightmares.jmasso1999-06-03
| | | | | | | Please try this on a reasonable OS. git-svn-id: http://svn.cactuscode.org/flesh/trunk@543 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added the GNU extended regalar expression library sources. These files aregoodale1999-05-26
| | | | | | | | | | | | | | | as distributed with the regex-0.12 package, except for prepending them with gnu_ and a couple of clearly marked changes, plus the adddition of grdoc file headers. This should guarantee the same behaviour and presence of regular expressions on all platforms, especially those which don't fully support POSIX regular expresssions. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@533 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added a debugging statement for CCTK_NullTerminateStringallen1999-05-09
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@521 17b73243-c579-4c4c-a9d2-2d5706c11dac
* New function to allocate memory for a Cactus timer.goodale1999-05-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@517 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Changed CCTK_WARN to CCTK_Warnallen1999-04-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@499 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_Warn gets extra argumentallen1999-04-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@496 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added CCTK_StringInRegexList and CCTK_RegexMatch subroutines whichgoodale1999-04-16
| | | | | | | | | | | use the POSIX.2 regular expression functions regcomp and regexec to do regular expression matching on strings. These functions seem to be available and operating in the same way on all platforms. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@485 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed the CCTK_PrintString routine after Tom pointed out I was missing aallen1999-04-06
| | | | | | | pointer git-svn-id: http://svn.cactuscode.org/flesh/trunk@443 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Finished error checking in CCTK_Equalsallen1999-04-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@436 17b73243-c579-4c4c-a9d2-2d5706c11dac