/[MITgcm]/MITgcm/pkg/fizhi/fizhi_alarms.F
ViewVC logotype

Contents of /MITgcm/pkg/fizhi/fizhi_alarms.F

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


Revision 1.13 - (show annotations) (download)
Wed Apr 1 19:55:07 2009 UTC (15 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint62, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, HEAD
Changes since 1.12: +17 -27 lines
remove unnecessary MPI stuff

1 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_alarms.F,v 1.12 2005/03/08 19:54:26 molod Exp $
2 C $Name: $
3
4 #include "FIZHI_OPTIONS.h"
5 subroutine fizhi_alarms (nymdb,nhmsb,deltaT)
6
7 C***********************************************************************
8 C Purpose
9 C -------
10 C Driver to Set Internal Model Alarms
11 C
12 C Argument Description
13 C --------------------
14 C nymdb ..... Begining Date to Start Alarm Clock
15 C nhmsb ..... Begining Time to Start Alarm Clock
16 C ndt ....... Model Timestep
17 C
18 C Note: For ndt = 0, all Intermal Model Alarms are set to 1 second
19 C
20 C***********************************************************************
21 implicit none
22
23 c Input Parameters
24 c ----------------
25 integer nymdb,nhmsb
26 _RL deltaT
27
28 integer myid
29
30 c Physics Frequencies
31 c -------------------
32 integer ndt
33 integer nhmsf, m,n, nd
34 integer ndlw, ndsw, ndturb, ndmoist
35
36 myid = 1
37
38 ndt = deltaT
39
40 if( ndt.ne.0 ) then
41
42 C Longwave Radiation Frequency
43 ndlw = 003000
44 C Shortwave Radiation Frequency
45 ndsw = 003000
46
47 c Turbulence
48 c ----------
49 ndturb = 2*int( max(1.0,(300./iabs(ndt)+0.5)/2) ) * iabs(ndt)
50
51 n = 1
52 m = -1
53 nd = ndturb
54 do while ( mod(3*3600,nd).ne.0 )
55 nd = ndturb + 2*n*m*ndt
56 m = -m
57 n = n+1
58 if( nd.lt.ndt ) then
59 if( myid.eq.1 ) then
60 print *
61 print *, 'Turbulence cannot occur with Model Timestep = ',ndt
62 print *
63 endif
64 call my_finalize
65 call my_exit (101)
66 endif
67 enddo
68 ndturb = nhmsf( nd )
69
70 c Moist Processes
71 c ---------------
72 ndmoist = int( 600./iabs(ndt) + 0.5 ) * iabs(ndt)
73
74 n = 1
75 m = -1
76 nd = ndmoist
77 do while ( mod(3*3600,nd).ne.0 )
78 nd = ndmoist + n*m*ndt
79 m = -m
80 n = n+1
81 if( nd.lt.ndt ) then
82 if( myid.eq.1 ) then
83 print *
84 print *, 'Convection cannot occur with Model Timestep = ',ndt
85 print *
86 endif
87 call my_finalize
88 call my_exit (101)
89 endif
90 enddo
91 ndmoist = nhmsf( nd )
92
93 else
94
95 c For NDT = 0, all Alarms set to 1 second
96 c ---------------------------------------
97 C Longwave Radiation Frequency
98 ndlw = 000001
99 C Shortwave Radiation Frequency
100 ndsw = 000001
101 C Turbulence Frequency
102 ndturb = 000001
103 C Moist Processes Frequency
104 ndmoist = 000001
105
106 endif
107
108 c Set Alarm Clocks
109 c ----------------
110
111 call set_alarm ( 'radsw',nymdb,nhmsb,ndsw )
112 call set_alarm ( 'radlw',nymdb,nhmsb,ndlw )
113 call set_alarm ( 'turb' ,nymdb,nhmsb,ndturb )
114 call set_alarm ( 'moist',nymdb,nhmsb,ndmoist )
115 call set_alarm ( 'pnt',nymdb,nhmsb,0 )
116
117 return
118 end

  ViewVC Help
Powered by ViewVC 1.1.22