User login


You are here

Question about UEL

Hi every body,

I'm a new user of UEL and have a questions. It would be very kind of you to help me with it.

I have a MATLAB code which gives me some big matrices. Is it
possible to save them as a file (.txt, .dat, etc) and call them inside
of the UEL? (It's almost impossible to change all of those codes to
FORTRAN or copy-paste them to UEL.)

Thanks in advance,

Best Regards,




brunda's picture


UEL is written in FORTRAN, so the files can opened and read inside the subroutine. Use 'open' and 'read' commands to open the file and read the file. 


open(17, file=<filename.dat, status='old',form='formatted', action='read',position='rewind')   
read(17,fmt="(i4)") data1)


Hope this helps



Thanks for your response.

I tried it in the same way you described but it didn't work. I tested it just as a fortran file (without UEL) it's working. But inside of the UEL it's not working and I have no idea why.

       OPEN(17, file='C:\Users\ak1070\Desktop\UMAT-UEL-UELMAT\UEL TEST\&
                    &Density.txt', status='old',form='formatted',&
      READ(17,*) RHO

And It's the error: 

forrtl: sever <104>: incorrect POSITION= specifier value for connected file, unit 17, file C:\Users\ak1070\Desktop\UMAT-UEL-UELMAT\UEL TEST\Density.txt


Would you please let me know what I'm doing wrong?

Subscribe to Comments for "Question about UEL"

Recent comments

More comments


Subscribe to Syndicate