From 75e2a45ad9b75bd1b7b1639b88d8f1bca55457ee Mon Sep 17 00:00:00 2001 From: jthorn Date: Fri, 1 Aug 2003 17:04:34 +0000 Subject: tweak format of last warning message git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@13 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef --- src/template.c | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/src/template.c b/src/template.c index 6c46e4e..26be330 100644 --- a/src/template.c +++ b/src/template.c @@ -996,40 +996,37 @@ fflush(stdout); " interpolation point is either outside the grid,\n" " or inside but too close to the grid boundary!\n" " 0-origin interpolation point number pt=%d\n" -" 0-origin coordinate axis=%d\n" #if (N_DIMS == 1) " interpolation point x=%g\n" " grid [x_min,x_max] = [%g,%g]\n" + , + pt, + (double) interp_coords_fp[X_AXIS], + (double) grid_min_xyz[X_AXIS], (double) grid_max_xyz[X_AXIS]); #elif (N_DIMS == 2) " interpolation point (x,y)=(%g,%g)\n" " grid [x_min,x_max] = [%g,%g]\n" " grid [y_min,y_max] = [%g,%g]\n" + , + pt, + (double) interp_coords_fp[X_AXIS], (double) interp_coords_fp[Y_AXIS], + (double) grid_min_xyz[X_AXIS], (double) grid_max_xyz[X_AXIS], + (double) grid_min_xyz[Y_AXIS], (double) grid_max_xyz[Y_AXIS]); #elif (N_DIMS == 3) " interpolation point (x,y,z)=(%g,%g,%g)\n" " grid [x_min,x_max] = [%g,%g]\n" " grid [y_min,y_max] = [%g,%g]\n" " grid [z_min,z_max] = [%g,%g]\n" -#else - #error "N_DIMS may not be > 3!" -#endif - , - pt, axis, - #if (N_DIMS == 1) - (double) interp_coords_fp[X_AXIS], - (double) grid_min_xyz[X_AXIS], (double) grid_max_xyz[X_AXIS]); - #elif (N_DIMS == 2) - (double) interp_coords_fp[X_AXIS], (double) interp_coords_fp[Y_AXIS], - (double) grid_min_xyz[X_AXIS], (double) grid_max_xyz[X_AXIS], - (double) grid_min_xyz[Y_AXIS], (double) grid_max_xyz[Y_AXIS]); - #elif (N_DIMS == 3) + , + pt, (double) interp_coords_fp[X_AXIS], (double) interp_coords_fp[Y_AXIS], (double) interp_coords_fp[Z_AXIS], (double) grid_min_xyz[X_AXIS], (double) grid_max_xyz[X_AXIS], (double) grid_min_xyz[Y_AXIS], (double) grid_max_xyz[Y_AXIS], (double) grid_min_xyz[Z_AXIS], (double) grid_max_xyz[Z_AXIS]); - #else - #error "N_DIMS may not be > 3!" - #endif +#else + #error "N_DIMS may not be > 3!" +#endif } if (this_point_status < return_status) -- cgit v1.2.3