From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,37ebe0b7518c7658,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,37ebe0b7518c7658,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10cebf,37ebe0b7518c7658,start X-Google-Attributes: gid10cebf,public X-Google-ArrivalTime: 1992-10-21 13:12:38 PST Xref: sparky comp.sys.dec.micro:575 comp.sys.dec:5588 comp.unix.ultrix:7768 Newsgroups: comp.sys.dec.micro,comp.sys.dec,comp.unix.ultrix Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!swrinde!elroy.jpl.nasa.gov!ames!kronos.arc.nasa.gov!iscnvx!jes From: jes@iscnvx.lmsc.lockheed.com (Jim Schafer) Subject: format/variable-type mismatch error - Help Message-ID: <1992Oct21.225653.11638@iscnvx.lmsc.lockheed.com> Organization: Lockheed Missiles and Space Co. Date: Wed, 21 Oct 92 22:56:53 GMT 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