/[MITgcm]/MITgcm/verification/solid-body.cs-32x32x1/code/ini_psurf.F
ViewVC logotype

Contents of /MITgcm/verification/solid-body.cs-32x32x1/code/ini_psurf.F

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


Revision 1.1 - (show annotations) (download)
Tue Jul 31 18:30:55 2001 UTC (22 years, 8 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, release1_p13_pre, checkpoint50c_post, checkpoint46f_post, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint51o_pre, release1_p13, checkpoint51l_post, checkpoint48i_post, checkpoint40pre9, checkpoint40pre8, checkpoint46l_pre, checkpoint50d_pre, chkpt44d_post, checkpoint51, checkpoint50, release1_p8, release1_p9, checkpoint50d_post, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, checkpoint50b_pre, checkpoint44e_pre, checkpoint51f_post, release1_b1, checkpoint48b_post, checkpoint43, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51n_post, release1_chkpt44d_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, release1-branch_tutorials, checkpoint48f_post, checkpoint45d_post, checkpoint46j_pre, checkpoint51l_pre, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, checkpoint46b_pre, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint44e_post, release1_p12, release1_p10, release1_p11, release1_p16, release1_p17, release1_p14, release1_p15, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint46e_pre, checkpoint48c_post, checkpoint45b_post, checkpoint51i_post, release1-branch-end, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, release1_p12_pre, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint40pre5, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, checkpoint46e_post, release1_beta1, checkpoint51e_post, checkpoint44b_pre, checkpoint42, checkpoint40, checkpoint41, checkpoint47, checkpoint44, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51o_post, checkpoint51f_pre, chkpt44c_post, checkpoint47h_post, checkpoint44f_pre, checkpoint51g_post, checkpoint46d_post, checkpoint50b_post, release1-branch_branchpoint, checkpoint51m_post, checkpoint51a_post, checkpoint48g_post
Branch point for: branch-exfmods-curt, release1_final, release1-branch, branch-genmake2, release1, tg2-branch, release1_50yr, checkpoint51n_branch, release1_coupled
Solid-body rotation test (Williamson JCP '92: tests 1 & 2)

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_psurf.F,v 1.3 2001/03/06 16:51:02 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE INI_PSURF( myThid )
8 C /==========================================================\
9 C | SUBROUTINE INI_PSURF |
10 C | o Set model initial free-surface height/pressure. |
11 C |==========================================================|
12 C | There are several options for setting the initial |
13 C | surface displacement (r unit) field. |
14 C | 1. Inline code |
15 C | 2. Two-dimensional data from a file. |
16 C \==========================================================/
17 IMPLICIT NONE
18
19 C === Global variables ===
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "GRID.h"
24 #include "DYNVARS.h"
25
26 C == Routine arguments ==
27 C myThid - Number of this instance of INI_PSURF
28 INTEGER myThid
29 CEndOfInterface
30
31 C == Local variables ==
32 C bi,bj - Loop counters
33 C I,J
34 INTEGER bi, bj
35 INTEGER I, J
36 _RL omegaprime,fac
37
38 C-- Initialise surface position anomaly to zero
39 omegaprime=38.60328935834681d0/rSphere
40 fac=-(rSphere**2)*omegaprime*(Omega+omegaprime)/(4.d0*(Omega**2))
41 DO bj = myByLo(myThid), myByHi(myThid)
42 DO bi = myBxLo(myThid), myBxHi(myThid)
43 DO J=1-Oly,sNy+Oly
44 DO I=1-Olx,sNx+Olx
45 etaN(I,J,bi,bj) = 0. +fac*(fCori(i,j,bi,bj)**2)
46 ENDDO
47 ENDDO
48 ENDDO
49 ENDDO
50 C Read an initial state
51 IF (pSurfInitFile .NE. ' ') THEN
52 _BEGIN_MASTER( myThid )
53 CALL READ_FLD_XY_RL( pSurfInitFile, ' ', etaN, 0, myThid )
54 _END_MASTER(myThid)
55 ENDIF
56 C
57 _EXCH_XY_R8(etaN, myThid)
58
59 #ifdef INCLUDE_CD_CODE
60 C-- By default, initialize etaNm1 with etaN :
61 DO bj=myByLo(myThid),myByHi(myThid)
62 DO bi=myBxLo(myThid),myBxHi(myThid)
63 DO J=1-Oly,sNy+Oly
64 DO I=1-Olx,sNx+Olx
65 etaNm1(I,J,bi,bj) = etaN(I,J,bi,bj)
66 ENDDO
67 ENDDO
68 ENDDO
69 ENDDO
70
71 C _EXCH_XY_R8(etaNm1, myThid)
72 #endif
73
74 RETURN
75 END

  ViewVC Help
Powered by ViewVC 1.1.22