亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ccsm_msg.f90

?? CCSM Research Tools: Community Atmosphere Model (CAM)
?? F90
?? 第 1 頁 / 共 5 頁
字號:
#include <misc.h>#include <params.h>module ccsm_msg!----------------------------------------------------------------------- ! ! Purpose: Module to handle all of the message passing to/from!          the CCSM coupler for coupled simulations.! ! Author: Erik Kluzek!! Adapted from: The "ccm_csm*.F90" series of Mariana Vertenstein!! CVS Id: $Id: ccsm_msg.F90,v 1.11.2.6 2002/05/08 23:35:58 erik Exp $! !-----------------------------------------------------------------------#if (defined COUP_CSM)  use precision, only: r8          ! atmospheric model precision  use pmgrid, only: beglat, endlat, plat, plon, plond, masterproc, numlats    ! Model grid  use shr_sys_mod, only: shr_sys_flush, shr_sys_irtc          ! standardized system subroutines  use shr_msg_mod, only: shr_msg_send_i, shr_msg_send_r, shr_msg_recv_i, & ! CCSM messages                         shr_msg_recv_r, shr_msg_recv_c, SHR_MSG_TID_CPL, &                         SHR_MSG_TAG_C2A, SHR_MSG_TAG_A2C,  SHR_MSG_TAG_C2AI, &                         SHR_MSG_TAG_A2CI, SHR_MSG_A_MAJ_V04, SHR_MSG_A_MIN_V00  use shr_kind_mod, only: SHR_KIND_IN                   ! defines CCSM real & integer kinds  use rgrid, only: nlon  ! Reduced grid#if ( defined SPMD )  use spmd_dyn, only: npes, compute_gsfactors           ! SPMD variables  use mpishorthand, only: mpicom, mpir8, mpiint, mpilog ! MPI interface#endif  use history, only: outfld  use binary_io, only: wrtout_r8, readin_r8  implicit none!--------------------------------------------------------------------------! Public interface and information!--------------------------------------------------------------------------  public ccsmini                  ! Initialization  public ccsmsnd                  ! Send information to coupler  public ccsmrcv                  ! Receive information from coupler  public ccsmfin                  ! Finalization, shut down model  public ccsmave                  ! Average CCSM data (when flxave set)  public read_restart_ccsm        ! Read the CCSM restart information  public write_restart_ccsm       ! Write the CCSM restart information  public initialize_ccsm_msg      ! Initialize ccsm_msg data!! When to send/receive messages to coupler and when to make restart and stop!  logical, public :: dorecv       ! receive data from coupler this step  logical, public :: dosend       ! send data to coupler this step  logical, public :: csmstop      ! stop signal received from coupler  logical, public :: csmrstrt     ! restart write signal received from coupler!! Surface data important for CCSM only!  real(r8), public, allocatable:: rho(:,:)      ! surface air density  real(r8), public, allocatable:: netsw(:,:)    ! net shortwave  real(r8), public, allocatable:: psl(:,:)      ! sea-level pressure!--------------------------------------------------------------------------! Private data local to this module only!--------------------------------------------------------------------------  private         ! Make the default access private, explicitly declare public!! Buffer information !  integer(SHR_KIND_IN), private, parameter :: nibuff = 100    ! cpl ->atm msg, initial  integer(SHR_KIND_IN), private, parameter :: ncbuff_max=2000 ! Max size of character data from cpl  integer(SHR_KIND_IN), private :: ncbuff        ! Size of character data from cpl  integer(SHR_KIND_IN), private :: ibuff(nibuff) ! Integer buffer from cpl  real(r8), private :: rbuff(nibuff)        ! Floating pt buffer from cpl  character, private:: cbuff(ncbuff_max)    ! Character data recieved from cpl  real(r8) spval                            ! Special value for real msg data!! Timing information !  logical, private :: csm_timing            ! turn timing of CCSM messages on  integer, private :: irtc_w                ! rtc ticks when waiting for msg  integer, private :: irtc_r                ! rtc ticks when msg recved  integer, private :: irtc_s                ! rtc ticks when msg sent!! Send/recv buffers!  integer(SHR_KIND_IN), private, parameter :: nsnd=19 ! number of send variables  integer(SHR_KIND_IN), private, parameter :: nrcv=15 ! number of recv variables  real(r8), private :: arget(plon,plat,nrcv)! recv array  real(r8), private :: arput(plon,plat,nsnd)! send array#if (defined SPMD)  real(r8), allocatable:: arget_spmd(:,:,:)   ! recv array for spmd  real(r8), allocatable:: arput_spmd(:,:,:)   ! send array for spmd  real(r8), allocatable:: arget_buf(:,:,:)    ! gather array used on masterproc  real(r8), allocatable:: arput_buf(:,:,:)    ! scatter array used on masterproc#endif!! Flux accumulator!  integer, private :: countfa      ! counter for flux accumulators!! Surface data that needs to be averaged!  real(r8), allocatable:: precca(:,:)   ! Average convective precipitation  real(r8), allocatable:: precla(:,:)   ! Average large-scale precipation  real(r8), allocatable:: precsca(:,:)  ! Average convective snow-fall  real(r8), allocatable:: precsla(:,:)  ! Average large-scale snow-fall  real(r8), allocatable:: rainconv(:,:) ! Convective rainfall  real(r8), allocatable:: rainlrsc(:,:) ! Large-scale rainfall  real(r8), allocatable:: snowconv(:,:) ! Convective snowfall  real(r8), allocatable:: snowlrsc(:,:) ! Larse-scale snowfall  real(r8), allocatable:: prc_err(:,:)  ! Error in precipitation sent to coupler!===============================================================================CONTAINS!===============================================================================!===============================================================================! The following first set of subroutines can be publically called.! After this set are the subroutines that are callable only from within! this module.!===============================================================================  subroutine ccsmini!----------------------------------------------------------------------- ! ! Purpose: Initialize ccsm coupler communications! ! Method: ! ! Author: Mariana Vertenstein! !-----------------------------------------------------------------------    use comsrf, only: srfflx_state2d,surface_state2d, icefrac, ocnfrac, landfrac    use physconst, only: stebol    use tracers, only: pcnst, pnats    use time_manager, only: is_first_step!-----------------------------------------------------------------------#include <comctl.h>!--------------------------Local Variables------------------------------    integer i,m,lat,n     ! indices#if (defined SPMD)    integer ierr          ! Allocation error signal#endif!-----------------------------------------------------------------------! Set the CCSM stop and restart to false!    csmstop  = .false.    csmrstrt = .false.!! For SPMD allocate the send and receive buffers!#if (defined SPMD)   if ( .not. allocated(arget_spmd) )then      allocate(arget_spmd(plon,nrcv,beglat:endlat), STAT=ierr)      if (ierr /= 0) then         write(6,*)'(CCSMINI) arget_spmd allocation error'         call endrun      endif   endif   allocate(arput_spmd(plon,nsnd,beglat:endlat), STAT=ierr)   if (ierr /= 0) then      write(6,*)'(CCSMINI) arput_spmd allocation error'      call endrun   endif   if ( masterproc ) then      if ( .not. allocated(arget_buf) )then         allocate(arget_buf(plon,nrcv,plat), STAT=ierr)         if (ierr /= 0) then            write(6,*)'(CCSMINI) arget_buf allocation error'            call endrun         endif      endif      allocate(arput_buf(plon,nsnd,plat), STAT=ierr)      if (ierr /= 0) then         write(6,*)'(CCSMINI) arput_buf allocation error'         call endrun      endif   end if#endif!! For now set all tracer fluxes to zero!    do m=2,pcnst+pnats       do lat=beglat,endlat          do i=1,nlon(lat)             srfflx_state2d(lat)%cflx(i,m) = 0.          end do       end do    end do!! Require the short and longwave radiation frequencies to match, since these! fluxes will be sent as instantaneous fluxes to the coupler, valid over the ! next interval.!    if (masterproc) then       if (flxave) then          if (iradsw == iradlw) then             write(6,*) '(CCSMINI): coupling will take place every ',iradsw, ' steps'          else             write(6,*) '(CCSMINI): iradsw != iradlw ', iradsw, iradlw             stop 'bad irad'          endif       else          write(6,*) '(CCSMINI): coupling will take place every time step'       end if       call shr_sys_flush(6)    end if!! Receive orbital parameters!    if (masterproc) then       write(6,*) '(CCSMINI): get orbital parameters from coupler'       call shr_sys_flush(6)    end if    call ccsm_msg_getorb!! Send grid to flux coupler!    if (masterproc) then       write(6,*) '(CCSMINI): send grid to coupler'       call shr_sys_flush(6)    end if    call ccsm_msg_sendgrid!! For initial run only:     if (is_first_step()) then!! Initial run only: get albedos and ice fraction !       if (masterproc) then          write(6,*) '(CCSMINI): get albedos from coupler'          call shr_sys_flush(6)       end if       call ccsm_msg_getalb!! Initial run only: determine landfrac field (complement of ocean orography)!       do lat=beglat,endlat          do i=1,nlon(lat)             if (icefrac(i,lat) + ocnfrac(i,lat) <= .999) then	        landfrac(i,lat) = 1.	        ocnfrac(i,lat) = 0.             else                landfrac(i,lat) = 0.	        ocnfrac(i,lat) = 1.             end if!             landfrac(i,lat) = 1. - icefrac(i,lat) - ocnfrac(i,lat)          end do       end do!! Initial run only: determine longwave up flux from the surface temperature. !       do lat=beglat,endlat          do i=1,nlon(lat)             srfflx_state2d(lat)%lwup(i) = stebol*(srfflx_state2d(lat)%ts(i)**4)          end do       end do    end if        if (masterproc) then       write(6,*) '(CCSMINI): CCSM initialization complete!'       call shr_sys_flush(6)    end if    return  end subroutine ccsmini  subroutine ccsmrcv!----------------------------------------------------------------------- ! ! Purpose: ! Get the message array from the csm driver and extract the data! ! Method: ! ! Author: Byron Boville! !-----------------------------------------------------------------------    use comsrf, only: srfflx_state2d,surface_state2d, icefrac, ocnfrac, &                      landfrac, snowhice, snowhland#include <comctl.h>!---------------------------Local workspace-----------------------------    integer i,lat,n           ! indices    integer len               ! temporary variable length#ifdef SPMD    integer :: numperlat         ! number of values per latitude band    integer :: numsend(0:npes-1) ! number of items to be sent    integer :: numrecv           ! number of items to be received    integer :: displs(0:npes-1)  ! displacement array#endif!-----------------------------------------------------------------------!! Get data from flux coupler. !    if (masterproc) then       if (csm_timing) irtc_w = shr_sys_irtc()       call shr_msg_recv_i(ibuff, size(ibuff), SHR_MSG_TID_CPL, SHR_MSG_TAG_C2A)       call shr_msg_recv_r(arget, size(arget), SHR_MSG_TID_CPL, SHR_MSG_TAG_C2A)       if (csm_timing) then          irtc_r = shr_sys_irtc()          write(6,9099) irtc_w,'d->a waiting'          write(6,9099) irtc_r,'d->a received'       endif    endif!! Split buffer into component arrays. Change signs as required.! Note that coupler has convention that fluxes are positive downward.!#if (defined SPMD)    call mpibcast (ibuff,nibuff,mpiint,0,mpicom)        if (masterproc) then       do n=1,nrcv          do lat=1,plat             do i=1,nlon(lat)                arget_buf(i,n,lat) = arget(i,lat,n)             end do

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美自拍偷拍| 久久亚洲一级片| 一本一本久久a久久精品综合麻豆| 久久国产免费看| 久久狠狠亚洲综合| 免费精品视频在线| 国产自产高清不卡| 国产suv一区二区三区88区| 国产一区二区毛片| 成人综合婷婷国产精品久久蜜臀| 成人永久aaa| 91福利国产成人精品照片| 欧美丝袜丝nylons| 日韩一卡二卡三卡国产欧美| 精品国产免费久久| 久久久综合激的五月天| 中文成人av在线| 亚洲成人av电影| 黄页网站大全一区二区| 972aa.com艺术欧美| 欧美日韩一级片在线观看| 精品国产成人系列| 中文字幕日韩一区| 偷拍一区二区三区| 国产综合色在线视频区| 日本精品免费观看高清观看| 欧美久久久一区| 国产精品久久久久久久久免费相片| 亚洲综合图片区| 精品一区精品二区高清| 色婷婷久久一区二区三区麻豆| 欧美日韩电影在线| 国产精品美女一区二区三区| 亚洲国产综合91精品麻豆| 精品一区二区日韩| 色乱码一区二区三区88| 欧美精品一区二区在线播放| 亚洲日本乱码在线观看| 精品一区二区三区不卡 | 中文字幕中文字幕一区| 一区二区高清视频在线观看| 久久99日本精品| 在线观看国产一区二区| 日本一区二区免费在线观看视频 | 国产午夜精品一区二区三区嫩草| 国产精品欧美久久久久无广告| 亚洲一区二区三区四区在线免费观看| 九色|91porny| 欧美日韩午夜在线| 国产精品国产三级国产普通话99 | 成人午夜免费电影| 日韩欧美激情一区| 亚洲激情五月婷婷| 成人黄色a**站在线观看| 欧美一二三区精品| 日韩制服丝袜av| 欧美性受xxxx黑人xyx性爽| 中文一区二区在线观看| 久久精品国产在热久久| 欧美人动与zoxxxx乱| 亚洲激情综合网| 色综合久久综合中文综合网| 国产精品久99| 粉嫩av一区二区三区粉嫩| 2019国产精品| 国产在线视频一区二区三区| 日韩一区二区中文字幕| 日本成人中文字幕| 欧美精品123区| 视频一区二区三区中文字幕| 欧美日韩卡一卡二| 天堂蜜桃91精品| 日韩欧美在线网站| 精品一区二区三区影院在线午夜 | 成人天堂资源www在线| 欧美精品一区二区三区在线| 久久精品久久综合| 2021中文字幕一区亚洲| 国产高清久久久久| 综合色中文字幕| 色94色欧美sute亚洲13| 亚洲国产精品一区二区久久| 91精品福利视频| 亚洲国产一二三| 欧美一区二区在线播放| 韩日欧美一区二区三区| 国产视频一区二区在线| 91麻豆国产福利精品| 亚洲综合色在线| 69p69国产精品| 国产福利精品一区二区| 亚洲丝袜制服诱惑| 欧美日韩一区二区三区在线看| 日韩国产精品久久久久久亚洲| 欧美一区二区久久| 成人aa视频在线观看| 午夜不卡av免费| 久久久久久久一区| 在线亚洲一区二区| 蜜桃视频一区二区| 国产农村妇女毛片精品久久麻豆| 成人黄色综合网站| 日韩制服丝袜av| 国内精品自线一区二区三区视频| 欧美一区三区四区| 国产69精品久久久久777| 亚洲免费av高清| 精品捆绑美女sm三区| 不卡区在线中文字幕| 婷婷六月综合亚洲| 国产喂奶挤奶一区二区三区| 91在线观看高清| 奇米一区二区三区av| 亚洲免费观看高清完整版在线| 欧美一区二区福利在线| 99re成人在线| 国产在线视频一区二区三区| 亚洲综合免费观看高清在线观看 | 成人免费看视频| 午夜不卡av在线| 亚洲欧洲三级电影| 欧美xfplay| 欧美视频在线一区二区三区 | 亚洲综合色视频| 欧美国产一区视频在线观看| 日韩一区二区在线看片| 91蜜桃视频在线| 国产在线精品一区二区三区不卡| 一区二区高清在线| 亚洲图片你懂的| 国产亚洲va综合人人澡精品| 欧美一区中文字幕| 欧美性猛交一区二区三区精品| 成人激情综合网站| 国产精品一区免费在线观看| 美女脱光内衣内裤视频久久影院| 一区二区三区电影在线播| 国产精品国产精品国产专区不片| 久久五月婷婷丁香社区| 日韩欧美在线网站| 日韩一区二区中文字幕| 5月丁香婷婷综合| 欧美日韩国产大片| 欧美色爱综合网| 欧美色图一区二区三区| 色呦呦网站一区| 色综合天天综合网天天狠天天| 成人avav在线| 91网站在线播放| 91网站视频在线观看| 色天天综合久久久久综合片| 99综合电影在线视频| 99精品欧美一区二区蜜桃免费| 99re这里只有精品6| 91丝袜国产在线播放| 91首页免费视频| 在线视频观看一区| 8x福利精品第一导航| 日韩美女视频一区二区在线观看| 日韩免费视频线观看| 久久久久综合网| 国产精品久久久久aaaa| 亚洲欧美激情一区二区| 亚洲小说春色综合另类电影| 亚洲影视在线播放| 日本美女视频一区二区| 精品一区二区三区av| 成人av片在线观看| 欧美优质美女网站| 欧美一二三在线| 欧美国产精品一区| 亚洲专区一二三| 麻豆精品一区二区av白丝在线| 国产精品自拍在线| 91在线国内视频| 777久久久精品| 国产色婷婷亚洲99精品小说| 亚洲欧洲综合另类| 六月丁香综合在线视频| 成人手机在线视频| 在线一区二区三区做爰视频网站| 欧美二区乱c少妇| 国产清纯白嫩初高生在线观看91 | 亚洲乱码日产精品bd | 久久婷婷成人综合色| 国产精品青草综合久久久久99| 亚洲另类在线一区| 久久99久久99精品免视看婷婷| 成人动漫在线一区| 欧美一区二区在线免费观看| 国产精品第四页| 精品一区二区影视| 欧美三片在线视频观看| 国产精品人人做人人爽人人添| 亚洲成人动漫av| 色综合天天做天天爱| 久久久久久久免费视频了| 肉色丝袜一区二区| 91视频一区二区三区| 久久精品人人爽人人爽|