diff options
author | jthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2003-08-01 17:04:34 +0000 |
---|---|---|
committer | jthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2003-08-01 17:04:34 +0000 |
commit | 75e2a45ad9b75bd1b7b1639b88d8f1bca55457ee (patch) | |
tree | da7846745c56a8b4c34685ab74ee487046420195 | |
parent | 79978d173f0a7354e22419d2665edc734e3cee69 (diff) |
tweak format of last warning message
git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@13 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef
-rw-r--r-- | src/template.c | 31 |
1 files 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) |