aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil
Commit message (Collapse)AuthorAge
* Make "Erik" branch the default trunk for AHFinderDirect.svnadmin2008-06-26
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1526 f88db872-0e4f-0410-b76b-b9085cfa78c5
* remove trailing semicolon afterjthorn2006-07-21
| | | | | | | | | namespace foo { ... } (C++ forbids this; I had used it by mistake) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1460 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix a C++ namespaces bug found by Erik:jthorn2005-02-01
| | | | | | | | | | | | | | | error_exit() was declared extern "C" --> it wasn't namespace-mangled --> it could conflict with a similar error_exit() in another thorn although this fix touches a *lot* of files, it's conceptually simple: * error_exit() is not extern "C" any more * everything in src/jtutil/ (which used to be in the jtutil:: namespace) is now in the AHFinderDirect::jtutil:: namespace --> all C++ code in this thorn is now inside the AHFinderDirect:: namespace git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1395 f88db872-0e4f-0410-b76b-b9085cfa78c5
* disable automagic template instantiation on SGI CC compilerjthorn2004-07-01
| | | | | | | | | | | | because it's totally broken: if file A contains #include "../jtutil/array.hh" the compiler tries to also #include "../jtutil/array.cc" (even though I didn't ask for that file)... then it gets fatal errors when it can't resolve relative include paths for *that* file :( git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1375 f88db872-0e4f-0410-b76b-b9085cfa78c5
* Add proper CXXFLAGS to disable automatic template instantiation on DEC Alphastradke2003-12-12
| | | | | | | with native C++. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1226 f88db872-0e4f-0410-b76b-b9085cfa78c5
* move lots and lots of code into C++ namespace AHFinderDirectjthorn2003-08-18
| | | | | | | so it can't conflict with stuff in other thorns git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1184 f88db872-0e4f-0410-b76b-b9085cfa78c5
* rename makefile to Makefile.standalonejthorn2003-07-31
| | | | | | | | since the latter is the Cactus standard and doesn't interfere with the Cactus build systems on Windoze systems git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1168 f88db872-0e4f-0410-b76b-b9085cfa78c5
* * change comments in all make.code.defn filesjthorn2003-06-04
| | | | | | | * add new sparse matrix library in src/sparse-matrix/umfpack/ git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1098 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add #ifndef include guards to a bunch of files, even though they shouldn'tjthorn2003-05-06
| | | | | | | | | | | | be necessary (I never include a file twice!)... since certain lame/broken/dumb compilers (like DEC/Compaq/HP/whatever-they-call-themselves-this-week C++ version 6.something on Alpha Linux) still give multiple inclusions even with automagic template instantiation turned off :( :( :( -- thanks to Frank Loeffler for helping track this problem down! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1050 f88db872-0e4f-0410-b76b-b9085cfa78c5
* Change from using a private Strlcat() function to the Util_Strlcat()jthorn2003-05-02
| | | | | | | | | | | | | one that's now in the Cactus flesh. ***** ***** After this change, you will need to cvs-update your copy of the ***** Cactus flesh (files src/util/String.c and src/util/util_String.h) ***** in order to recompile this thorn. ***** git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1041 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add header-comment which got dropped by mistakejthorn2003-03-25
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1021 f88db872-0e4f-0410-b76b-b9085cfa78c5
* oops forgot to cvs-commit this file!jthorn2003-03-24
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1009 f88db872-0e4f-0410-b76b-b9085cfa78c5
* pull C-compatible stuff out of "jtutil/util.hh" into a separatejthorn2003-03-24
| | | | | | | | C-only header file to avoid problems with strict C compilers not grokking C++-style // comments even in #ifdef __cplusplus sections git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1007 f88db872-0e4f-0410-b76b-b9085cfa78c5
* guard inline functions which use <math.h> fns inside #ifdef M_PIjthorn2003-03-20
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@997 f88db872-0e4f-0410-b76b-b9085cfa78c5
* slight tweak to maybe fix bug with Portland Group C compilerjthorn2003-03-20
| | | | | | | | | | | | | | | | that doesn't grok C++-style comment on #ifdef when compiling C code, even though that #ifdef is inside #ifdef __cplusplus #ifdef __cplusplus #ifdef blah // C++-style comment #endif #endif fix is to change to C-style comment for the #ifdef git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@996 f88db872-0e4f-0410-b76b-b9085cfa78c5
* switch from C++-style to C-style comments in the C section of thisjthorn2003-03-20
| | | | | | | C/C++ header file git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@995 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add ifloor() and iceil() functionsjthorn2003-03-17
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@981 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add 1st draft of support for setting an excision maskjthorn2003-03-17
| | | | | | | -- alas this doesn't work properly (yet) for multiple processors git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@975 f88db872-0e4f-0410-b76b-b9085cfa78c5
* minor tweaksjthorn2003-03-12
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@966 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add zero_C_array() templatejthorn2003-03-12
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@965 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add explicit C++ compiler invocationsjthorn2003-03-12
| | | | | | | | because sometimes the C compiler was getting used to do the final linking which broke things horribly git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@964 f88db872-0e4f-0410-b76b-b9085cfa78c5
* move 4D arrays (which we don't use in this thorn) inside #ifdef NOT_USEDjthorn2003-03-12
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@963 f88db872-0e4f-0410-b76b-b9085cfa78c5
* compute min/max horizon radius for each horizon foundjthorn2003-02-27
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@952 f88db872-0e4f-0410-b76b-b9085cfa78c5
* only explictly instantiate jtutil::array*d<> for the types we really need,jthorn2003-02-26
| | | | | | | | and move all the standalone-test explict instantiantions inside #ifdef STANDALONE_TEST git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@950 f88db872-0e4f-0410-b76b-b9085cfa78c5
* * general tidying of multiprocessor codejthorn2003-02-16
| | | | | | | | | | | | | | * add current iteration number to what's sent to processor #0 for printing at each iteration * add a new verbosity level "algorithm debug" for what used to be #ifdef DEBUG debugging code * add new parameters & logic to set CCTK_Warn() levels for various warnings (eg AH is outside the gid, metric isn't +ve definite, etc) * restore the ability to output the horizon shape to a data file, which I mistakenly deleted a few days ago :( git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@947 f88db872-0e4f-0410-b76b-b9085cfa78c5
* Change various jtutil/ templates which used to bejthorn2003-01-18
| | | | | | | | | | | | | | | | template <typename fp> to template <typename fp_t> (that is, rename the tempalte parameter from "fp" to "fp_t"). The reason for this change is that elsewhere in this thorn, I use "fp" as a typedef for CCTK_REAL (= usually a typedef for double). Using the same name for both a specific type and a template parameter may be confusing to humans. It also may be confusing the Hitachi compiler... git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@925 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change syntax of template instantiations yet again, to satisfy(??)jthorn2002-11-05
| | | | | | | | | regatta C++ compiler -- now do everything inside namespace jtutil { ... } instead of using individual jtutil:: qualifiers git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@884 f88db872-0e4f-0410-b76b-b9085cfa78c5
* back out last change for these filesjthorn2002-10-11
| | | | | | | | | | | | | | | | > test_fuzzy.cc > * change error_exit() call to fprintf(stderr, ...) followed by abort() > so we don't need error_exit() and thus can compile standalone > (error_exit() now needs "cctk.h" :( ) > > makefile > * remove dependence on error_exit() from test_fuzzy since error_exit() does *NOT* actually need "cctk.h" if we compile with -DSTANDALONE_TEST git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@827 f88db872-0e4f-0410-b76b-b9085cfa78c5
* util.hhjthorn2002-10-11
| | | | | | | | | | | | | | | | | | | | * make fuzzy::tolerance a private data member and add set/get public fns to access it ((cleaner C++ style)) fuzzy.cc * fix template-instantiation syntax ==> now warning-free with icc 5, hopefully this will also fix the fatal errors on the Hitachi test_fuzzy.cc * change error_exit() call to fprintf(stderr, ...) followed by abort() so we don't need error_exit() and thus can compile standalone (error_exit() now needs "cctk.h" :( ) makefile * remove dependence on error_exit() from test_fuzzy git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@826 f88db872-0e4f-0410-b76b-b9085cfa78c5
* restore explicit jtutil:: namespace qualifiers on template instantiationjthorn2002-10-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@808 f88db872-0e4f-0410-b76b-b9085cfa78c5
* still another syntax tweak -- had a namespace qualifier wrong beforejthorn2002-10-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@805 f88db872-0e4f-0410-b76b-b9085cfa78c5
* try sme more syntax tweaks to see if we can get it right this timejthorn2002-10-07
| | | | | | | (icc was still complaining last time) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@798 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix a few syntx nits found by icc:jthorn2002-10-06
| | | | | | | | extra ; after closing { of namespace jtutil { ... }; missing namespace jtutil in error_exit.cc git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@797 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix template instantiation syntax for fuzzy::tolerancejthorn2002-10-06
| | | | | | | | Thanks to Thomas Mang <a9804814@unet.univie.ac.at> for answering my comp.lang.c++.moderated query on what syntax is correct here! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@796 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix some spelling mistakes in commentsjthorn2002-10-05
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@793 f88db872-0e4f-0410-b76b-b9085cfa78c5
* redo my error_exit() routine so thatjthorn2002-09-29
| | | | | | | | | | | | | | | | | | | | | #ifdef STANDALONE_TEST it's just what it used to be -- prints a msg to stderr and then does an exit() or abort() #else it formats the message into a buffer, removes the trailing '\n' if any, and then calls CCTK_VWarn() to print the msg andcleanly terminate the Cactus run #endif Modified Files: make.code.defn makefile Added Files: error_exit.cc test_error_exit.cc Removed Files: error_exit.c git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@781 f88db872-0e4f-0410-b76b-b9085cfa78c5
* - rename "config.hh" to "config.h" since it's now C++/C/Fortranjthorn2002-09-29
| | | | | | | | | | | | minor code tweaks for better portability (std:: namespace stuff) - switch all (new-style) #include <cstdio> style includes back to (old-style) #include <stdio.h> style - drop all using std::printf; declarations - change all uses of std::min and std::max to jtuti:: instead - drop all explicit std:: qualifiers git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@777 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add extra { } around for loops so the code is now agnosticjthorn2002-09-26
| | | | | | | with regards to modern vs archaic for-loop declaration scope git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@773 f88db872-0e4f-0410-b76b-b9085cfa78c5
* when we have a default argument to a C++ function, only give thejthorn2002-09-20
| | | | | | | | | | | | | | | | | | default in the .hh file -- in the .cc file you're not supposed to repeat it (it's now in /* comments /), eg // foo.hh void foo(int x, int y = 0); // foo.cc #include "foo.hh" void foo(int x, int y /* = 0 */) { // ... } git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@760 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change '$Id:' to '$Header:'jthorn2002-09-16
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@744 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change $Id:$ --> $Header:$jthorn2002-09-13
| | | | | | | | | rename src/util/ --> src/patch/ add Jacobian code for computing surface integrals add support for choosing ASCII or HDF5 data files (HDF5 not implemented yet) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@727 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add the ability to compute the mean value in my norm classjthorn2002-09-03
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@699 f88db872-0e4f-0410-b76b-b9085cfa78c5
* re-sync changes from laptopjthorn2002-07-26
| | | | | | | | - parameter to control how Jacobian is computed - can hardwire geometry to Schwarzschild/EF git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@661 f88db872-0e4f-0410-b76b-b9085cfa78c5
* various changes including d/dr terms in Jacobian by numerical perturbation,jthorn2002-07-22
| | | | | | | | | tweak I/O parameters, move printing Jacobian out of Jacobian class into test driver, drop unused array BLAS routines in jtutil:: git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@654 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add a whole bunch of changes from working at homejthorn2002-07-22
| | | | | | | --> AHFinderDirect now finds AH correctly for Kerr/offset!!! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@648 f88db872-0e4f-0410-b76b-b9085cfa78c5
* move to ../include/jthorn2002-07-08
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@620 f88db872-0e4f-0410-b76b-b9085cfa78c5
* array.{cc,hh}jthorn2002-07-08
| | | | | | | | | | | | | | | | | | | * rename is_valid_subscript() functions to is_valid_i() , is_valid_ij() , is_valid_ijk(), is_valid_ijkl() * also switch subscript() over to separate asserts on each axis so assert violation msg will tell us which axis is out of range array.cc * add #ifdef STANDALONE_TEST code to get "fake_cctk.h" in this case cpm_map.cc * tweak some comments makefile * define STANDALONE_TEST for standalone test compilations git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@609 f88db872-0e4f-0410-b76b-b9085cfa78c5
* don't need these any more with new #include organizationjthorn2002-07-01
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@604 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add a template instantiation with CCTK_INT (requires #include "cctk.h")jthorn2002-06-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@597 f88db872-0e4f-0410-b76b-b9085cfa78c5
* switch to new organization for #include files:jthorn2002-06-24
| | | | | | | | we #include stuff in . and ../include directly, everything else includes a relative pathname ../whereever/foo.hh git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@589 f88db872-0e4f-0410-b76b-b9085cfa78c5