Fortran runtime error: Insufficient data descriptors in format after reversion


 
Thread Tools Search this Thread
Top Forums Programming Fortran runtime error: Insufficient data descriptors in format after reversion
# 1  
Old 07-14-2011
Fortran runtime error: Insufficient data descriptors in format after reversion

Hello,

I have some Fortran code that is providing the following error:

At line 1165 of lapc_shells_2.f
Fortran runtime error: Insufficient data descriptors in format after reversion

Here are the lines just above and including 1165:

WRITE (*,"('ATTEMPTING TO READ PLATE BOUNDARIES')")
READ (*,"(A)") TITLE5
OPEN (UNIT = IUNITM, FILE = TITLE5)
WRITE (IUNITT,2) IUNITM <---------------1165

It's reading a file that starts out like this:


AF-AN Mueller et al. [1987]
-4.37900E-01,-5.48518E+01
-3.88257E-02,-5.46772E+01
+4.43182E-01,-5.44512E+01
+9.64534E-01,-5.48322E+01
+1.69481E+00,-5.43990E+01
+2.35975E+00,-5.40374E+01
+3.02542E+00,-5.36507E+01
+3.36894E+00,-5.38341E+01
+3.95638E+00,-5.41267E+01
+4.41458E+00,-5.44303E+01
+4.82661E+00,-5.41616E+01
+5.08372E+00,-5.43093E+01

Any idea why this error is occurring?

Thanks

---------- Post updated at 03:51 PM ---------- Previous update was at 02:18 PM ----------

I forgot an important part to the above post.

The 2 refers to this line:

2 FORMAT (/' ATTEMPTING TO READ PLATE OUTLINES FROM UNIT', /)

Got it! For future reference the answer is to add more information at the end of line 2.


2 FORMAT (/' ATTEMPTING TO READ PLATE OUTLINES FROM UNIT', I3/)

Last edited by jm4smtddd; 07-14-2011 at 05:06 PM..
# 2  
Old 07-14-2011
Hi.

You didn't post what format 2 looked like, so I'll need to guess. Suppose you had four.f90:
Code:
program test
  implicit none
  integer :: n
  n = 1
  write(*,2) n
2 format(t33)
end program test

compile and execute:
Code:
At line 5 of file four.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Insufficient data descriptors in format after reversion

whereas six.f90:
Code:
program test
  implicit none
  integer :: n
  n = 1
  write(*,2) n
2 format(t33, i3)
end program test

compile and execute:
Code:
                                  1

So look at your format 2.

Found by Googling:
Insufficient data descriptors in format after reversion

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Error in my FORTRAN program

I have a Fortran program and I am writing out to logical unit 7. The program is reading from a text file and writing to the new file formatted. It gets through the read and writes some to the file but then stops with the following error: 1525-013 The sequential WRITE statement cannot be... (5 Replies)
Discussion started by: KathyB148
5 Replies

2. Homework & Coursework Questions

FORTRAN error *** glibc detected ***

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I'm doing aproximation of derivative called five-point stencil. For every value of x, in interval , in step... (0 Replies)
Discussion started by: antonija
0 Replies

3. Shell Programming and Scripting

Xargs error: insufficient space for argument

I'm trying to crudely hack my way through some data processing. I have file.txt with around 17,000 lines like this: ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 3 72 71 ACYPI002690-PA.aa.afa.afa.trim_phyml_tree_fullnames_fullhomolog.txt 97 111 71... (1 Reply)
Discussion started by: pathunkathunk
1 Replies

4. UNIX for Advanced & Expert Users

sendmail error - 452 4.3.1 Insufficient system resources

Hi All, I am using svnnotify (which is available on net) script to send svn commit notification. Everything was working fine up to yesterday but from yesterday i started seeing error. 29CD01FCE44 7228 Thu Apr 5 11:11:51 apache@vm0001.host.com (host mail.mailserver.com said: 452... (6 Replies)
Discussion started by: vishal_vsh1
6 Replies

5. Programming

Error running FORTRAN code

Hi, I am new to this forum and do not know whether this is the appropriate place to post this question. Anyway am trying my luck. I have a fortran program swanhcat.ftn, which is part of a wave modelling system. There is also a file hcat.nml which is required to run this program. The program's... (9 Replies)
Discussion started by: sandhyakg
9 Replies

6. UNIX for Dummies Questions & Answers

converting a tabular format data to comma seperated data in KSH

Hi, Could anyone help me in changing a tabular format output to comma seperated file pls in K-sh. Its very urgent. E.g : username empid ------------------------ sri 123 to username,empid sri,123 Thanks, Hema:confused: (2 Replies)
Discussion started by: Hemamalini
2 Replies

7. Solaris

insufficient metadevice database replicas ERROR

First I would like to thank this forum for assisting me in setting up my 1st sunbox. Could not have done it if it had not been for you guys and google :D I have mirrored my box and have SUCCESSFULLY tested booting from the rootdisk and rootmirror successfully. I am now looking at configuring... (2 Replies)
Discussion started by: mr_manny
2 Replies

8. UNIX for Dummies Questions & Answers

Runtime Error...

My system did stay appears the error Run Time Library Error. What itīs? When the error appear, iīve to reboot my system and lost all I did. Is there the UNIX System problem? Please. I need help!!! (4 Replies)
Discussion started by: marpin
4 Replies

9. Solaris

Runtime error...

My interprise use a UNIX mainform for a instrumentation process control. The control use the FOXBORO INVENSYS system and they donīt gonna solve the problem the run time error. The run time error happen without logic explication. When everything itīs run perfectely and happenly appears the run time... (1 Reply)
Discussion started by: marpin
1 Replies
Login or Register to Ask a Question