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 7552 for branches/UKMO/dev_r5518_pcbias_ipc/NEMOGCM/NEMO/OPA_SRC/ASM/bias.F90 – NEMO

Ignore:
Timestamp:
2017-01-13T09:14:12+01:00 (7 years ago)
Author:
isabella
Message:

added one switch ln_incpc_only to enable selection of IPC scheme only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_pcbias_ipc/NEMOGCM/NEMO/OPA_SRC/ASM/bias.F90

    r7328 r7552  
    226226         & cn_bias_tot, cn_bias_asm, cn_dir, sn_tbias_ofl, sn_sbias_ofl,  & 
    227227         & ln_bsyncro, fctamp, rn_maxlat_bias, rn_minlat_bias,            & 
    228          & nn_bias_itwrt, ln_itdecay, ln_incpc, ztscale, zwgt 
     228         & nn_bias_itwrt, ln_itdecay, ln_incpc,ln_incpc_only, ztscale, zwgt 
    229229  
    230230 
     
    286286    WRITE(numout,*) '     evolve pcbias at each timestep ln_itdecay     = ',ln_itdecay 
    287287    WRITE(numout,*) '     incremental press. correction  ln_incpc       = ',ln_incpc 
     288    WRITE(numout,*) '     incremental press. correction only  ln_incpc_only       = ',ln_incpc_only 
    288289    WRITE(numout,*) '     incremental press. correction  zwgt           = ',zwgt 
    289290    WRITE(numout,*) '     incremental press. correction  ztscale        = ',ztscale 
     
    312313         IF ( (.NOT. ln_itdecay) .AND. ln_incpc) &    
    313314            &   CALL ctl_stop (' if you set ln_incpc to .true. then you need to set ln_itdecay to .true. as well' ) 
     315 
     316         IF ( (.NOT. ln_incpc) .AND. ln_incpc_only) &    
     317            &   CALL ctl_stop (' if you set ln_incpc_only to .true. then you need to set ln_incpc to .true. as well' ) 
    314318 
    315319      ENDIF 
     
    951955            tsw(:,:,:,jp_tem) = tsa(:,:,:,jp_tem) - tbias_p(:,:,:) - tbias_i(:,:,:) 
    952956            tsw(:,:,:,jp_sal) = tsa(:,:,:,jp_sal) - sbias_p(:,:,:) - sbias_i(:,:,:) 
     957            IF ( ln_incpc_only ) THEN 
     958               tsw(:,:,:,jp_tem) = tsa(:,:,:,jp_tem) - tbias_i(:,:,:) 
     959               tsw(:,:,:,jp_sal) = tsa(:,:,:,jp_sal) - sbias_i(:,:,:) 
     960            ENDIF 
    953961         ENDIF 
    954962      ELSE 
     
    958966            tsw(:,:,:,jp_tem) = tsb(:,:,:,jp_tem) - tbias_p(:,:,:) - tbias_i(:,:,:) 
    959967            tsw(:,:,:,jp_sal) = tsb(:,:,:,jp_sal) - sbias_p(:,:,:) - sbias_i(:,:,:) 
     968            IF ( ln_incpc_only ) THEN 
     969               tsw(:,:,:,jp_tem) = tsb(:,:,:,jp_tem) - tbias_i(:,:,:) 
     970               tsw(:,:,:,jp_sal) = tsb(:,:,:,jp_sal) - sbias_i(:,:,:) 
     971            ENDIF 
    960972         ENDIF 
    961973      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.