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 6827 for branches/2016/dev_r6409_SIMPLIF_2_usrdef_tools/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90 – NEMO

Ignore:
Timestamp:
2016-08-01T15:37:15+02:00 (8 years ago)
Author:
flavoni
Message:

#1692 - branch SIMPLIF_2_usrdef: commit routines Fortran to create domain_cfg.nc file, to have domain (input) files for new simplification branch. To be moved in TOOLS directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef_tools/NEMOGCM/NEMO/OPA_SRC/DOM/domhgr.F90

    r6140 r6827  
    377377      CASE ( 0, 1, 4 )               ! mesh on the sphere 
    378378         ! 
    379          ff(:,:) = 2. * omega * SIN( rad * gphif(:,:) )  
     379         ff_f(:,:) = 2. * omega * SIN( rad * gphif(:,:) )  
     380         ff_t(:,:) = 2. * omega * SIN( rad * gphit(:,:) )     !    -        -       - at t-point 
    380381         ! 
    381382      CASE ( 2 )                     ! f-plane at ppgphi0  
    382383         ! 
    383          ff(:,:) = 2. * omega * SIN( rad * ppgphi0 ) 
    384          ! 
    385          IF(lwp) WRITE(numout,*) '          f-plane: Coriolis parameter = constant = ', ff(1,1) 
     384         ff_f(:,:) = 2. * omega * SIN( rad * ppgphi0 ) 
     385         ff_t(:,:) = 2. * omega * SIN( rad * ppgphi0 ) 
     386         ! 
     387         IF(lwp) WRITE(numout,*) '          f-plane: Coriolis parameter = constant = ', ff_f(1,1) 
    386388         ! 
    387389      CASE ( 3 )                     ! beta-plane 
     
    399401         zf0     = 2. * omega * SIN( rad * zphi0 )                              ! compute f0 1st point south 
    400402         ! 
    401          ff(:,:) = ( zf0  + zbeta * gphif(:,:) * 1.e+3 )                        ! f = f0 +beta* y ( y=0 at south) 
     403         ff_f(:,:) = ( zf0  + zbeta * gphif(:,:) * 1.e+3 )                        ! f = f0 +beta* y ( y=0 at south) 
     404         ff_t(:,:) = ( zf0  + zbeta * gphit(:,:) * 1.e+3 )                        ! f = f0 +beta* y ( y=0 at south) 
    402405         ! 
    403406         IF(lwp) THEN 
    404407            WRITE(numout,*)  
    405             WRITE(numout,*) '          Beta-plane: Beta parameter = constant = ', ff(nldi,nldj) 
    406             WRITE(numout,*) '          Coriolis parameter varies from ', ff(nldi,nldj),' to ', ff(nldi,nlej) 
     408            WRITE(numout,*) '          Beta-plane: Beta parameter = constant = ', ff_f(nldi,nldj) 
     409            WRITE(numout,*) '          Coriolis parameter varies from ', ff_f(nldi,nldj),' to ', ff_f(nldi,nlej) 
    407410         ENDIF 
    408411         IF( lk_mpp ) THEN  
    409             zminff=ff(nldi,nldj) 
    410             zmaxff=ff(nldi,nlej) 
     412            zminff=ff_f(nldi,nldj) 
     413            zmaxff=ff_f(nldi,nlej) 
    411414            CALL mpp_min( zminff )   ! min over the global domain 
    412415            CALL mpp_max( zmaxff )   ! max over the global domain 
     
    420423         zf0   = 2. * omega * SIN( rad * zphi0 )                            ! compute f0 1st point south 
    421424         ! 
    422          ff(:,:) = ( zf0 + zbeta * ABS( gphif(:,:) - zphi0 ) * rad * ra )   ! f = f0 +beta* y ( y=0 at south) 
     425         ff_f(:,:) = ( zf0 + zbeta * ABS( gphif(:,:) - zphi0 ) * rad * ra )   ! f = f0 +beta* y ( y=0 at south) 
     426         ff_t(:,:) = ( zf0 + zbeta * ABS( gphit(:,:) - zphi0 ) * rad * ra )   ! f = f0 +beta* y ( y=0 at south) 
    423427         ! 
    424428         IF(lwp) THEN 
    425429            WRITE(numout,*)  
    426430            WRITE(numout,*) '          Beta-plane and rotated domain : ' 
    427             WRITE(numout,*) '          Coriolis parameter varies in this processor from ', ff(nldi,nldj),' to ', ff(nldi,nlej) 
     431            WRITE(numout,*) '          Coriolis parameter varies in this processor from ', ff_f(nldi,nldj),' to ', ff_f(nldi,nlej) 
    428432         ENDIF 
    429433         ! 
    430434         IF( lk_mpp ) THEN  
    431             zminff=ff(nldi,nldj) 
    432             zmaxff=ff(nldi,nlej) 
     435            zminff=ff_f(nldi,nldj) 
     436            zmaxff=ff_f(nldi,nlej) 
    433437            CALL mpp_min( zminff )   ! min over the global domain 
    434438            CALL mpp_max( zmaxff )   ! max over the global domain 
Note: See TracChangeset for help on using the changeset viewer.