File: nf_error.F

package info (click to toggle)
netcdf-fortran 4.5.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,456 kB
  • sloc: fortran: 25,848; f90: 20,793; sh: 4,609; ansic: 1,729; makefile: 585; pascal: 292; xml: 173
file content (72 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
C     Copyright 1996, UCAR/Unidata
C     See netcdf/COPYRIGHT file for copying and redistribution conditions.

C     Steve Emmerson, Ed Hartnett

C
C     Use for logging error messages
C
      subroutine error(msg)
      implicit none
#include "tests.inc"
      character*(*)   msg

      nfails = nfails + 1
      if (nfails .le. max_nmpt) print *, msg
      end


C
C     Use for logging error conditions
C
      subroutine errori(msg, i)
      implicit none
#include "tests.inc"
      character*(*)   msg
      integer         i

      nfails = nfails + 1
      if (nfails .le. max_nmpt) print *, msg, i
      end


C
C     Use for logging error conditions
C
      subroutine errord(msg, d)
      implicit none
#include "tests.inc"
      character*(*)   msg
      doubleprecision d

      nfails = nfails + 1
      if (nfails .le. max_nmpt) print *, msg, d
      end


C
C     Use for logging error conditions
C
      subroutine errorc(msg, string)
      implicit none
#include "tests.inc"
      character*(*)   msg
      character*(*)   string

      nfails = nfails + 1
      if (nfails .le. max_nmpt) print *, msg,
     +     string(1:len_trim(string))
      end


C
C     Use for logging error conditions
C
      subroutine errore(msg, err)
      implicit none
#include "tests.inc"
      character*(*)   msg
      integer         err

      call errorc(msg, nf_strerror(err))
      end