boundary.F90 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. !#################################################################
  2. !
  3. ! Boundary conditions
  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 boundary
  15. use GO , only : gol, goPr, goErr, goLabel
  16. implicit none
  17. ! --- in/out ------------------------------------
  18. private
  19. public :: Boundary_Init, Boundary_Done
  20. public :: Boundary_Apply
  21. ! --- const --------------------------------------
  22. character(len=*), parameter :: mname = 'boundary'
  23. contains
  24. ! ===================================================================
  25. subroutine Boundary_Init( status )
  26. ! --- in/out ---------------------------------------
  27. integer, intent(out) :: status
  28. ! --- const ---------------------------------------
  29. character(len=*), parameter :: rname = mname//'/Boundary_Init'
  30. ! --- local ----------------------------------------
  31. ! --- begin ----------------------------------------
  32. ! nothing to init
  33. ! ok
  34. status = 0
  35. end subroutine Boundary_Init
  36. ! ***
  37. subroutine Boundary_Done( status )
  38. ! --- in/out ---------------------------------------
  39. integer, intent(out) :: status
  40. ! --- const ---------------------------------------
  41. character(len=*), parameter :: rname = mname//'/Boundary_Done'
  42. ! --- local ----------------------------------------
  43. ! --- begin ----------------------------------------
  44. ! nothing to be done
  45. ! ok
  46. status = 0
  47. end subroutine Boundary_Done
  48. ! ***
  49. subroutine Boundary_Apply( region, status )
  50. ! --- in/out --------------------------------
  51. integer, intent(in) :: region
  52. integer, intent(out) :: status
  53. ! --- const --------------------------------
  54. character(len=*), parameter :: rname = mname//'/Boundary_Apply'
  55. ! --- local ---------------------------------
  56. ! --- begin ----------------------------------
  57. ! nothing to be applied
  58. ! ok
  59. status = 0
  60. end subroutine Boundary_Apply
  61. end module boundary