aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil
Commit message (Collapse)AuthorAge
* 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
* comment tweak for namespace jtutil::jthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@386 f88db872-0e4f-0410-b76b-b9085cfa78c5
* finish upgrading test driver to test all array classes withjthorn2002-03-28
| | | | | | | both their own and noncontiguous/passed-in storage arrays git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@385 f88db872-0e4f-0410-b76b-b9085cfa78c5
* extend array3d<> and array4d<> to allow noncontiguous passed-in storage arraysjthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@384 f88db872-0e4f-0410-b76b-b9085cfa78c5
* array1d now allows noncontiguous storagejthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@383 f88db872-0e4f-0410-b76b-b9085cfa78c5
* test both owning and non-owning array version of array2djthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@382 f88db872-0e4f-0410-b76b-b9085cfa78c5
* fix library namejthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@381 f88db872-0e4f-0410-b76b-b9085cfa78c5
* minor wording tweaksjthorn2002-03-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@380 f88db872-0e4f-0410-b76b-b9085cfa78c5
* array.{cc,hh}jthorn2002-03-27
| | | | | | | | | | --> some bugfixes test_array.cc --> now test array2d<float> with passed-in array, nontrivial strides git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@379 f88db872-0e4f-0410-b76b-b9085cfa78c5
* put *everything* into namespace jtutil::jthorn2002-03-27
| | | | | | | start changing arrays to allow user-specified strides (only array2d so far) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@378 f88db872-0e4f-0410-b76b-b9085cfa78c5
* add a missing commentjthorn2001-09-28
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@365 f88db872-0e4f-0410-b76b-b9085cfa78c5
* permute a few items, update commentsjthorn2001-09-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@364 f88db872-0e4f-0410-b76b-b9085cfa78c5
* tweak comments on error_exit()jthorn2001-09-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@363 f88db872-0e4f-0410-b76b-b9085cfa78c5
* remove unused *SENTINAL_VALUE macrosjthorn2001-09-21
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@362 f88db872-0e4f-0410-b76b-b9085cfa78c5
* Modified Files:jthorn2001-09-16
| | | | | | | | | | | | libutil/README util/README describe main C++ classes Added Files: README describe subdirectories git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@350 f88db872-0e4f-0410-b76b-b9085cfa78c5
* whitespace tweak -- no code changejthorn2001-09-16
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@349 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change cpm_map user interface to dropjthorn2001-09-06
| | | | | | | | | | | | cpm_map::plus_map cpm_map::minus_map by renaming old "sign" by mnemonically-named "map_is_plus" --> user can now use bool constants true/false also add assert() of correct setup in each ctor git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@290 f88db872-0e4f-0410-b76b-b9085cfa78c5
* use unchecked map in constructor assert()jthorn2001-09-06
| | | | | | | | (veryifying proper setup of offset/sign) since sample point might be outside domain git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@289 f88db872-0e4f-0410-b76b-b9085cfa78c5
* change cpm_map to a template on the floating-point typejthorn2001-09-06
| | | | | | | ... also add some missing const qualifiers for local vars in constructors git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@287 f88db872-0e4f-0410-b76b-b9085cfa78c5