File: _test_fortran.f

package info (click to toggle)
python-scipy 1.1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 93,828 kB
  • sloc: python: 156,854; ansic: 82,925; fortran: 80,777; cpp: 7,505; makefile: 427; sh: 294
file content (30 lines) | stat: -rw-r--r-- 873 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      subroutine read_unformatted_double(m, n, k, a, filename)
      implicit none
      integer :: m, n, k
      double precision :: a(m,n,k)
      character*4096 :: filename
      open(10, file=trim(filename), form='unformatted')
      read(10) a
      close(10)
      end subroutine

      subroutine read_unformatted_int(m, n, k, a, filename)
      implicit none
      integer :: m, n, k
      integer :: a(m,n,k)
      character*4096 :: filename
      open(10, file=trim(filename), form='unformatted')
      read(10) a
      close(10)
      end subroutine

      subroutine read_unformatted_mixed(m, n, k, a, b, filename)
      implicit none
      integer :: m, n, k
      double precision :: a(m,n)
      integer :: b(k)
      character*4096 :: filename
      open(10, file=trim(filename), form='unformatted')
      read(10) a, b
      close(10)
      end subroutine