From 3192ba91b2ff13f2e494282f4b09ed7740497716 Mon Sep 17 00:00:00 2001 From: jthorn Date: Tue, 6 Mar 2007 13:40:37 +0000 Subject: fix several C++-isms (declaring variables in the middle of a block) caught by Ian Hawke (with help from the Portland Group compiler :) ... the fix is to just add Yet Another { } pair ... git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@47 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef --- src/template.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/template.c b/src/template.c index 5cb439d..a22401e 100644 --- a/src/template.c +++ b/src/template.c @@ -813,6 +813,7 @@ if (log_fp != NULL) /* * interpolate at each point */ + { int pt; int return_status = 0; error_info->error_count = 0; @@ -1022,6 +1023,7 @@ if (debug > 0) (int)N_boundary_points_to_omit[ibndry_min], (int)N_boundary_points_to_omit[ibndry_max]); } + { const int mp_status = AEILocalInterp_molecule_posn (coord_origin[axis], coord_delta[axis], input_array_min_subscripts[axis] @@ -1044,6 +1046,7 @@ if (debug > 0) * are different from the ones we need ==> we have to decode them * to get the status for this axis */ + { int this_axis_status; switch (mp_status) { @@ -1078,6 +1081,8 @@ if (debug > 0) then this_point_status = this_axis_status; /* end of for (axis = ...) loop to locate interp points in the grid */ + } + } } if (error_info->per_point_status != NULL) @@ -1872,6 +1877,7 @@ if (log_fp != NULL) return return_status; } } + } } /******************************************************************************/ -- cgit v1.2.3