Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PROGRAM DISP
- INTEGER nnodes, IOS
- PARAMETER (nnodes = 5652)
- REAL A(nnodes,4)
- WRITE(*,*) 'hello world'
- OPEN(UNIT=11,FILE ="displaced_shape.dat",IOSTAT=IOS)
- WRITE(*,*) IOS
- DO ix = 1,nnodes
- READ(11,*) A(ix,:)
- END DO
- WRITE(*,*) A(2,3)
- END PROGRAM DISP
- hello world
- 0
- 5.4729998E-04
- SUBROUTINE DISP(U,KSTEP,KINC,TIME,NODE,NOEL,JDOF,COORDS)
- INCLUDE 'ABA_PARAM.INC'
- DIMENSION U(3),TIME(2),COORDS(3)
- INTEGER nnodes, IOS
- PARAMETER (nnodes = 5652)
- REAL A(nnodes,4)
- WRITE(*,*) 'hello world'
- OPEN(UNIT=11,FILE ="displaced_shape.dat",IOSTAT=IOS)
- WRITE(*,*) IOS
- DO ix = 1,nnodes
- READ(11,*) A(ix,:)
- END DO
- WRITE(*,*) A(2,3)
- RETURN
- END SUBROUTINE DISP
- hello world
- 0
- forrtl: severe (24): end-of-file during read, unit 11
- 1 0.1 0.2 0.3
- 2 0.1 0.2 0.3
- ....
- 5652 0.1 0.2 0.3
Add Comment
Please, Sign In to add comment