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 5841 for branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/MEDUSA/trcopt_medusa.F90 – NEMO

Ignore:
Timestamp:
2015-10-30T12:48:06+01:00 (8 years ago)
Author:
jpalmier
Message:

JPALM --30-10-2015-- Add MOCSY and DMS to MEDUSA-NEMO3.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/MEDUSA/trcopt_medusa.F90

    r5726 r5841  
    7373      ! determination of surface irradiance 
    7474      ! ----------------------------------- 
    75       zpar0m (:,:)   = qsr   (:,:) * 0.43 
     75      ! AXY (23/07/15): the inclusion of empirical DMS calculations requires 
     76      !                 daily averages of a series of properties that are 
     77      !                 used as inputs; these include surface irradiance;  
     78      !                 here, this is taken advantage of to allow MEDUSA to 
     79      !                 base its submarine light field on daily average 
     80      !                 rather than "instantaneous" irradiance; largely 
     81      !                 because MEDUSA was originally formulated to work 
     82      !                 with diel average irradiance rather than a diel 
     83      !                 cycle; using key_avgqsr_medusa activates this 
     84      !                 functionality, while its absence gives default 
     85      !                 MEDUSA (which is whatever is supplied by NEMO) 
     86# if defined key_avgqsr_medusa 
     87      ! surface irradiance input is rolling average irradiance 
     88      zpar0m (:,:)   = zn_dms_qsr(:,:) * 0.43 
     89# else       
     90      ! surface irradiance input is   instantaneous irradiance 
     91      zpar0m (:,:)   =        qsr(:,:) * 0.43 
     92# endif 
    7693      ! AXY (22/08/14): when zpar0m = 0, zpar100 is also zero and calculating  
    7794      !                 euphotic depth is not possible (cf. the Arctic Octopus);  
     
    92109      zparr  (:,:,1) = 0.5 * zpar0m(:,:) 
    93110      zparg  (:,:,1) = 0.5 * zpar0m(:,:) 
    94  
    95111 
    96112      ! determination of xpar 
     
    146162      ENDDO  
    147163 
    148  
    149164      IF(ln_ctl)   THEN  ! print mean trends (used for debugging) 
    150165         WRITE(charout, FMT="('opt')") 
Note: See TracChangeset for help on using the changeset viewer.