sedmodel.F90 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. MODULE sedmodel
  2. #if defined key_sed
  3. !!======================================================================
  4. !! *** MODULE sedmodel ***
  5. !! Sediment model : Main routine of sediment model
  6. !!======================================================================
  7. USE sed
  8. USE sedini ! sediment variables initialization
  9. USE sedstp ! time stepping
  10. IMPLICIT NONE
  11. PRIVATE
  12. !! * Routine accessibility
  13. PUBLIC sed_model ! called by step.F90
  14. LOGICAL, PUBLIC, PARAMETER :: lk_sed = .TRUE. !: sediment flag
  15. !! $Id: sedmodel.F90 2355 2015-05-20 07:11:50Z ufla $
  16. CONTAINS
  17. SUBROUTINE sed_model ( kt )
  18. !!---------------------------------------------------------------------
  19. !! *** ROUTINE sed_model ***
  20. !!
  21. !! ** Purpose : main routine of sediment model
  22. !!
  23. !!
  24. !! ** Method : - model general initialization
  25. !! - launch the time-stepping (stp routine)
  26. !!
  27. !! History :
  28. !! ! 07-02 (C. Ethe) Original
  29. !!----------------------------------------------------------------------
  30. INTEGER, INTENT(in) :: kt ! number of iteration
  31. IF( kt == nittrc000 ) CALL sed_init ! Initialization of sediment model
  32. CALL sed_stp( kt ) ! Time stepping of Sediment model
  33. END SUBROUTINE sed_model
  34. #else
  35. !!======================================================================
  36. !! MODULE sedmodel : Dummy module
  37. !!======================================================================
  38. LOGICAL, PUBLIC, PARAMETER :: lk_sed = .FALSE. !: sediment flag
  39. !! $Id: sedmodel.F90 2355 2015-05-20 07:11:50Z ufla $
  40. CONTAINS
  41. SUBROUTINE sed_model( kt ) ! Empty routine
  42. INTEGER, INTENT(in) :: kt
  43. WRITE(*,*) 'sed_stp: You should not have seen this print! error?', kt
  44. END SUBROUTINE sed_model
  45. #endif
  46. END MODULE sedmodel