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 7320 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/CRS/crsdomwri.F90 – NEMO

Ignore:
Timestamp:
2016-11-23T14:24:07+01:00 (8 years ago)
Author:
cbricaud
Message:

create lib_fortran routine for CRS grid and interface it in TOP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/CRS/crsdomwri.F90

    r6772 r7320  
    5757      INTEGER           ::   inum3    ! temprary units for 'mesh_hgr.nc'  file 
    5858      INTEGER           ::   inum4    ! temprary units for 'mesh_zgr.nc'  file 
    59       INTEGER           ::   iif, iil, ijf, ijl 
    6059      CHARACTER(len=21) ::   clnam0   ! filename (mesh and mask informations) 
    6160      CHARACTER(len=21) ::   clnam1   ! filename (mesh informations) 
     
    127126      CALL iom_rstput( 0, 0, inum2, 'vmask', vmask_crs, ktype = jp_i1 ) 
    128127      CALL iom_rstput( 0, 0, inum2, 'fmask', fmask_crs, ktype = jp_i1 ) 
    129        
    130        
    131       tmask_i_crs(:,:) = tmask_crs(:,:,1) 
    132       iif = jpreci 
    133       iil = nlci_crs - jpreci + 1 
    134       ijf = jpreci 
    135       ijl = nlcj_crs - jprecj + 1 
    136       
    137       tmask_i_crs( 1:iif ,    :  ) = 0._wp 
    138       tmask_i_crs(iil:jpi_crs,    :  ) = 0._wp 
    139       tmask_i_crs(   :   , 1:ijf ) = 0._wp 
    140       tmask_i_crs(   :   ,ijl:jpj_crs) = 0._wp 
    141        
    142        
    143       tpol_crs(1:jpiglo_crs,:) = 1._wp 
    144       fpol_crs(1:jpiglo_crs,:) = 1._wp 
    145       IF( jperio == 3 .OR. jperio == 4 ) THEN 
    146          tpol_crs(jpiglo_crs/2+1:jpiglo_crs,:) = 0._wp 
    147          fpol_crs(       1      :jpiglo_crs,:) = 0._wp 
    148          IF( mjg_crs(nlej_crs) == jpiglo_crs ) THEN 
    149             DO ji = iif+1, iil-1 
    150                tmask_i_crs(ji,nlej_crs-1) = tmask_i_crs(ji,nlej_crs-1) & 
    151                & * tpol_crs(mig_crs(ji),1) 
    152             ENDDO 
    153          ENDIF 
    154       ENDIF 
    155       IF( jperio == 5 .OR. jperio == 6 ) THEN 
    156          tpol_crs(      1       :jpiglo_crs,:)=0._wp 
    157          fpol_crs(jpiglo_crs/2+1:jpiglo_crs,:)=0._wp 
    158       ENDIF 
    159        
    160128      CALL iom_rstput( 0, 0, inum2, 'tmaskutil', tmask_i_crs, ktype = jp_i1 ) 
    161129                                   !    ! unique point mask 
Note: See TracChangeset for help on using the changeset viewer.