Changeset 3628 for LMDZ6/branches/Ocean_skin/libf/phylmd/cpl_mod.F90
- Timestamp:
- Feb 4, 2020, 10:36:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin/libf/phylmd/cpl_mod.F90
r3627 r3628 49 49 !$OMP THREADPRIVATE(cpl_snow,cpl_evap,cpl_tsol) 50 50 51 REAL, ALLOCATABLE, SAVE:: cpl_t_int(:) 52 !$OMP THREADPRIVATE(cpl_t_int )51 REAL, ALLOCATABLE, SAVE:: cpl_t_int(:), cpl_s_int(:) 52 !$OMP THREADPRIVATE(cpl_t_int, cpl_s_int) 53 53 54 54 REAL, ALLOCATABLE, DIMENSION(:,:), SAVE :: cpl_fder, cpl_albe, cpl_taux, cpl_tauy … … 94 94 !$OMP THREADPRIVATE(cpl_snow2D, cpl_evap2D, cpl_tsol2D) 95 95 96 REAL, ALLOCATABLE, SAVE:: cpl_t_int_2D(:,:) 97 !$OMP THREADPRIVATE(cpl_t_int_2D )96 REAL, ALLOCATABLE, SAVE:: cpl_t_int_2D(:,:), cpl_s_int_2D(:,:) 97 !$OMP THREADPRIVATE(cpl_t_int_2D, cpl_s_int_2D) 98 98 99 99 REAL, ALLOCATABLE, DIMENSION(:,:,:), SAVE :: cpl_fder2D, cpl_albe2D … … 237 237 238 238 if (activate_ocean_skin == 2) then 239 ALLOCATE(cpl_t_int(klon), stat = error)239 ALLOCATE(cpl_t_int(klon), cpl_s_int(klon), stat = error) 240 240 sum_error = sum_error + error 241 241 end if … … 645 645 swdown, lwdown, fluxlat, fluxsens, & 646 646 precip_rain, precip_snow, evap, tsurf, fder, albsol, taux, tauy, windsp,& 647 sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol, t_int )647 sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol, t_int, s_int) 648 648 649 649 ! This subroutine cumulates some fields for each time-step during … … 672 672 REAL, DIMENSION(klon), INTENT(IN) :: lat_prec_liq, lat_prec_sol 673 673 real, intent(in):: t_int(:) ! (klon) ocean-air interface temperature, in K 674 real, intent(in):: s_int(:) ! (knon) ocean-air interface salinity, in ppt 674 675 675 676 ! Local variables … … 707 708 cpl_taumod(1:knon,cpl_index) = 0.0 708 709 IF (carbon_cycle_cpl) cpl_atm_co2(1:knon,cpl_index) = 0.0 709 if (activate_ocean_skin == 2) cpl_t_int(:knon) = 0. 710 711 if (activate_ocean_skin == 2) then 712 cpl_t_int(:knon) = 0. 713 cpl_s_int = 0. 714 end if 710 715 ENDIF 711 716 … … 750 755 ENDIF 751 756 752 if (activate_ocean_skin == 2) & 753 cpl_t_int(ig) = cpl_t_int(ig) + t_int(ig) / REAL(nexca) 757 if (activate_ocean_skin == 2) then 758 cpl_t_int(ig) = cpl_t_int(ig) + t_int(ig) / REAL(nexca) 759 cpl_s_int(ig) = cpl_s_int(ig) + s_int(ig) / REAL(nexca) 760 end if 754 761 ENDDO 755 762 … … 799 806 800 807 if (activate_ocean_skin == 2) then 801 ALLOCATE(cpl_t_int_2D(nbp_lon, jj_nb), stat = error) 808 ALLOCATE(cpl_t_int_2D(nbp_lon, jj_nb), & 809 cpl_s_int_2D(nbp_lon, jj_nb), stat = error) 802 810 sum_error = sum_error + error 803 811 end if … … 857 865 IF (carbon_cycle_cpl) & 858 866 CALL gath2cpl(cpl_atm_co2(:,cpl_index), cpl_atm_co22D(:,:), knon, knindex) 859 if (activate_ocean_skin == 2) & 860 CALL gath2cpl(cpl_t_int, cpl_t_int_2D, knon, knindex) 867 if (activate_ocean_skin == 2) then 868 CALL gath2cpl(cpl_t_int, cpl_t_int_2D, knon, knindex) 869 CALL gath2cpl(cpl_s_int, cpl_s_int_2D, knon, knindex) 870 end if 861 871 ENDIF 862 872 … … 1252 1262 tab_flds(:,:,ids_qraiic) = cpl_sens_rain2D(:,:,2) 1253 1263 tab_flds(:,:,ids_qsnoic) = cpl_sens_snow2D(:,:,2) 1254 if (activate_ocean_skin == 2) tab_flds(:, :, ids_t_int) = cpl_t_int_2D 1264 1265 if (activate_ocean_skin == 2) then 1266 tab_flds(:, :, ids_t_int) = cpl_t_int_2D 1267 tab_flds(:, :, ids_s_int) = cpl_s_int_2D 1268 end if 1255 1269 1256 1270 IF (version_ocean=='nemo') THEN … … 1489 1503 ENDIF 1490 1504 1491 if (activate_ocean_skin == 2) deallocate(cpl_t_int_2d )1505 if (activate_ocean_skin == 2) deallocate(cpl_t_int_2d, cpl_s_int_2d) 1492 1506 1493 1507 IF (sum_error /= 0) THEN
Note: See TracChangeset
for help on using the changeset viewer.