dom_ice.F90 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. MODULE dom_ice
  2. !!======================================================================
  3. !! *** MODULE dom_ice ***
  4. !! LIM-3 Sea Ice : Domain variables
  5. !!======================================================================
  6. !! History : 3.0 ! 2003-08 (M. Vancoppenolle) LIM-3 original code
  7. !! 3.5 ! 2011-02 (G. Madec) dynamical allocation
  8. !!----------------------------------------------------------------------
  9. USE in_out_manager ! I/O manager
  10. USE lib_mpp ! MPP library
  11. USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)
  12. IMPLICIT NONE
  13. PRIVATE
  14. PUBLIC dom_ice_alloc ! Routine called by nemogcm.F90
  15. LOGICAL, PUBLIC :: l_jeq = .TRUE. !: Equator inside the domain flag
  16. INTEGER, PUBLIC :: njeq , njeqm1 !: j-index of the equator if it is inside the domain
  17. REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fcor !: coriolis coefficient
  18. REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: wght !: weight of the 4 neighbours to compute averages
  19. !!----------------------------------------------------------------------
  20. !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011)
  21. !! $Id: dom_ice.F90 4161 2013-11-07 10:01:27Z cetlod $
  22. !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
  23. !!----------------------------------------------------------------------
  24. CONTAINS
  25. FUNCTION dom_ice_alloc()
  26. !!-------------------------------------------------------------------
  27. !! *** Routine dom_ice_alloc ***
  28. !!-------------------------------------------------------------------
  29. INTEGER :: dom_ice_alloc
  30. !!-------------------------------------------------------------------
  31. !
  32. ALLOCATE( fcor(jpi,jpj), wght(jpi,jpj,2,2), STAT = dom_ice_alloc )
  33. !
  34. IF( dom_ice_alloc /= 0 ) CALL ctl_warn( 'dom_ice_alloc: failed to allocate arrays.' )
  35. !
  36. END FUNCTION dom_ice_alloc
  37. !!======================================================================
  38. END MODULE dom_ice