diff options
author | jthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2007-03-06 13:40:37 +0000 |
---|---|---|
committer | jthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef> | 2007-03-06 13:40:37 +0000 |
commit | 3192ba91b2ff13f2e494282f4b09ed7740497716 (patch) | |
tree | 06eab40343fa6ffac248eaf0b2b5c9403ad81812 | |
parent | bedcd2b6287e44f45f2f38456b6b0f0711a3cdd2 (diff) |
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
-rw-r--r-- | src/template.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } } + } } /******************************************************************************/ |