aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* add 0th order interpolationHEADmasterrhaas2013-06-19
| | | | | | | | | minor extra changes: * correct typo * turn if-else cascade into switch git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalInterp/trunk@221 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Replace Cactus complex number type with C/C++ complex numberseschnett2013-03-08
| | | | | | | | | | | | | | | | Map CCTK_COMPLEX to "double complex" in C, and "complex<double>" in C++. (It is already mapped to "double complex" in Fortran.) Update type definitions. Re-implement Cactus complex number math functions by calling the respective C functions. Update thorn that access real and imaginary parts of complex numbers to use standard-conforming methods instead. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalInterp/trunk@216 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* parallelize the interpolation loop in LocalInterp using OpenMPrhaas2012-09-16
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalInterp/trunk@213 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Correct function signatureseschnett2011-01-21
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@206 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* oops, forgot to note that previous commit closes bug #2022jthorn2006-05-31
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@195 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* If we get an interpolation point that's too close to the edge of thejthorn2006-05-31
| | | | | | | | | | | | | grid (so the interpolation fails), we print a warning message. This commit adds the text "(this may be caused by a global interpolation with\n" " driver::ghost_size too small)\n" to this warning message, to cue the user about a common cause of this problem. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@194 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Cleanup of error handling:jthorn2004-06-27
| | | | | | | | | | | | | | * always return an error code if we find an error --> this fixes CactusBase/1623 ("LocalInterp reports error to screen, but does not return error code") * change error return codes to use #define codes in src/include/util_ErrorCodes.h src/include/cctk_Interp.h There should be no change in non-error behavior. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@185 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Removed old interpolator API code.tradke2004-06-20
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@183 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Untabified. Please try to adhere to the Cactus coding guidelines whengoodale2004-05-17
| | | | | | | modifying or adding files. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@180 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Check for valid input and output array datatype.tradke2003-09-29
| | | | | | | This closes CactusBase/1606: Wrong error message in LocalInterp. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@177 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Silently ignore a table option with key "input_array_time_levels" which istradke2003-08-22
| | | | | | | | meant for the global interpolation routine only. This closes PR CactusBase/1581: LocalInterp produces too many useless level 1 warnings. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@176 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Fixed a bug in LocalInterp_InterpLocalUniform() where a table iterator wastradke2003-08-22
| | | | | | | accidentally created twice. This closes CactusBase/1582. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@175 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Fixed compiler warning about statement with no effect.rideout2003-08-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@174 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Fixed compiler warning about extra argument for CCTK_VWarn.rideout2003-08-18
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@173 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* fix a nasty bug due to bad pointer/array indexing :( :(jthorn2003-08-04
| | | | | | | -- thanks to Frank Herrmann for spotting this! git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@172 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Return the (negative) total number of out-of-bounds interpolation pointstradke2003-08-01
| | | | | | | as the status code of CCTK_InterpLocal(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@171 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Accidentally put in a level 0 warning for out-of-bounds errors.tradke2003-08-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@170 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* More informative warning message for out-of-bounds interpolation points.tradke2003-08-01
| | | | git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@169 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Re-enabled the out-of-bounds check in the core interpolation routinetradke2003-07-25
| | | | | | | which is also used now by local interpolators. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@168 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Check for an option with key "per_point_status" in the user-suppliedtradke2003-07-25
| | | | | | | table handle and ignore it almost silently (level-4 warning). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@167 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Check for an option with key "local_interpolator_status" in the user-suppliedtradke2003-07-18
| | | | | | | table handle and ignore it almost silently (level-4 warning). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@166 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* Changes to support both the new and the old interpolation API.tradke2003-07-08
| | | | | | | | A local interpolator named "uniform cartesian" is now provided under the new API. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@164 df1f8a13-aa1d-4dd4-9681-27ded5b42416
* 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 machine-generated coefficient directoriesjthorn2003-04-15
| | | | | | | | (with separate tensor-product and maximum-degree Lagrange interpolation operators) git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@147 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 a test for the case where the array dimension is smaller thanjthorn2002-12-20
| | | | | | | | | | | the stencil/molecule size -- formerly this would access memory off the end of the array (==> possible core dump on some machines, eg alphas), now it gives an error return from the interpolator * systematize terminology for "stencil" vs "molecule" -- now all references are to the hybrid term "stencil/molecule" git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@123 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
* Commented out the check for points where the interpolation stencil is outsidetradke2002-12-19
| | | | | | | | | | | of the grid. This check moved up into the global interpolator in PUGHInterp. Now, for the interpolation of local arrays, points are allowed to be shifted back into the grid. You will also need to update PUGHInterp now to get this check. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@121 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