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 3259 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90 – NEMO

Ignore:
Timestamp:
2012-01-13T16:24:15+01:00 (12 years ago)
Author:
hliu
Message:

re-implement the semi-implicit bottom friction in DYNZDF_IMP.F90 to optimize the performance of this piece of code, Thanks for Italo's profiling results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90

    r3229 r3259  
    123123            &                       tab2d_2=bfrva, clinfo2=       ' v: ', mask2=vmask,ovlap=1 ) 
    124124      ENDIF 
     125 
    125126      ! 
    126127      IF( nn_timing == 1 )  CALL timing_stop('zdf_bfr') 
     
    170171            WRITE(numout,*) 'Implicit bottom friction can only be used when ln_zdfexp=.false.' 
    171172            WRITE(numout,*) '         but you set: ln_bfrimp=.true. and ln_zdfexp=.true.!!!!' 
    172             WRITE(ctmp1,*)  '         bad ln_bfrimp value = .true.'  
     173            WRITE(ctmp1,*)  '         set either "ln_zdfexp = .false" or "ln_bfrimp = .false." 
    173174            CALL ctl_stop( ctmp1 ) 
    174175         END IF 
     
    272273         CALL mpp_max( zmaxbfr ) 
    273274      ENDIF 
     275      IF( .NOT.ln_bfrimp) THEN 
    274276      IF( lwp .AND. ictu + ictv > 0 ) THEN 
    275277         WRITE(numout,*) ' Bottom friction stability check failed at ', ictu, ' U-points ' 
     
    278280         WRITE(numout,*) ' Bottom friction coefficient will be reduced where necessary' 
    279281      ENDIF 
     282      ENDIF 
    280283      ! 
    281284      IF( nn_timing == 1 )  CALL timing_stop('zdf_bfr_init') 
Note: See TracChangeset for help on using the changeset viewer.