diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/GeneralizedPolynomial-Uniform/template.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/template.c b/src/GeneralizedPolynomial-Uniform/template.c index a567119..7cb8d72 100644 --- a/src/GeneralizedPolynomial-Uniform/template.c +++ b/src/GeneralizedPolynomial-Uniform/template.c @@ -703,30 +703,24 @@ int out; */ { #if N_DIMS >= 1 - const fp origin_x = coord_origin[X_AXIS]; - const fp delta_x = coord_delta[X_AXIS]; #if defined(HAVE_OP_DX) \ || defined(HAVE_OP_DXY) || defined(HAVE_OP_DXZ) \ || defined(HAVE_OP_DXX) - const fp inverse_dx = 1.0 / delta_x; + const fp inverse_dx = 1.0 / coord_delta[X_AXIS]; #endif #endif #if N_DIMS >= 2 - const fp origin_y = coord_origin[Y_AXIS]; - const fp delta_y = coord_delta[Y_AXIS]; #if defined(HAVE_OP_DY) \ || defined(HAVE_OP_DXY) || defined(HAVE_OP_DYZ) \ || defined(HAVE_OP_DYY) - const fp inverse_dy = 1.0 / delta_y; + const fp inverse_dy = 1.0 / coord_delta[Y_AXIS]; #endif #endif #if N_DIMS >= 3 - const fp origin_z = coord_origin[Z_AXIS]; - const fp delta_z = coord_delta[Z_AXIS]; #if defined(HAVE_OP_DZ) \ || defined(HAVE_OP_DXZ) || defined(HAVE_OP_DYZ) \ || defined(HAVE_OP_DZZ) - const fp inverse_dz = 1.0 / delta_z; + const fp inverse_dz = 1.0 / coord_delta[Z_AXIS]; #endif #endif #if (N_DIMS > 3) |