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 3726 – NEMO

Changeset 3726


Ignore:
Timestamp:
2012-12-10T11:37:43+01:00 (11 years ago)
Author:
acc
Message:

Bugfix #1036 (repeated on the trunk). Tidy up dyn_nept_init to avoid unnecessary allocations and remove misleading output text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/DYN/dynnept.F90

    r3294 r3726  
    115115                            ln_neptramp, rn_htrmin, rn_htrmax 
    116116      !!---------------------------------------------------------------------- 
    117       !                                                           ! Dynamically allocate local work arrays 
    118       CALL wrk_alloc( jpi, jpj     , ht, htn, tscale, tsp, hur_n, hvr_n, hu_n, hv_n  )  
    119       CALL wrk_alloc( jpi, jpj, jpk, znmask                                          )  
    120       ! 
    121117      ! Define the (simplified) Neptune parameters 
    122118      ! ========================================== 
    123119 
    124 !!    WRITE(numout,*) ' start dynnept namelist' 
    125 !!    CALL FLUSH(numout) 
    126120      REWIND( numnam )                  ! Read Namelist namdyn_nept:  Simplified Neptune 
    127121      READ  ( numnam, namdyn_nept ) 
    128 !!    WRITE(numout,*) ' dynnept namelist done' 
    129 !!    CALL FLUSH(numout) 
    130122 
    131123      IF(lwp) THEN                      ! Control print 
    132124         WRITE(numout,*) 
    133          WRITE(numout,*) 'dyn_nept_init : Simplified Neptune module enabled' 
     125         WRITE(numout,*) 'dyn_nept_init : Simplified Neptune module' 
    134126         WRITE(numout,*) '~~~~~~~~~~~~~' 
    135127         WRITE(numout,*) ' -->   Reading namelist namdyn_nept parameters:' 
    136128         WRITE(numout,*) '       ln_neptsimp          = ', ln_neptsimp 
    137129         WRITE(numout,*) 
    138          WRITE(numout,*) '       ln_smooth_neptvel    = ', ln_smooth_neptvel 
    139          WRITE(numout,*) '       rn_tslse             = ', rn_tslse 
    140          WRITE(numout,*) '       rn_tslsp             = ', rn_tslsp 
    141          WRITE(numout,*) 
    142          WRITE(numout,*) '       ln_neptramp          = ', ln_neptramp 
    143          WRITE(numout,*) '       rn_htrmin            = ', rn_htrmin 
    144          WRITE(numout,*) '       rn_htrmax            = ', rn_htrmax 
    145          WRITE(numout,*) 
    146          CALL FLUSH(numout) 
    147       ENDIF 
     130         IF( ln_neptsimp ) THEN 
     131            WRITE(numout,*) '       ln_smooth_neptvel    = ', ln_smooth_neptvel 
     132            WRITE(numout,*) '       rn_tslse             = ', rn_tslse 
     133            WRITE(numout,*) '       rn_tslsp             = ', rn_tslsp 
     134            WRITE(numout,*) 
     135            WRITE(numout,*) '       ln_neptramp          = ', ln_neptramp 
     136            WRITE(numout,*) '       rn_htrmin            = ', rn_htrmin 
     137            WRITE(numout,*) '       rn_htrmax            = ', rn_htrmax 
     138            WRITE(numout,*) 
     139         ENDIF 
     140      ENDIF 
     141      ! 
     142      IF( .NOT. ln_neptsimp ) RETURN 
     143      !                                 ! Dynamically allocate local work arrays 
     144      CALL wrk_alloc( jpi, jpj     , ht, htn, tscale, tsp, hur_n, hvr_n, hu_n, hv_n  )  
     145      CALL wrk_alloc( jpi, jpj, jpk, znmask                                          )  
    148146 
    149147      IF( ln_smooth_neptvel ) THEN 
     
    151149      ELSE 
    152150         IF(lwp) WRITE(numout,*) ' -->   neptune velocities will not be smoothed' 
    153       ENDIF 
    154  
    155       IF( ln_neptsimp ) THEN 
    156           IF(lwp) WRITE(numout,*) ' -->   ln_neptsimp enabled, solving for U-UN' 
    157       ELSE 
    158           IF(lwp) WRITE(numout,*) ' -->   ln_neptsimp disabled' 
    159           RETURN 
    160151      ENDIF 
    161152 
Note: See TracChangeset for help on using the changeset viewer.