Advertisement
Thomas_Lillieskold

Matrix reader

Nov 4th, 2022 (edited)
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SUBROUTINE Lectura_Matrices
  2.     USE DATOS
  3.     IMPLICIT NONE
  4.     INTEGER I,J
  5.     OPEN(1,FILE="Matrices_Jacobi.txt")
  6.     READ(1,*)
  7.     DO I=1,N_Filas
  8.         READ(1,*)(A(I,J),J=1,N_Columnas)
  9.     END DO
  10.     READ(1,*)
  11.     DO I=1,N_Filas
  12.         READ(1,*)B(I)
  13.     END DO
  14.     READ(1,*)
  15.     DO I=1,N_Filas
  16.         READ(1,*)X(i)
  17.     END DO
  18. END SUBROUTINE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement