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.
sedsfc.F90 in NEMO/trunk/src/TOP/PISCES/SED – NEMO

source: NEMO/trunk/src/TOP/PISCES/SED/sedsfc.F90 @ 12511

Last change on this file since 12511 was 12377, checked in by acc, 4 years ago

The big one. Merging all 2019 developments from the option 1 branch back onto the trunk.

This changeset reproduces 2019/dev_r11943_MERGE_2019 on the trunk using a 2-URL merge
onto a working copy of the trunk. I.e.:

svn merge --ignore-ancestry \

svn+ssh://acc@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/trunk \
svn+ssh://acc@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/branches/2019/dev_r11943_MERGE_2019 ./

The --ignore-ancestry flag avoids problems that may otherwise arise from the fact that
the merge history been trunk and branch may have been applied in a different order but
care has been taken before this step to ensure that all applicable fixes and updates
are present in the merge branch.

The trunk state just before this step has been branched to releases/release-4.0-HEAD
and that branch has been immediately tagged as releases/release-4.0.2. Any fixes
or additions in response to tickets on 4.0, 4.0.1 or 4.0.2 should be done on
releases/release-4.0-HEAD. From now on future 'point' releases (e.g. 4.0.2) will
remain unchanged with periodic releases as needs demand. Note release-4.0-HEAD is a
transitional naming convention. Future full releases, say 4.2, will have a release-4.2
branch which fulfills this role and the first point release (e.g. 4.2.0) will be made
immediately following the release branch creation.

2020 developments can be started from any trunk revision later than this one.

  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[3443]1MODULE sedsfc
2   !!======================================================================
3   !!              ***  MODULE  sedsfc  ***
4   !!    Sediment : Data at sediment surface
5   !!=====================================================================
6   !! * Modules used
7   USE sed     ! sediment global variable
8   USE sedarr
9   USE seddta
10
11   PUBLIC sed_sfc
12
[12377]13   !! * Substitutions
14#  include "do_loop_substitute.h90"
[5215]15   !! $Id$
[3443]16CONTAINS
17
[12377]18   SUBROUTINE sed_sfc( kt, Kbb )
[3443]19      !!---------------------------------------------------------------------
20      !!                  ***  ROUTINE sed_sfc ***
21      !!
22      !! ** Purpose :  Give data from sediment model to tracer model
23      !!
24      !!
25      !!   History :
26      !!        !  06-04 (C. Ethe)  Orginal code
27      !!----------------------------------------------------------------------
28      !!* Arguments
29      INTEGER, INTENT(in) ::  kt              ! time step
[12377]30      INTEGER, INTENT(in) ::  Kbb             ! time index
[3443]31
32      ! * local variables
33      INTEGER :: ji, jj, ikt     ! dummy loop indices
34
35      !------------------------------------------------------------------------
[10222]36      ! reading variables
[3443]37
[10222]38      IF( ln_timing )  CALL timing_start('sed_sfc')
[3443]39
40      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,1), iarroce(1:jpoce), pwcp(1:jpoce,1,jwalk) )
41      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,2), iarroce(1:jpoce), pwcp(1:jpoce,1,jwdic) )
42      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,3), iarroce(1:jpoce), pwcp(1:jpoce,1,jwno3) )
43      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,4), iarroce(1:jpoce), pwcp(1:jpoce,1,jwpo4) )
44      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,5), iarroce(1:jpoce), pwcp(1:jpoce,1,jwoxy) )
45      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,6), iarroce(1:jpoce), pwcp(1:jpoce,1,jwsil) )
[10222]46      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,7), iarroce(1:jpoce), pwcp(1:jpoce,1,jwnh4) )
47      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,8), iarroce(1:jpoce), pwcp(1:jpoce,1,jwfe2) )
[3443]48
49
[12377]50      DO_2D_11_11
51         ikt = mbkt(ji,jj)
52         IF ( tmask(ji,jj,ikt) == 1 ) THEN
53            tr(ji,jj,ikt,jptal,Kbb) = trc_data(ji,jj,1)
54            tr(ji,jj,ikt,jpdic,Kbb) = trc_data(ji,jj,2)
55            tr(ji,jj,ikt,jpno3,Kbb) = trc_data(ji,jj,3) * 7.625
56            tr(ji,jj,ikt,jppo4,Kbb) = trc_data(ji,jj,4) * 122.
57            tr(ji,jj,ikt,jpoxy,Kbb) = trc_data(ji,jj,5)
58            tr(ji,jj,ikt,jpsil,Kbb) = trc_data(ji,jj,6)
59            tr(ji,jj,ikt,jpnh4,Kbb) = trc_data(ji,jj,7) * 7.625
60            tr(ji,jj,ikt,jpfer,Kbb) = trc_data(ji,jj,8)
61         ENDIF
62      END_2D
[3443]63
[10222]64      IF( ln_timing )  CALL timing_stop('sed_sfc')
[3443]65
66   END SUBROUTINE sed_sfc
67
68END MODULE sedsfc
Note: See TracBrowser for help on using the repository browser.