[MITgcm-devel] Check-bounds error with ifc
Ed Hill
ed at eh3.com
Wed Mar 29 22:00:52 EST 2006
On Sat, 2006-03-18 at 17:50 -0500, Jean-Michel Campin wrote:
> Hi,
>
> when I manage to compile mnc with ifc on cg01,
> exp0 test stops with this kind of error:
>
> Run-Time Error 457: Invalid character substring ending position
> In Procedure: mnc_cw_add_vattr_any
> Diagnostics Entered From Subroutine mnc_cw_add_vattr_any Line 4824
> Entered From Subroutine mnc_cw_add_vattr_text Line 4260
> Entered From Subroutine ini_mnc_vars Line 3102
> Entered From Subroutine ini_model_io Line 1642
> Entered From Subroutine initialise_fixed Line 1666
> Entered From Subroutine the_model_main Line 2166
> Entered From MAIN PROGRAM Line 4195
> End of diagnostics
>
> I can reproduce the same behaviour on my laptop with ifc.
Hi Jean-Michel,
I think I figured out the above problem and it was long text attributes
overflowing the buffer sizes in the MNC lookup tables. I've added some
logic that will emit a warning and truncate the strings so that they
always fit (but at a cost of truncation).
Could you please confirm that this fixes things? And, if not, could you
please send me a copy of the optfile that you're using with that
compiler?
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-devel
mailing list