From ee4ff730f6c40176f467040004383e3521ef9f59 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Mon, 7 Oct 2019 17:01:21 +0300 Subject: [PATCH] Deprecated inv_dsx and friends from utils/config_loader.c since those are not defined in the case where the user does not include stdderiv.h --- src/utils/config_loader.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/config_loader.c b/src/utils/config_loader.c index f12175d..dd19983 100644 --- a/src/utils/config_loader.c +++ b/src/utils/config_loader.c @@ -95,10 +95,14 @@ update_config(AcMeshInfo* config) config->int_params[AC_nz_min] = STENCIL_ORDER / 2; config->int_params[AC_nz_max] = config->int_params[AC_nz] + STENCIL_ORDER / 2; - // Spacing + /* + // DEPRECATED: Spacing + // These do not have to be defined by empty projects any more. + // These should be set only if stdderiv.h is included config->real_params[AC_inv_dsx] = (AcReal)(1.) / config->real_params[AC_dsx]; config->real_params[AC_inv_dsy] = (AcReal)(1.) / config->real_params[AC_dsy]; config->real_params[AC_inv_dsz] = (AcReal)(1.) / config->real_params[AC_dsz]; + */ /* Additional helper params */ // Int helpers