Re: problem with unhandled exception (acces violation) and undefined array/pointer



kuco wrote:

„I:\x\source.f(666) : Warning: In the call to READ, actual argument
#22 does not match the type and kind of the corresponding dummy
argument.
2 A(K17),A(KADD1),A(KADD2),A(KADD3),A(KADD4),A(KADD5) ,A
(KADD6))“

Fortran requires that the data type (e.g. REAL, INTEGER) and kind (double precision, (4), etc.) match that of the corresponding dummy argument in the routine being called. You are using Intel Visual Fortran which, by default, will warn you about such mismatches.

From what you write later, it seems that these mismatches were intentional, so the warnings could be ignored, though some kinds of mismatches may lead to other problems.

When I run the code it goes until the the point that the warning
message is indicating. It enters the subroutine but fails when the
problematic varsiable is used for the first time. The code stops
without any error message.

My guess is that there is an error message, but it's in the console output window which is behind the debugger window. In order to help you further, we'd need to know what that error message said. I'm going to take a wild guess and say that it's an array bounds error.

--
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
http://software.intel.com/en-us/forums/
Intel Fortran Support
http://support.intel.com/support/performancetools/fortran
My Fortran blog
http://www.intel.com/software/drfortran
.



Relevant Pages

  • Was there a negative real zero possibility in early Fortran?
    ... 99 (WRITE ERROR MESSAGE) ... I already have found severe errors; one example is this original code ... I know this version was written for an IBM 360 in Fortran H (Fortran ... Is there any reason why the programmer is testing in some cases, ...
    (comp.lang.fortran)
  • protected attribute
    ... the class, in proper objcet-oriented programming,the data type should ... modify the instance variables of data type from outside of the module. ... we often do not declare ... the components of data type to be private, if a fortran object is to ...
    (comp.lang.fortran)
  • Re: Fortran arguments by reference
    ... where the actual argument passed was a procedure pointer. ... If an outer procedure takes a dummy ... Isn't more correct that the Fortran standard does not specify the argument ... In VMS, arguments may be passed by reference, by value, or by descriptor. ...
    (comp.lang.fortran)
  • Re: Several questions about character C binding
    ... from 15.2.6 says that the number of Fortran "dummy arguments" and the ... its respective standard) must be the same: ... Again and again we see questions about interfacing Fortran character ... compiler knows, be associated with an assumed length dummy argument, ...
    (comp.lang.fortran)
  • F2003 standard question: Generic resolution and passing a "string" to a character(len=1), dimension
    ... array-valued ucs4-kind dummy argument is invalid Fortran 2003 and should ... This also holds for Fortran ... END MODULE modtest ... CALL One(chrScalar) ...
    (comp.lang.fortran)