-
Notifications
You must be signed in to change notification settings - Fork 1
/
darwin_forcing.F
51 lines (40 loc) · 1.46 KB
/
darwin_forcing.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
C $Header: /u/gcmpack/MITgcm_contrib/darwin2/pkg/darwin/darwin_forcing.F,v 1.1 2011/04/13 18:56:24 jahn Exp $
C $Name: $
#include "DARWIN_OPTIONS.h"
CBOP
C !ROUTINE: DARWIN_FORCING
C !INTERFACE: ==========================================================
SUBROUTINE DARWIN_FORCING(Ptr,
& bi,bj,imin,imax,jmin,jmax,
& myIter,myTime, myThid )
C !DESCRIPTION:
C !USES: ===============================================================
IMPLICIT NONE
#include "SIZE.h"
#include "PTRACERS_SIZE.h"
#include "PTRACERS_FIELDS.h"
#include "DARWIN_SIZE.h"
C !INPUT PARAMETERS: ===================================================
C myThid :: thread number
_RL Ptr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,nDarwin)
INTEGER bi,bj,imin,imax,jmin,jmax
INTEGER myThid, myIter
_RL myTime
c!LOCAL VARIABLES: ====================================================
CEOP
#ifdef ALLOW_DARWIN
#ifdef ALLOW_QUOTA
call QUOTA_Forcing( Ptr,
& bi,bj,imin,imax,jmin,jmax,
& myTime,myIter,myThid)
#endif /* ALLOW_QUOTA */
#ifdef ALLOW_MONOD
C darwin_forcing operates on bi,bj part only, but needs to get full
C array because of last (iPtr) index
call MONOD_Forcing( Ptr,
& bi,bj,imin,imax,jmin,jmax,
& myTime,myIter,myThid)
#endif /* ALLOW_MONOD */
#endif /* ALLOW_DARWIN */
RETURN
END