cmpmat.f90 630 B

1234567891011121314151617181920212223242526272829
  1. program cmpmat
  2. integer, parameter :: matrx = 6018
  3. integer, parameter :: ien = 72
  4. integer, parameter :: kb = 4*ien+4
  5. integer, parameter :: km = kb+1
  6. real (kind=8) ea(kb,matrx),ta(km,matrx),sa(matrx)
  7. real (kind=8) eb(kb,matrx),tb(km,matrx),sb(matrx)
  8. real (kind=8) ed(kb,matrx),td(km,matrx),sd(matrx)
  9. open(76,file='mat76',form='unformatted')
  10. open(77,file='mat77',form='unformatted')
  11. read (76) ea
  12. read (76) ta
  13. read (76) sa
  14. read (77) eb
  15. read (77) tb
  16. read (77) sb
  17. ed = ea - eb
  18. td = ta - tb
  19. sd = sa - sb
  20. print *,'ed',maxval(ed),minval(ed)
  21. print *,'td',maxval(td),minval(td)
  22. print *,'sd',maxval(sd),minval(sd)
  23. stop
  24. end