Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran error: Format-id refers to a non-format

Status
Not open for further replies.

mricks

Technical User
Apr 9, 2010
1
US
I am new to Fortran and I am having an issue. Whenever I try to compile, I get an error on the second line:
Format-id refers to a non-format
<10> referenced


READ(5,*) NP,NRLP,IPRINT,NPP,G,Q0,N0,TLAST
WRITE(1,10) NP,NRLP,Q0,N0,TLAST,NPP


What does this error mean, and what is wrong with it?

Thanks,
 
you need to declare format - something like
Code:
10 format(8f10.5)
or use write without format - something like
Code:
WRITE(*,*) NP,NRLP,Q0,N0,TLAST,NPP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top