source: trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/custom_user.inc @ 1580

Last change on this file since 1580 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

File size: 5.1 KB
Line 
1!---------------------------------------------
2!
3! custom_user.inc
4!
5! TOUTE MODIFICATION IMPLIQUE DE RECOMPILER
6! EN N'OUBLIANT PAS DE PRECEDER LA
7! COMPILATION DE :
8! "touch dyn_em/module_initialize_real.F"
9!
10!---------------------------------------------
11! cas où config_flags%adjust_heights est true
12!---------------------------------------------
13print *,  '**********************************'
14print *,  'PLEASE NOTE YOU ARE IN CUSTOM MODE'
15print *,  '**********************************'
16
17
18!!
19!! stuff for LES
20!!
21!
22!        print *, 'setting uniform values and profiles'
23!        print *, 'u'
24!        print *, grid%em_u_gc(its+1,:,jts+1)
25!        print *, 'v'
26!        print *, grid%em_v_gc(its+1,:,jts+1)
27!        print *, 't'
28!        print *, grid%em_t_gc(its+1,:,jts+1)
29!        print *, 'p'
30!        print *, grid%em_rh_gc(its+1,:,jts+1)
31!        print *, 'geop'
32!        print *, grid%em_ght_gc(its+1,:,jts+1)
33!        print *, 'albedo'
34!        print *, grid%u10(its+1,jts+1)
35!        print *, 'thermal inertia'
36!        print *, grid%v10(its+1,jts+1)
37!        print *, 'topography'
38!        print *, grid%ht(its+1,jts+1)
39!        print *, 'toposoil'
40!        print *, grid%toposoil(its+1,jts+1)
41!        print *, 'surface temperature'
42!        print *, grid%tsk(its+1,jts+1)
43!        print *, 'surface pressure'
44!        print *, grid%psfc(its+1,jts+1)
45!        print *, grid%em_psfc_gc(its+1,jts+1)
46!
47!        DO j = jts, MIN(jte,jde-1)
48!         DO i = its, MIN(ite,ide-1)
49!                grid%em_u_gc(i,:,j)=grid%em_u_gc(its+1,:,jts+1)
50!                grid%em_v_gc(i,:,j)=grid%em_v_gc(its+1,:,jts+1)
51!                grid%em_t_gc(i,:,j)=grid%em_t_gc(its+1,:,jts+1)
52!                grid%em_rh_gc(i,:,j)=grid%em_rh_gc(its+1,:,jts+1)
53!                grid%em_ght_gc(i,:,j) = grid%em_ght_gc(its+1,:,jts+1)
54!                grid%u10(i,j) = grid%u10(its+1,jts+1)
55!                grid%v10(i,j) = grid%v10(its+1,jts+1)
56!                grid%ht(i,j) = grid%ht(its+1,jts+1)
57!                grid%toposoil(i,j) = grid%toposoil(its+1,jts+1)
58!                grid%tsk(i,j) = grid%tsk(its+1,jts+1)
59!                grid%psfc(i,j) = grid%psfc(its+1,jts+1)
60!                grid%em_psfc_gc(i,j) = grid%em_psfc_gc(its+1,jts+1)
61!          ENDDO
62!        ENDDO
63!
64!!!
65!!!
66!print *, 'u divided by 10'
67!grid%em_u_gc=grid%em_u_gc/10.
68!grid%em_v_gc=grid%em_v_gc/10.
69!!!
70!!!
71
72
73!!****************************
74!! CONSTANT THERMAL INERTIA
75!!****************************
76print *, 'fixed thermal inertia'
77
78DO j = jts, MIN(jte,jde-1)
79DO i = its, MIN(ite,ide-1)
80
81       grid%v10(i,j) = 85.    ! thermal inertia
82
83ENDDO
84ENDDO
85
86
87
88
89!!!******************************
90!!! IDEALIZED CRATER SIMULATION
91!!!******************************
92!print *, 'fixed albedo, thermal inertia, zonal and meridional wind'
93!
94!DO j = jts, MIN(jte,jde-1)
95!DO i = its, MIN(ite,ide-1)
96!
97!       grid%u10(i,j) = 0.19    ! albedo
98!       grid%v10(i,j) = 315.    ! thermal inertia
99!
100!       !! INPUT: LIKE A "SOUNDING"
101!       grid%em_u_gc(i,:,j)=grid%em_u_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))     ! zonal wind
102!       grid%em_v_gc(i,:,j)=0.
103!!!grid%em_v_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))      ! meridional wind
104!       !! INPUT: LIKE A "SOUNDING"
105!
106!ENDDO
107!ENDDO
108!
109!!!!!INVERSE WIND
110!!!grid%em_u_gc = -grid%em_u_gc
111!
112!
113!!! FIX for the STAGGERED SPECIFICITY
114!grid%em_u_gc(MIN(ite,ide-1)+1,:,:)=grid%em_u_gc(MIN(ite,ide-1),:,:)
115!grid%em_v_gc(:,:,MIN(jte,jde-1)+1)=grid%em_v_gc(:,:,MIN(jte,jde-1))
116!
117!
118!!! CHECK
119!print *, 'wind profile'
120!print *, 'took at ...', int((MIN(ite,ide-1)-its)/2), int((MIN(jte,jde-1)-jts)/2)
121!print *, '--zonal'
122!print *, grid%em_u_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))
123!print *, '--meridional'
124!print *, grid%em_v_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))
125!
126
127!!
128!! Later, sigma levels are changed to avoid extrapolation
129!! ... so no change in the pressure arrays is needed
130!!
131
132
133
134!!grid%u10 = grid%u10*0. + 0.19 ! albedo
135!!grid%v10 = grid%v10*0. + 315. ! thermal inertia
136!!grid%em_u_gc = grid%em_u_gc*0. - 15.  ! zonal wind
137!!grid%em_v_gc = grid%em_v_gc*0.                ! meridional wind
138!!
139!!grid%em_u_gc(:,1,:)=0.
140!!grid%em_v_gc(:,1,:)=0.
141
142
143!! TEST TRACERS
144!grid%scalar(its+10,1:10,jts+10,:)=10.
145
146
147!!!!!!!!!!!!!!!!!!!
148!!! READ PROFILE !!
149!!!!!!!!!!!!!!!!!!!
150!
151!open(unit=10,file='input_sounding',form='formatted',status='old')
152!rewind(10)
153!read(10,*) grid%em_u_gc(1,:,1)
154!
155!DO j = jts, MIN(jte,jde-1)
156!DO i = its, MIN(ite,ide-1)
157!
158!!!        grid%u10(i,j) = 0.19    ! albedo
159!!!        grid%v10(i,j) = 315.    ! thermal inertia
160!
161!        grid%u10(i,j) = 0.29    ! albedo
162!        grid%v10(i,j) = 100.    ! thermal inertia
163!
164!        grid%em_u_gc(i,:,j)=grid%em_u_gc(1,:,1)     ! zonal wind
165!        grid%em_v_gc(i,:,j)=0.                     ! meridional wind
166!
167!ENDDO
168!ENDDO
169!
170!
171!!! FIX for the STAGGERED SPECIFICITY
172!grid%em_u_gc(MIN(ite,ide-1)+1,:,:)=grid%em_u_gc(MIN(ite,ide-1),:,:)
173!grid%em_v_gc(:,:,MIN(jte,jde-1)+1)=grid%em_v_gc(:,:,MIN(jte,jde-1))
174!
175!
176!print *, 'wind profile'
177!print *, '--zonal'
178!print *, grid%em_u_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))
179!print *, '--meridional'
180!print *, grid%em_v_gc(int((MIN(ite,ide-1)-its)/2),:,int((MIN(jte,jde-1)-jts)/2))
181
182
183
184
Note: See TracBrowser for help on using the repository browser.