summaryrefslogtreecommitdiff
path: root/src/util/Misc.c
Commit message (Collapse)AuthorAge
* Implemented fortran wrapper functiontradke2002-12-11
| | | | | | | | | | | | addr = CCTK_PointerTo (var) CCTK_POINTER addr, var which returns the address of a variable passed in by reference from a fortran routine. This function is declared by the DECLARE_CCTK_FUNCTIONS macro. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3039 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Putting semicolons at the end of the CCTK_FILEVERSIONs.goodale2002-11-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3028 17b73243-c579-4c4c-a9d2-2d5706c11dac
* 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
* Removed warning from CCTK_SetBoolean, this should be caught in anyallen2001-12-04
| | | | | | | calling routine git-svn-id: http://svn.cactuscode.org/flesh/trunk@2477 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed semantics for the fortran wrappers CCTK_FortranString() and ↵tradke2001-11-06
| | | | | | CCTK_ParameterValString(). git-svn-id: http://svn.cactuscode.org/flesh/trunk@2457 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed compiler warnings.tradke2001-05-19
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2193 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Compiler warningsallen2001-05-10
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2165 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making rcsid strings constant - PR 669.goodale2001-05-10
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2159 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus/460allen2000-10-07
| | | | | | | Optimising CCTK_Equals and fixing Util_NullTerminate git-svn-id: http://svn.cactuscode.org/flesh/trunk@1861 17b73243-c579-4c4c-a9d2-2d5706c11dac
* grdoc, style-guidelines, ...goodale2000-10-05
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_NullTerminateString now removes the blanks at the end of a string.allen2000-10-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1853 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing memory leak.goodale2000-05-12
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1650 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_mkdir is now replaced byallen2000-05-10
| | | | | | | | | | | CCTK_CreateDirectory which creates a directory and any needed parents CCTK_mkdir will be removed in Beta 9 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1636 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Moved the util string functions to one place.goodale2000-05-02
| | | | | | | | | | Added Util_StrSep - same functionality as strsep. Renamed CCTK_StrDup as Util_Strdup. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1621 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing rcsid warningsallen2000-04-17
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1559 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added back the line to in CCTK_FortranString which does agoodale2000-04-04
| | | | | | | | | | | | ONE_FORTSTRING_CREATE. This will produce compiler warnings about unused variables on most platforms but is necessary for the T3E. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1512 17b73243-c579-4c4c-a9d2-2d5706c11dac
* GRDOC and bugfix for CCTK_Strdup.goodale2000-03-31
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1507 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing compiler warningsallen2000-03-30
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1505 17b73243-c579-4c4c-a9d2-2d5706c11dac
* CCTK_Strduplanfer2000-03-28
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1498 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removing compiler warningallen2000-03-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1487 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified. A few format changes to get closer to standard.goodale2000-03-07
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1433 17b73243-c579-4c4c-a9d2-2d5706c11dac
* A little bit of tidying.goodale2000-03-06
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1421 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Updating GNU files to glibc 2.1.2.goodale2000-02-15
| | | | | | | | | | | | | | | Tidying up how they are included - now people should include cctk_GNU.h. This will allow us later to check what functions are available and maybe not compile the GNU stuff. NOTE: If you edit the GNU stuff please put a wapping great comment /* CCTK: Changed by <> on <> */ by the change and a note in the README. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1380 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2000-01-27
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1312 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Capitalising include file namesallen2000-01-16
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1265 17b73243-c579-4c4c-a9d2-2d5706c11dac
* 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
* 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
* 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
* 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
* 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
* 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
* 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 a new line in a print statementallen1999-09-07
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@879 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
* 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
* 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
* 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
* 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
* 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