New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2874 for branches/2011/dev_r2802_UKMO8_cice/NEMOGCM/NEMO/OPA_SRC/LBC/mppini.F90 – NEMO

Ignore:
Timestamp:
2011-09-28T12:19:59+02:00 (13 years ago)
Author:
charris
Message:

Code for running NEMO with CICE (for fully coupled mode this should be used in combination with dev_r2802_UKMO8_sbccpl). Changes are described briefly below.

physct: Constants modified to be consistent with CICE

nemogcm / prtctl / mppini: Changes to NEMO decomposition (activated using key_nemocice_decomp) to produce 'square' options in CICE. Can run without this key / code but this requires a global gather / scatter in the NEMO-CICE coupling which gets very slow on large processors numbers.

sbc_ice: CICE options and arrays added

sbcmod: CICE option added, including calls for initialising and finalising CICE.

sbcblk_core: Make sure necessary forcing field are available for CICE

sbcice_cice: Main CICE coupling code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2802_UKMO8_cice/NEMOGCM/NEMO/OPA_SRC/LBC/mppini.F90

    r2715 r2874  
    152152 
    153153      IF(  iresti == 0 )   iresti = jpni 
     154 
     155#if defined key_nemocice_decomp 
     156      ! In order to match CICE the size of domains in NEMO has to be changed 
     157      ! The last line of blocks (west) will have fewer points 
     158 
     159      DO jj = 1, jpnj 
     160         DO ji=1, jpni-1 
     161            ilcit(ji,jj) = jpi 
     162         END DO 
     163         ilcit(jpni,jj) = jpiglo - (jpni - 1) * (jpi - nreci) 
     164      END DO 
     165 
     166#else 
     167 
    154168      DO jj = 1, jpnj 
    155169         DO ji = 1, iresti 
     
    161175      END DO 
    162176       
     177#endif 
    163178      IF( irestj == 0 )   irestj = jpnj 
     179 
     180#if defined key_nemocice_decomp 
     181      ! Same change to domains in North-South direction as in East-West.  
     182      DO ji=1,jpni 
     183         DO jj=1,jpnj-1 
     184            ilcjt(ji,jj) = jpj 
     185         END DO 
     186         ilcjt(ji,jpnj) = jpjglo - (jpnj - 1) * (jpj - nrecj) 
     187      END DO 
     188 
     189#else 
     190 
    164191      DO ji = 1, jpni 
    165192         DO jj = 1, irestj 
     
    171198      END DO 
    172199       
     200#endif 
    173201      IF(lwp) THEN 
    174202         WRITE(numout,*) 
Note: See TracChangeset for help on using the changeset viewer.