Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jes@iscnvx.lmsc.lockheed.com (Jim Schafer)
Subject: format/variable-type mismatch error - Help
Date: Wed, 21 Oct 92 22:56:53 GMT	[thread overview]
Message-ID: <1992Oct21.225653.11638@iscnvx.lmsc.lockheed.com> (raw)

    I am running a Fortran application that internally uses an integer
    array to do a write with a format statement that is defined at 
    run-time. The integer array may actually contain reals or integers. 
    The format statement is set up to correspond the actual types.

         eg   subroutine mywrit(iray,n,form)
              character*(*) form
              dimension iray(n)
              write(6,form) (iray(i),i=1,n)
              end

         &   call mywrit(real_array,20,'(6f10.3)')
        or   call mywrit(int_arry,27,'(5i10)')
        or   call mywrit(mixture,num,user_format)

        are possible calls.


    When I try to print floating point values with a floating point 
    format, it gives a fatal run-time error, as follows:

forrtl: severe: format/variable-type mismatch, unit 6, file /dev/ttyp7

    This is exactly the same as the VAX format/variable-type mismatch
    error (eg runtime error 61) that I am allowed to turn off. 

    Is there any way I can turn this error off on an ultrix system ?

    
-- 
J.E.(Jim) Schafer
jes@lmsc.lockheed.com


                 reply	other threads:[~1992-10-21 22:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox