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.
istate.F90 in trunk/NEMO/OFF_SRC – NEMO

source: trunk/NEMO/OFF_SRC/istate.F90 @ 342

Last change on this file since 342 was 325, checked in by opalod, 19 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1MODULE istate
2   !!======================================================================
3   !!                     ***  MODULE  istate  ***
4   !! Ocean state   :  initial state setting
5   !!=====================================================================
6
7   !!----------------------------------------------------------------------
8   !!   istate_init   : initial state setting
9   !!----------------------------------------------------------------------
10   !! * Modules used
11   USE oce             ! ocean dynamics and active tracers
12   USE dom_oce         ! ocean space and time domain
13   USE daymod          !
14   USE ldftra_oce      ! ocean active tracers: lateral physics
15   USE zdf_oce         ! ocean vertical physics
16   USE in_out_manager  ! I/O manager
17   USE phycst          ! physical constants
18
19   IMPLICIT NONE
20   PRIVATE
21
22   !! * Routine accessibility
23   PUBLIC istate_init   ! routine called by step.F90
24
25   !! * Substitutions
26#  include "domzgr_substitute.h90"
27#  include "vectopt_loop_substitute.h90"
28   !!----------------------------------------------------------------------
29   !!   OPA 9.0 , LODYC-IPSL  (2003)
30   !!----------------------------------------------------------------------
31
32CONTAINS
33
34   SUBROUTINE istate_init
35      !!----------------------------------------------------------------------
36      !!                   ***  ROUTINE istate_init  ***
37      !!
38      !! ** Purpose :   Initialization of the dynamics and tracers.
39      !!
40      !! ** Method  :
41      !!
42      !! History :
43      !!   4.0  !  91-03  ()  Original code
44      !!        !  91-11  (G. Madec)
45      !!   9.0  !  03-09  (G. Madec)  F90: Free form, modules, orthogonality
46      !!----------------------------------------------------------------------
47      !! * Local declarations
48      !!----------------------------------------------------------------------
49
50
51      ! Initialization to zero
52      ! ----------------------
53
54      !     before fields       !       now fields        !      after fields       !
55      ;   un   (:,:,:) = 0.e0   ;   ua   (:,:,:) = 0.e0
56      ;   vn   (:,:,:) = 0.e0   ;   va   (:,:,:) = 0.e0
57      ;                         ;   wn   (:,:,:) = 0.e0   
58      ;   hdivn(:,:,:) = 0.e0   ;
59
60      ;   tn   (:,:,:) = 0.e0   ;   ta   (:,:,:) = 0.e0
61      ;   sn   (:,:,:) = 0.e0   ;   sa   (:,:,:) = 0.e0
62
63      rhd  (:,:,:) = 0.e0
64      rhop (:,:,:) = 0.e0
65      rn2  (:,:,:) = 0.e0 
66
67
68   END SUBROUTINE istate_init
69
70   !!=====================================================================
71END MODULE istate
Note: See TracBrowser for help on using the repository browser.