chemistry__dummy.F90 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. !#################################################################
  2. !
  3. ! the "test" project does not perform chemistry
  4. !
  5. !### macro's #####################################################
  6. !
  7. #define TRACEBACK write (gol,'("in ",a," (",a,", line",i5,")")') rname, __FILE__, __LINE__; call goErr
  8. #define IF_NOTOK_RETURN(action) if (status/=0) then; TRACEBACK; action; return; end if
  9. #define IF_ERROR_RETURN(action) if (status> 0) then; TRACEBACK; action; return; end if
  10. !
  11. #include "tm5.inc"
  12. !
  13. !#################################################################
  14. module Chemistry
  15. use GO, only : gol, goPr, goErr
  16. implicit none
  17. ! --- in/out ----------------------------
  18. private
  19. public :: Chemistry_Init, Chemistry_Done
  20. public :: Chemie
  21. ! --- const -----------------------------
  22. character(len=*), parameter :: mname = 'chemistry'
  23. contains
  24. ! ================================================================
  25. subroutine Chemistry_Init( status )
  26. ! --- in/out --------------------------------
  27. integer, intent(out) :: status
  28. ! --- const ------------------------------
  29. character(len=*), parameter :: rname = mname//'/Chemistry_Init'
  30. ! --- begin --------------------------------
  31. ! nothing to be init
  32. ! ok
  33. status = 0
  34. end subroutine Chemistry_Init
  35. ! ***
  36. subroutine Chemistry_Done( status )
  37. ! --- in/out --------------------------------
  38. integer, intent(out) :: status
  39. ! --- const ------------------------------
  40. character(len=*), parameter :: rname = mname//'/Chemistry_Done'
  41. ! --- begin --------------------------------
  42. ! nothing to be done
  43. ! ok
  44. status = 0
  45. end subroutine Chemistry_Done
  46. ! ================================================================
  47. subroutine Chemie( region, tr, status )
  48. use GO, only : TDate
  49. ! --- in/out -----------------------------
  50. integer, intent(in) :: region
  51. type(TDate), intent(in) :: tr(2)
  52. integer, intent(out) :: status
  53. ! --- const ------------------------------
  54. character(len=*), parameter :: rname = mname//'/chemie'
  55. ! --- begin ---------------------------------
  56. ! no chemistry
  57. ! ok
  58. status=0
  59. end subroutine Chemie
  60. end module Chemistry