diff options
author | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2003-02-03 08:58:49 +0000 |
---|---|---|
committer | jthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416> | 2003-02-03 08:58:49 +0000 |
commit | 70d53d06e35c6d7f3539f73aa80493c84b92477f (patch) | |
tree | 5fe1c5e073b657ed7a0ef8c0e0c8c74dd6d77935 /src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h | |
parent | dafece75bdcadeb7e418e3548720278f78bc7173 (diff) |
finish splitting up (huge) LocalInterp_InterpLocalUniform()
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
Diffstat (limited to 'src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h')
-rw-r--r-- | src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h b/src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h index 851378a..8d9c551 100644 --- a/src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h +++ b/src/GeneralizedPolynomial-Uniform/InterpLocalUniform.h @@ -109,15 +109,26 @@ enum molecule_family * other compile-time settings */ -/* default for each element of boundary_off_centering_tolerance[] */ -#define BOUNDARY_OFF_CENTER_TOL_DEFAULT 999.0 - -/* default for each element of boundary_extrapolation_tolerance[] */ -#define BOUNDARY_EXTRAP_TOL_DEFAULT 1.0e-10 +/* defaults for boundary_{off_centering,extrapolation}_tolerance[] */ +#ifdef NOT_YET + #define LAGRANGE_BNDRY_OFF_CNTR_TOL_DEF 999.0 + #define LAGRANGE_BNDRY_EXTRAP_TOL_DEF 1.0e-10 + #define HERMITE_BNDRY_OFF_CNTR_TOL_DEF 1.0e-10 + #define HERMITE_BNDRY_EXTRAP_TOL_DEF 0.0 +#else + #define LAGRANGE_BNDRY_OFF_CNTR_TOL_DEF 999.0 + #define LAGRANGE_BNDRY_EXTRAP_TOL_DEF 1.0e-10 + #define HERMITE_BNDRY_OFF_CNTR_TOL_DEF 999.0 + #define HERMITE_BNDRY_EXTRAP_TOL_DEF 1.0e-10 +#endif /* CCTK_VWarn() severity level for error/warning messages */ -#define ERROR_MSG_SEVERITY_LEVEL 0 -#define WARNING_MSG_SEVERITY_LEVEL 1 +#define BUG_MSG_SEVERITY_LEVEL 0 +#define ERROR_MSG_SEVERITY_LEVEL 0 +#define WARNING_MSG_SEVERITY_LEVEL 1 + +/* CCTK_Abort() exit code for internal error (interpolator bug) aborts */ +#define BUG_ABORT_CODE 42 /******************************************************************************/ @@ -133,7 +144,7 @@ struct error_flags int error_pt; int error_ibndry; int error_axis; - int error_end; + int error_direction; }; struct molecule_structure_flags @@ -230,5 +241,5 @@ int LocalInterp_molecule_posn(fp grid_origin, fp grid_delta, int* i_center, fp* x_rel); /* functions in util.c */ -void LocalInterp_zero_int_array(int N, CCTK_INT array[]); int LocalInterp_decode_N_parts(int type_code); +size_t LocalInterp_Strlcpy(char* dst, const char* src, size_t dst_size); |