- Timestamp:
- 2018-06-21T11:58:42+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_nemo2cice_prints/NEMOGCM/NEMO/OPA_SRC/oce.F90
r9816 r9817 71 71 !! Energy budget of the leads (open water embedded in sea ice) 72 72 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: fraqsr_1lev !: fraction of solar net radiation absorbed in the first ocean level [-] 73 74 !! Arrays used in coupling when MEDUSA is present. These arrays need to be declared 75 !! even if MEDUSA is not active, to allow compilation, in which case they will not be allocated. 76 !! --------------------- 77 REAL(wp), PUBLIC, ALLOCATABLE, SAVE :: CO2Flux_out_cpl(:,:) ! Output coupling CO2 flux 78 REAL(wp), PUBLIC, ALLOCATABLE, SAVE :: DMS_out_cpl(:,:) ! Output coupling DMS 79 REAL(wp), PUBLIC, ALLOCATABLE, SAVE :: chloro_out_cpl(:,:) ! Output coupling chlorophyll 80 ! (expected in Kg/M3) 73 81 82 REAL(wp), PUBLIC, ALLOCATABLE, SAVE :: PCO2a_in_cpl(:,:) ! Input coupling CO2 partial pressure 83 REAL(wp), PUBLIC, ALLOCATABLE, SAVE :: Dust_in_cpl(:,:) ! Input coupling dust 84 85 #if defined key_medusa 86 LOGICAL, PUBLIC, PARAMETER :: ln_medusa=.TRUE. ! Medusa switched on or off. 87 #else 88 LOGICAL, PUBLIC, PARAMETER :: ln_medusa=.FALSE. ! Medusa switched on or off. 89 #endif 74 90 !!---------------------------------------------------------------------- 75 91 !! NEMO/OPA 4.0 , NEMO Consortium (2011) … … 83 99 !! *** FUNCTION oce_alloc *** 84 100 !!---------------------------------------------------------------------- 85 INTEGER :: ierr( 4)101 INTEGER :: ierr(5) 86 102 !!---------------------------------------------------------------------- 87 103 ! … … 119 135 ALLOCATE( fraqsr_1lev(jpi,jpj) , STAT=ierr(4) ) 120 136 ! 137 #if defined key_oasis3 138 IF (ln_medusa) THEN 139 ! We only actually need these arrays to be allocated if coupling and MEDUSA 140 ! are enabled 141 ALLOCATE( CO2Flux_out_cpl(jpi,jpj), DMS_out_cpl(jpi,jpj), & 142 chloro_out_cpl(jpi,jpj), & 143 PCO2a_in_cpl(jpi,jpj), Dust_in_cpl(jpi,jpj), STAT=ierr(5) ) 144 145 ENDIF 146 #endif 147 121 148 oce_alloc = MAXVAL( ierr ) 122 149 IF( oce_alloc /= 0 ) CALL ctl_warn('oce_alloc: failed to allocate arrays')
Note: See TracChangeset
for help on using the changeset viewer.