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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help update old fortran 77 code

Status
Not open for further replies.

ChunyuLiu

Programmer
Jun 22, 2016
1
US
decode(nb, 34, cdef(1:nb), err = 32) idea

In which, nb is a integer variable.

34: format, which is a variable format. i<nb>,

cdef(1:nb): one array

err =32 : error output


Can anyone help me update it?
I try to use read to replace decode.
character(LEN=20) FMT
write(FMT,*) nb
read(cdef(1:nb),"(i "//ADJUSTL(FMT)//")", err=32) idef

It doesn't work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top