forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

explaining error messages

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
DavidColeman



Joined: 06 Apr 2022
Posts: 12

PostPosted: Sat Apr 23, 2022 7:31 pm    Post subject: explaining error messages Reply with quote

Would some kind person please explain what this error message means? It's the last error remaining.

'Missing repeat count for 'X' descriptor' which appears below these lines:

write (6,3)
3 format(1h ,5x,29h ,output from prog lifetab //1h ,6x,4h ,mx,
16x,4h ,qx,6x,4h ,px,6x,4h ,lx ,6x,4h ,dx ,6x,4h ,blx,
26x,4h ,tx, 6x,4h ,ex)

(mx, qx, px etc are all life-table variables)

Apparently here is also a comma missing in the format but I should be able to find that.
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1743

PostPosted: Sat Apr 23, 2022 7:51 pm    Post subject: Reply with quote

We should be thankful that we have alternatives to Hollerith strings. How about the following:

Code:

c
      write (6,3)
    3 format(1h ,5x,'output from prog lifetab',//,7x,' ,mx',
     1 6x,' ,qx',6x,' ,px',6x,' ,lx' ,6x,' ,dx' ,6x,' ,blx',
     2 6x,' ,tx', 6x,' ,ex')
      end


One may guess that 'blx' replaced a former two-character name, which broke the count of 4 that was used; that is, 4H ,blx should really be 5H ,blx .

FTN95 has the /CONVERT option to help you port old code with Hollerith strings into more manageable modern Fortran source. It would be beneficial for you to use that option to get rid of all the Hollerith strings in your source codes, but that conversion will not work if there are errors present such as the one in this thread.
Back to top
View user's profile Send private message
DavidColeman



Joined: 06 Apr 2022
Posts: 12

PostPosted: Sat Apr 23, 2022 11:46 pm    Post subject: Re: explaining error messages Reply with quote

DavidColeman wrote:
Would some kind person please explain what this error message means? It's the last error remaining.

'Missing repeat count for 'X' descriptor' which appears below these lines:

write (6,3)
3 format(1h ,5x,29h ,output from prog lifetab //1h ,6x,4h ,mx,
16x,4h ,qx,6x,4h ,px,6x,4h ,lx ,6x,4h ,dx ,6x,4h ,blx,
26x,4h ,tx, 6x,4h ,ex)

(mx, qx, px etc are all life-table variables)

Apparently here is also a comma missing in the format but I should be able to find that.


Thank you very much, kind person. Now all correct!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group