[325] | 1 | MODULE istate |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE istate *** |
---|
[2528] | 4 | !! Ocean state : initial state setting, off-line case |
---|
[325] | 5 | !!===================================================================== |
---|
[2528] | 6 | !! History : 3.3 ! 2010-10 (C. Ethe) original code |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
[325] | 8 | |
---|
| 9 | !!---------------------------------------------------------------------- |
---|
[2528] | 10 | !! istate_init : initial state set to zero |
---|
[325] | 11 | !!---------------------------------------------------------------------- |
---|
| 12 | USE oce ! ocean dynamics and active tracers |
---|
| 13 | USE dom_oce ! ocean space and time domain |
---|
[4569] | 14 | USE daymod ! calendar |
---|
[325] | 15 | |
---|
| 16 | IMPLICIT NONE |
---|
| 17 | PRIVATE |
---|
| 18 | |
---|
[2528] | 19 | PUBLIC istate_init ! routine called by step.F90 |
---|
[325] | 20 | |
---|
| 21 | !! * Substitutions |
---|
| 22 | # include "domzgr_substitute.h90" |
---|
| 23 | # include "vectopt_loop_substitute.h90" |
---|
| 24 | !!---------------------------------------------------------------------- |
---|
[2528] | 25 | !! NEMO/OFF 3.3 , NEMO Consortium (2010) |
---|
| 26 | !! $Id$ |
---|
| 27 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
| 28 | !!--------------------------------------------------------------------- |
---|
[325] | 29 | CONTAINS |
---|
| 30 | |
---|
| 31 | SUBROUTINE istate_init |
---|
| 32 | !!---------------------------------------------------------------------- |
---|
| 33 | !! *** ROUTINE istate_init *** |
---|
| 34 | !! |
---|
[2528] | 35 | !! ** Purpose : Initialization to zero of the dynamics and tracers. |
---|
[325] | 36 | !!---------------------------------------------------------------------- |
---|
[2528] | 37 | ! |
---|
| 38 | ! now fields ! after fields ! |
---|
| 39 | un (:,:,:) = 0._wp ; ua(:,:,:) = 0._wp ! |
---|
| 40 | vn (:,:,:) = 0._wp ; va(:,:,:) = 0._wp ! |
---|
| 41 | wn (:,:,:) = 0._wp ! ! |
---|
| 42 | hdivn(:,:,:) = 0._wp ! ! |
---|
| 43 | tsn (:,:,:,:) = 0._wp ! ! |
---|
| 44 | ! |
---|
[325] | 45 | rhd (:,:,:) = 0.e0 |
---|
| 46 | rhop (:,:,:) = 0.e0 |
---|
| 47 | rn2 (:,:,:) = 0.e0 |
---|
[2528] | 48 | ! |
---|
[4569] | 49 | CALL day_init ! model calendar (using both namelist and restart infos) |
---|
| 50 | |
---|
[325] | 51 | END SUBROUTINE istate_init |
---|
| 52 | |
---|
| 53 | !!===================================================================== |
---|
| 54 | END MODULE istate |
---|