/[MITgcm]/MITgcm_contrib/darwin2/pkg/darwin/darwin_init_vari.F
ViewVC logotype

Annotation of /MITgcm_contrib/darwin2/pkg/darwin/darwin_init_vari.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Wed Dec 4 21:19:12 2013 UTC (11 years, 7 months ago) by jahn
Branch: MAIN
Changes since 1.4: +13 -9 lines
only master cpu/thread writes

1 jahn 1.5 C $Header: /u/gcmpack/MITgcm_contrib/darwin2/pkg/darwin/darwin_init_vari.F,v 1.4 2011/12/07 20:04:00 jahn Exp $
2 stephd 1.2 C $Name: $
3 jahn 1.1
4     #include "DARWIN_OPTIONS.h"
5    
6     C !INTERFACE: ==========================================================
7     SUBROUTINE DARWIN_INIT_VARI(myThid )
8    
9     C !DESCRIPTION:
10     C calls subroutines that initialize any time dependent variables
11     C for any tracer experiment
12    
13     C !USES: ===============================================================
14     IMPLICIT NONE
15    
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18     #include "DARWIN_SIZE.h"
19     #include "DARWIN_IO.h"
20    
21     C !INPUT PARAMETERS: ===================================================
22     C myThid :: thread number
23     INTEGER myThid
24     CEOP
25    
26     #ifdef ALLOW_DARWIN
27    
28 jahn 1.5 C !FUNCTIONS: ==========================================================
29     LOGICAL MASTER_CPU_THREAD
30     EXTERNAL MASTER_CPU_THREAD
31    
32     C !LOCAL VARIABLES: ====================================================
33     INTEGER i,j,bi,bj
34 jahn 1.1
35     c set up ecosystem coefficients
36     c
37     c seed randomization
38 jahn 1.4 _BEGIN_MASTER( myThid )
39 jahn 1.1 CALL DARWIN_RANDOM_INIT(darwin_seed, myThid)
40 jahn 1.4 _END_MASTER( myThid )
41 jahn 1.1
42     #ifdef ALLOW_QUOTA
43     call QUOTA_INIT_VARI(myThid )
44     #endif
45    
46     #ifdef ALLOW_MONOD
47     call MONOD_INIT_VARI(myThid )
48     #endif
49    
50 stephd 1.2 #ifdef CALC_RATE_TOTALS
51     c find unused units for darwin_rate output
52 jahn 1.5 IF (MASTER_CPU_THREAD(myThid)) THEN
53     CALL MDSFINDUNIT( DAR_ratetot_unit, mythid )
54     open(DAR_ratetot_unit,file='darwin_ratetot.txt',status='unknown')
55 stephd 1.2 #ifdef ALLOW_CARBON
56 jahn 1.5 CALL MDSFINDUNIT( DAR_fluxtot_unit, mythid )
57     open(DAR_fluxtot_unit,file='darwin_fluxtot.txt',status='unknown')
58 stephd 1.2 #endif
59 jahn 1.5 ENDIF
60 stephd 1.2 #endif
61    
62 jahn 1.1 #endif /* ALLOW_DARWIN */
63    
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22