aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil
Commit message (Collapse)AuthorAge
* 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
* code formatting & comment tweaksjthorn2002-05-12
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@585 f88db872-0e4f-0410-b76b-b9085cfa78c5
* now have both const and non-const versions of data_array()jthorn2002-04-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@545 f88db872-0e4f-0410-b76b-b9085cfa78c5
* rename get_array() as data_array()jthorn2002-04-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@544 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix out-of-date commentsjthorn2002-04-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@543 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add linear_map::origin()jthorn2002-04-10
| | | | | | | rename linear_map::offset_ --> origin_ git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@485 f88db872-0e4f-0410-b76b-b9085cfa78c5
* tweak comment on why we still need jtutil::abs()jthorn2002-04-10
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@482 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change from jtutil::min/max --> std::, also add missing std:: in some filesjthorn2002-04-10
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@481 f88db872-0e4f-0410-b76b-b9085cfa78c5
* more compiler-found changes --> !!!first clean compile!!!jthorn2002-04-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@461 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change rvalue operator() fns to return const references to array datajthorn2002-04-07
| | | | | | | | | | | so they can be used in unary address-of expressions eg const jtutil::array2d<double> A(...) const double *pij = &A(i,j); also add test program for this git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@458 f88db872-0e4f-0410-b76b-b9085cfa78c5
* tweak the set of which types we pre-instantiate arrays forjthorn2002-04-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@456 f88db872-0e4f-0410-b76b-b9085cfa78c5
* tweak template instantiationsjthorn2002-04-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@455 f88db872-0e4f-0410-b76b-b9085cfa78c5
* rename template type: fp --> T since it need not be floating pointjthorn2002-04-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@454 f88db872-0e4f-0410-b76b-b9085cfa78c5
* revise template instantiations to get rid of DISABLE_TEMPLATE_INSTANTATIONS hackjthorn2002-04-07
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@453 f88db872-0e4f-0410-b76b-b9085cfa78c5
* try to get -I.. when Cactus compiles this directoryjthorn2002-04-06
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@442 f88db872-0e4f-0410-b76b-b9085cfa78c5
* get rid of old Makefile since we're now building within Cactusjthorn2002-04-05
| | | | | | | new makefile --> quick/dirty, builds test programs only git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@437 f88db872-0e4f-0410-b76b-b9085cfa78c5
* tweak a commentjthorn2002-04-04
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@430 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add functions to get array subscripting offset/stridesjthorn2002-03-30
| | | | | | | & test these git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@405 f88db872-0e4f-0410-b76b-b9085cfa78c5