123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- MODULE oce
-
-
-
-
-
-
-
-
- USE par_oce
- USE lib_mpp
- IMPLICIT NONE
- PRIVATE
- PUBLIC oce_alloc
- LOGICAL, PUBLIC :: l_traldf_rot = .FALSE.
-
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ub , un , ua
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: vb , vn , va
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ua_sv, va_sv
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: wn
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rotb , rotn
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hdivb, hdivn
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: tsb , tsn , tsa
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) :: rab_b, rab_n
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rn2b , rn2
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rhd
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rhop
-
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ub_b , un_b , ua_b
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: vb_b , vn_b , va_b
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: sshb , sshn , ssha
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: spgu, spgv
-
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtsu, gtsv
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: gru , grv
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: aru , arv
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: gzu , gzv
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ge3ru, ge3rv
-
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: gtui, gtvi
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: grui, grvi
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: arui, arvi
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: gzui, gzvi
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: ge3rui, ge3rvi
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: riceload
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: rke
-
-
-
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: snwice_mass
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: snwice_mass_b
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: snwice_fmass
-
- REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fraqsr_1lev
-
-
-
-
-
- CONTAINS
- INTEGER FUNCTION oce_alloc()
-
-
-
- INTEGER :: ierr(4)
-
-
- ALLOCATE( ub (jpi,jpj,jpk) , un (jpi,jpj,jpk) , ua(jpi,jpj,jpk) , &
- & vb (jpi,jpj,jpk) , vn (jpi,jpj,jpk) , va(jpi,jpj,jpk) , &
- & ua_sv(jpi,jpj,jpk) , va_sv(jpi,jpj,jpk) , &
- & wn (jpi,jpj,jpk) , &
- & rotb (jpi,jpj,jpk) , rotn (jpi,jpj,jpk) , &
- & hdivb(jpi,jpj,jpk) , hdivn(jpi,jpj,jpk) , &
- & tsb (jpi,jpj,jpk,jpts) , tsn (jpi,jpj,jpk,jpts) , tsa(jpi,jpj,jpk,jpts) , &
- & rab_b(jpi,jpj,jpk,jpts) , rab_n(jpi,jpj,jpk,jpts) , &
- & rn2b (jpi,jpj,jpk) , rn2 (jpi,jpj,jpk) , STAT=ierr(1) )
-
- ALLOCATE(rhd (jpi,jpj,jpk) , &
- & rhop(jpi,jpj,jpk) , &
- & rke(jpi,jpj,jpk) , &
- & sshb(jpi,jpj) , sshn(jpi,jpj) , ssha(jpi,jpj) , &
- & ub_b(jpi,jpj) , un_b(jpi,jpj) , ua_b(jpi,jpj) , &
- & vb_b(jpi,jpj) , vn_b(jpi,jpj) , va_b(jpi,jpj) , &
- & spgu (jpi,jpj) , spgv(jpi,jpj) , &
- & gtsu(jpi,jpj,jpts), gtsv(jpi,jpj,jpts), &
- & aru(jpi,jpj) , arv(jpi,jpj) , &
- & gzu(jpi,jpj) , gzv(jpi,jpj) , &
- & gru(jpi,jpj) , grv(jpi,jpj) , &
- & ge3ru(jpi,jpj) , ge3rv(jpi,jpj) , &
- & gtui(jpi,jpj,jpts), gtvi(jpi,jpj,jpts), &
- & arui(jpi,jpj) , arvi(jpi,jpj) , &
- & gzui(jpi,jpj) , gzvi(jpi,jpj) , &
- & ge3rui(jpi,jpj) , ge3rvi(jpi,jpj) , &
- & grui(jpi,jpj) , grvi(jpi,jpj) , &
- & riceload(jpi,jpj), STAT=ierr(2) )
-
- ALLOCATE( snwice_mass(jpi,jpj) , snwice_mass_b(jpi,jpj), snwice_fmass(jpi,jpj) , STAT=ierr(3) )
-
- ALLOCATE( fraqsr_1lev(jpi,jpj) , STAT=ierr(4) )
-
- oce_alloc = MAXVAL( ierr )
- IF( oce_alloc /= 0 ) CALL ctl_warn('oce_alloc: failed to allocate arrays')
-
- END FUNCTION oce_alloc
-
- END MODULE oce
|