trcwri_age.F90 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. MODULE trcwri_age
  2. !!======================================================================
  3. !! *** MODULE trcwri ***
  4. !! age : Output of age tracers
  5. !!======================================================================
  6. !! History : 1.0 ! 2009-05 (C. Ethe) Original code
  7. !!----------------------------------------------------------------------
  8. #if defined key_top && defined key_age && defined key_iomput
  9. !!----------------------------------------------------------------------
  10. !! 'key_age' age model
  11. !!----------------------------------------------------------------------
  12. !! trc_wri_age : outputs of concentration fields
  13. !!----------------------------------------------------------------------
  14. USE par_age
  15. USE trc
  16. USE iom
  17. IMPLICIT NONE
  18. PRIVATE
  19. PUBLIC trc_wri_age
  20. # include "top_substitute.h90"
  21. CONTAINS
  22. SUBROUTINE trc_wri_age
  23. !!---------------------------------------------------------------------
  24. !! *** ROUTINE trc_wri_trc ***
  25. !!
  26. !! ** Purpose : output passive tracers fields
  27. !!---------------------------------------------------------------------
  28. CHARACTER (len=20) :: cltra
  29. INTEGER :: jn
  30. !!---------------------------------------------------------------------
  31. ! write the tracer concentrations in the file
  32. ! ---------------------------------------
  33. DO jn = jp_age0, jp_age1
  34. cltra = TRIM( ctrcnm(jn) ) ! short title for tracer
  35. CALL iom_put( TRIM(cltra), trn(:,:,:,jn) )
  36. END DO
  37. !
  38. !
  39. END SUBROUTINE trc_wri_age
  40. #else
  41. !!----------------------------------------------------------------------
  42. !! Dummy module : No passive tracer
  43. !!----------------------------------------------------------------------
  44. PUBLIC trc_wri_age
  45. CONTAINS
  46. SUBROUTINE trc_wri_age ! Empty routine
  47. END SUBROUTINE trc_wri_age
  48. #endif
  49. !!----------------------------------------------------------------------
  50. !! NEMO/TOP 3.3 , NEMO Consortium (2010)
  51. !! $Id: trcwri_age.F90 3829 2017-01-13 07:27:36Z ufla $
  52. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  53. !!======================================================================
  54. END MODULE trcwri_age