PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/other/netcdf_write_matrix/src/nf_test/nf_error.F

http://github.com/jbeezley/wrf-fire
FORTRAN Legacy | 75 lines | 37 code | 15 blank | 23 comment | 4 complexity | a9bc778e47f3e79bc9f72540083347f5 MD5 | raw file
Possible License(s): AGPL-1.0
  1. #if 0
  2. Copyright 1996, UCAR/Unidata
  3. See netcdf/COPYRIGHT file for copying and redistribution conditions.
  4. $Id: nf_error.F,v 1.4 1997/06/03 22:26:09 steve Exp $
  5. #endif
  6. C
  7. C Use for logging error messages
  8. C
  9. subroutine error(msg)
  10. implicit none
  11. character*(*) msg
  12. #include "tests.inc"
  13. nfails = nfails + 1
  14. if (nfails .le. max_nmpt) print *, msg
  15. end
  16. C
  17. C Use for logging error conditions
  18. C
  19. subroutine errori(msg, i)
  20. implicit none
  21. character*(*) msg
  22. integer i
  23. #include "tests.inc"
  24. nfails = nfails + 1
  25. if (nfails .le. max_nmpt) print *, msg, i
  26. end
  27. C
  28. C Use for logging error conditions
  29. C
  30. subroutine errord(msg, d)
  31. implicit none
  32. character*(*) msg
  33. doubleprecision d
  34. #include "tests.inc"
  35. nfails = nfails + 1
  36. if (nfails .le. max_nmpt) print *, msg, d
  37. end
  38. C
  39. C Use for logging error conditions
  40. C
  41. subroutine errorc(msg, string)
  42. implicit none
  43. character*(*) msg
  44. character*(*) string
  45. #include "tests.inc"
  46. nfails = nfails + 1
  47. if (nfails .le. max_nmpt) print *, msg,
  48. + string(1:len_trim(string))
  49. end
  50. C
  51. C Use for logging error conditions
  52. C
  53. subroutine errore(msg, err)
  54. implicit none
  55. character*(*) msg
  56. integer err
  57. #include "tests.inc"
  58. nfails = nfails + 1
  59. call errorc(msg, nf_strerror(err))
  60. end