aboutsummaryrefslogtreecommitdiff
path: root/src/GeneralizedPolynomial-Uniform
Commit message (Collapse)AuthorAge
* Remove Jonathan Thornburg's interpolatorjthorn2003-07-06
| | | | | | | | | | | | | (which is GPL and thus not allowed to be in CactusBase; it now lives in AEIThorns/AEILocalInterp/) so this thorn contains only the interpolator written by Thomas Radke in early 2001. The files for this interpolator are now in src/ ; before this commit they were in src/UniformCartesian/ . git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@154 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* better describe the files/subdirectories herejthorn2003-05-23
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@153 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* fix two minor syntax botches caught by Erik:jthorn2003-05-05
| | | | | | | | | | * missing closing $ in $Header:$ tag * missing closing */ in comment neither of these changed the executable code :) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@151 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* don't need this file any more because the routine we're testing isjthorn2003-05-02
| | | | | | | now in the flesh (src/util/String.c) with the test code there as well git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@150 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Change from using a private Strlcpy() function to the Util_Strlcpy()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.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@149 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* remove old machine-generated coefficient filesjthorn2003-04-15
| | | | | | | | | now that we've switched to using the new ones which have separate tensor-product and maximum-degree Lagrange interpolation operators git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@148 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Switch to using new version of Lagrange polynomial interpolationjthorn2003-04-15
| | | | | | | | | | | which has separate tensor-product and maximum-degree interpolation operators, with the former now the default. This should fix the problem Yosef Zlowcher (sp?) found with the interpolant not being continuous in multiple dimensions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@145 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* new machine-generated coefficient files for this interpolatorjthorn2003-04-15
| | | | | | | | (with Lagrange now split into tensor-product and maximum-degree interpolators) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@144 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* fix the test for input and output arrays having the same number ofjthorn2003-02-13
| | | | | | | | real/complex parts so it doesn't give spurious errors if there are null pointers in either the input or output arrays git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@139 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* note that there is a Hermite interpolatorjthorn2003-02-03
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@136 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* bring documentation (which was 6 months or so out of date)jthorn2003-02-03
| | | | | | | up to date with the code git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@135 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* oops, forgot to commit my changes to this to match recent changesjthorn2003-02-03
| | | | | | | in InterpLocalUniform.[ch] git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@133 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* finish splitting up (huge) LocalInterp_InterpLocalUniform()jthorn2003-02-03
| | | | | | | | | | | function into smaller subfunctions, now it's "only" about 600 lines long (before it was around 1200 lines :( :( :( ) also fix a few more bugs in error reporting and add a few more comments git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@132 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add LocalInterp_Strlcpy() functionjthorn2003-02-03
| | | | | | | | for safer string copying, also standalone test driver for this to make sure I have it right! git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@131 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* bracket a for-loop inside extra { ... } so the for-loop variablejthorn2003-01-29
| | | | | | | doesn't escape into the main function's scope git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@129 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* remove another unused variable...jthorn2003-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@128 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* give a bit more info if we warn about "almost certainly a mistake"jthorn2003-01-29
| | | | | | | boundary off-centering vs extrapolation tolerances git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@127 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* remove some unused variables left in by mistakejthorn2003-01-29
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@126 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Code changesjthorn2003-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * support the same off-centering and boundary options as the new global interpolator (which needs the support here to work): this means changing the former parameter-table entry off_centering_tolerance to the new entries boundary_off_centering_tolerance boundary_extrapolation_tolerance * implement the N_boundary_points_to_omit parameter-table entry, (previously this was documented but not implemented) * completely rewrite the LocalInterp_molecule_posn() function and its test driver to support the above changes * change error return code from old CCTK_ERROR_INTERP_POINT_X_RANGE to new CCTK_ERROR_INTERP_POINT_OUTSIDE to avoid confusion with the old name suggesting that this was specific to the X coordinate * fix documentation of interpolation operator names for older (uniform Cartesian) CCTK_InterpLocal() interpolator -- this closes Erik Schnetter's bug report CactusBase/1367 Documentation changes * document the above code changes * much expanded description of molecule centering and boundary handling, including 2 new diagrams (done in latex picture mode :) * update README files to list all code files * move caching parameters (not implemented, and probably won't be implemented any time soon) out of documentation.tex into a new file future-ideas.tex * general cleanup of documentation.tex (not quite done, but 80% or so...) to more clearly describe what this thorn actually implements, rather than a generic spec of which this thorn only implements some pieces git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@125 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* merge copyright into the READMEjthorn2003-01-27
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@124 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add testing for the error case where the grid is smaller than the moleculejthorn2002-12-20
| | | | | | | | (before this would access memory off the end of the grid ==> core dump on some platforms, eg alphas) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@122 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* make the type conversions explicit in some assignments of the formjthorn2002-10-07
| | | | | | | | CCTK_REAL4 = CCTK_REAL8 so compilers don't warn about loss of precision git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@120 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* change the string ??) in a comment to ?)jthorn2002-09-20
| | | | | | | since the former is an ISO C trigraph (and those are a royal pain :( ) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@118 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* This is a major reworking of this interpolator.jthorn2002-09-02
| | | | | | | | | The interpolation code in template.c is now split up into subfunctions (in common/, Lagrange/, and Hermite/), so it should now compile in finite cpu/memory even with optimization. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@116 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* This is a major reworking of this interpolator.jthorn2002-09-02
| | | | | | | | | The interpolation code in template.c is now split up into subfunctions (in common/, Lagrange/, and Hermite/), so it should now compile in finite cpu/memory even with optimization. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@115 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* This is a major reworking of this interpolator.jthorn2002-09-02
| | | | | | | | | The interpolation code in template.c is now split up into subfunctions (in common/, Lagrange/, and Hermite/), so it should now compile in finite cpu/memory even with optimization. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@113 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* more coefficients being renamedjthorn2002-09-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@112 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* coefficients being redone for finite compilation size/timejthorn2002-09-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@111 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* there are now .c routines in this directory!jthorn2002-09-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@110 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* reorganize common to Lagrange and Hermite interpolatorsjthorn2002-09-01
| | | | | | | | | (i.e. code depending only on molecule size/shape) --> now there are separate *functions* rather than just code fragments --> ../template.c should hopefully compile in finite time..... git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@109 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* these are all being replaced as part of the "finite compilation"jthorn2002-09-01
| | | | | | | restructuring git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@108 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* extend naming convention to include molecule shapejthorn2002-09-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@107 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* data and coefficient structures for use in splitting up the interpolatorjthorn2002-09-01
| | | | | | | into smaller functions (which I hope will be compilable in finite cpu/memory) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@106 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* describe the files in this directoryjthorn2002-08-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@104 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add Hermite interpolation functions to dispatch tablejthorn2002-08-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@103 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add Maple code and C skeletons for Hermite polynomial interpolationjthorn2002-08-28
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@101 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* In Hermite_polynomial_interpolant(),jthorn2002-08-28
| | | | | | | | add explicit check for the case when the given conditions don't uniquely determine the interpolant git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@100 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* redo Hermite interpolant computation to hopefully be more efficientjthorn2002-08-28
| | | | | | | | (in practice it doesn't seem to make much difference, though :( :(), and to be a bit easier to read/understand/modify the code git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@99 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add some more new coefficients needed for Hermite interpolationjthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@98 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* refresh 3d coeffs again (I forgot some last time)jthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@97 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* refresh machine-generated coefficient filesjthorn2002-08-20
| | | | | | | with latest tweaks to Maple code which generates them git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@96 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* switch from $Id:$ to $Header:$jthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@95 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add new files which will be (are) needed by Hermite interpolatorjthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@94 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* switch from $Id:$ to $Header:$jthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@93 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* add $Header:$ lines, switch a few $Id:$ --> $Header:$jthorn2002-08-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@92 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* fix grdoc comment spelling typojthorn2002-08-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@91 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* This commit changes the semantics of the out_of_range_tolerance[]jthorn2002-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parameter-table entry to allow the min/max ends of the grid to be handled differently. (We'll need this for the multiprocessor interpolation.) ***** IMPORTANT ***** This change is *NOT* backwards-compatible: if you are calling CCTK_InterpLocalUniform() from this thorn (CactusBase/LocalInterp), and you have set out_of_range_tolerance[] to a non-default value, you must (slightly) change your code, or else you'll get an error return from the interpolator. If you don't use out_of_range_tolerance[] , then you don't need to do anything. The semantics of out_of_range_tolerance[] are now as follows: @var out_of_range_tolerance @vdesc Specifies how out-of-range interpolation points should be handled. The array elements are matched up with the axes and minimum/maximum ends of the grid in the order [x_min, x_max, y_min, y_max, z_min, z_max, ...]. An array value TOL is interpreted as follows: If TOL >= 0.0, then an interpolation point is considered to be "out of range" if and only if the interpolation point is > TOL * coord_delta[axis] outside the grid in this coordinate direction. If TOL == -1.0, then an interpolation point is considered to be "out of range" if and only if a centered molecule (or more generally, a molecule whose centering is chosen pretending that the grid is of infinite extent), would require data from outside the grid in this direction. Other values of TOL are illegal (reserved for future use). @vtype const CCTK_REAL out_of_range_tolerance[2*N_dims] @endvar The change is that it used to have only N_dims elements, one for each axis -- now there are 2*N_dims elements, one for each min/max end of each axis. ---------------------------------------------------------------------- Modified Files: doc/documentation.tex src/GeneralizedPolynomial-Uniform/InterpLocalUniform.c src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h src/GeneralizedPolynomial-Uniform/interpolate.maple src/GeneralizedPolynomial-Uniform/molecule_posn.c src/GeneralizedPolynomial-Uniform/template.c src/GeneralizedPolynomial-Uniform/test_molecule_posn.c git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@88 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* fix syntax botch which confused origin compilerjthorn2002-08-19
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@86 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* expand description of naming conventionsjthorn2002-08-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@85 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* describe this directory and what files are in itjthorn2002-08-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@84 df1f8a13-aa1d-4dd4-9681-27ded5b42416