PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
mode_shuman_phy.F90
Go to the documentation of this file.
2
3!$ACDC singlecolumn
4
5IMPLICIT NONE
6CONTAINS
7! ###############################
8 SUBROUTINE myf_phy(D,PA,PMYF)
9 USE yomhook , ONLY : lhook, dr_hook, jphook
10! ###############################
11!
12!!**** *MYF* - Shuman operator : mean operator in y direction for a
13!! variable at a flux side
14!!
15!! PURPOSE
16!! -------
17! The purpose of this function is to compute a mean
18! along the y direction (J index) for a field PA localized at a y-flux
19! point (v point). The result is localized at a mass point.
20!
21!!** METHOD
22!! ------
23!! The result PMYF(i,:,:) is defined by 0.5*(PA(:,j,:)+PA(:,j+1,:))
24!! At j=size(PA,2), PMYF(:,j,:) are replaced by the values of PMYF,
25!! which are the right values in the y-cyclic case
26!!
27!!
28!! EXTERNAL
29!! --------
30!! NONE
31!!
32!! IMPLICIT ARGUMENTS
33!! ------------------
34!! Module MODD_PARAMETERS: declaration of parameter variables
35!! JPHEXT: define the number of marginal points out of the
36!! physical domain along the horizontal directions.
37!!
38!! REFERENCE
39!! ---------
40!! Book2 of documentation of Meso-NH (SHUMAN operators)
41!! Technical specifications Report of The Meso-NH (chapters 3)
42!!
43!!
44!! AUTHOR
45!! ------
46!! V. Ducrocq * Meteo France *
47!!
48!! MODIFICATIONS
49!! -------------
50!! Original 04/07/94
51!! Modification to include the periodic case 13/10/94 J.Stein
52!-------------------------------------------------------------------------------
53!
54!* 0. DECLARATIONS
55! ------------
56!
57!
58!
60IMPLICIT NONE
61!
62!* 0.1 Declarations of argument and result
63! ------------------------------------
64!
65TYPE(dimphyex_t), INTENT(IN) :: D
66REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: PA ! variable at mass localization
67REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: PMYF ! result at flux localization
68!
69! 1. DEFINITION OF MYF
70! ------------------
71!
72REAL(KIND=jphook) :: zhook_handle
73IF (lhook) CALL dr_hook('MYF',0,zhook_handle)
74
75!POUR AROME
76!
77pmyf=pa
78!
79IF (lhook) CALL dr_hook('MYF',1,zhook_handle)
80END SUBROUTINE myf_phy
81!
82! ###############################
83 SUBROUTINE myf2d_phy(D,PA,PMYF)
84 USE yomhook , ONLY : lhook, dr_hook, jphook
85! ###############################
86!
87!!**** *MYF* - Shuman operator : mean operator in y direction for a
88!! variable at a flux side
89!!
90!! PURPOSE
91!! -------
92! The purpose of this function is to compute a mean
93! along the y direction (J index) for a field PA localized at a y-flux
94! point (v point). The result is localized at a mass point.
95!
96!!** METHOD
97!! ------
98!! The result PMYF(i,:,:) is defined by 0.5*(PA(:,j,:)+PA(:,j+1,:))
99!! At j=size(PA,2), PMYF(:,j,:) are replaced by the values of PMYF,
100!! which are the right values in the y-cyclic case
101!!
102!!
103!! EXTERNAL
104!! --------
105!! NONE
106!!
107!! IMPLICIT ARGUMENTS
108!! ------------------
109!! Module MODD_PARAMETERS: declaration of parameter variables
110!! JPHEXT: define the number of marginal points out of the
111!! physical domain along the horizontal directions.
112!!
113!! REFERENCE
114!! ---------
115!! Book2 of documentation of Meso-NH (SHUMAN operators)
116!! Technical specifications Report of The Meso-NH (chapters 3)
117!!
118!!
119!! AUTHOR
120!! ------
121!! V. Ducrocq * Meteo France *
122!!
123!! MODIFICATIONS
124!! -------------
125!! Original 04/07/94
126!! Modification to include the periodic case 13/10/94 J.Stein
127!-------------------------------------------------------------------------------
128!
129!* 0. DECLARATIONS
130! ------------
131!
132!
133!
134USE modd_dimphyex, ONLY: dimphyex_t
135IMPLICIT NONE
136!
137!* 0.1 Declarations of argument and result
138! ------------------------------------
139!
140TYPE(dimphyex_t), INTENT(IN) :: d
141REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass localization
142REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pmyf ! result at flux localization
143!
144! 1. DEFINITION OF MYF
145! ------------------
146!
147REAL(kind=jphook) :: zhook_handle
148IF (lhook) CALL dr_hook('MYF',0,zhook_handle)
149
150!POUR AROME
151!
152pmyf=pa
153!
154IF (lhook) CALL dr_hook('MYF',1,zhook_handle)
155END SUBROUTINE myf2d_phy
156!
157! ###############################
158 SUBROUTINE mym2d_phy(D,PA,PMYM)
159 USE yomhook , ONLY : lhook, dr_hook, jphook
160! ###############################
161!
162!!**** *MYM* - Shuman operator : mean operator in y direction for a
163!! mass variable
164!!
165!! PURPOSE
166!! -------
167! The purpose of this function is to compute a mean
168! along the y direction (J index) for a field PA localized at a mass
169! point. The result is localized at a y-flux point (v point).
170!
171!!** METHOD
172!! ------
173!! The result PMYM(:,j,:) is defined by 0.5*(PA(:,j,:)+PA(:,j-1,:))
174!! At j=1, PMYM(:,j,:) are replaced by the values of PMYM,
175!! which are the right values in the y-cyclic case.
176!!
177!!
178!! EXTERNAL
179!! --------
180!! NONE
181!!
182!! IMPLICIT ARGUMENTS
183!! ------------------
184!! Module MODD_PARAMETERS: declaration of parameter variables
185!! JPHEXT: define the number of marginal points out of the
186!! physical domain along the horizontal directions.
187!!
188!! REFERENCE
189!! ---------
190!! Book2 of documentation of Meso-NH (SHUMAN operators)
191!! Technical specifications Report of The Meso-NH (chapters 3)
192!!
193!!
194!! AUTHOR
195!! ------
196!! V. Ducrocq * Meteo France *
197!!
198!! MODIFICATIONS
199!! -------------
200!! Original 04/07/94
201!! Modification to include the periodic case 13/10/94 J.Stein
202!-------------------------------------------------------------------------------
203!
204!* 0. DECLARATIONS
205! ------------
206!
207!
208USE modd_dimphyex, ONLY: dimphyex_t
209IMPLICIT NONE
210!
211!* 0.1 Declarations of argument and result
212! ------------------------------------
213!
214TYPE(dimphyex_t), INTENT(IN) :: d
215REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass localization
216REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pmym ! result at flux localization
217!
218REAL(kind=jphook) :: zhook_handle
219IF (lhook) CALL dr_hook('MYM',0,zhook_handle)
220
221!POUR AROME
222
223pmym=pa
224
225!-------------------------------------------------------------------------------
226!
227IF (lhook) CALL dr_hook('MYM',1,zhook_handle)
228END SUBROUTINE mym2d_phy
229! ###############################
230 SUBROUTINE mym_phy(D,PA,PMYM)
231 USE yomhook , ONLY : lhook, dr_hook, jphook
232! ###############################
233!
234!!**** *MYM* - Shuman operator : mean operator in y direction for a
235!! mass variable
236!!
237!! PURPOSE
238!! -------
239! The purpose of this function is to compute a mean
240! along the y direction (J index) for a field PA localized at a mass
241! point. The result is localized at a y-flux point (v point).
242!
243!!** METHOD
244!! ------
245!! The result PMYM(:,j,:) is defined by 0.5*(PA(:,j,:)+PA(:,j-1,:))
246!! At j=1, PMYM(:,j,:) are replaced by the values of PMYM,
247!! which are the right values in the y-cyclic case.
248!!
249!!
250!! EXTERNAL
251!! --------
252!! NONE
253!!
254!! IMPLICIT ARGUMENTS
255!! ------------------
256!! Module MODD_PARAMETERS: declaration of parameter variables
257!! JPHEXT: define the number of marginal points out of the
258!! physical domain along the horizontal directions.
259!!
260!! REFERENCE
261!! ---------
262!! Book2 of documentation of Meso-NH (SHUMAN operators)
263!! Technical specifications Report of The Meso-NH (chapters 3)
264!!
265!!
266!! AUTHOR
267!! ------
268!! V. Ducrocq * Meteo France *
269!!
270!! MODIFICATIONS
271!! -------------
272!! Original 04/07/94
273!! Modification to include the periodic case 13/10/94 J.Stein
274!-------------------------------------------------------------------------------
275!
276!* 0. DECLARATIONS
277! ------------
278!
279!
280USE modd_dimphyex, ONLY: dimphyex_t
281IMPLICIT NONE
282!
283!* 0.1 Declarations of argument and result
284! ------------------------------------
285!
286TYPE(dimphyex_t), INTENT(IN) :: d
287REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at mass localization
288REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pmym ! result at flux localization
289!
290!* 0.2 Declarations of local variables
291! -------------------------------
292!
293!
294!-------------------------------------------------------------------------------
295!
296!* 1. DEFINITION OF MYM
297! ------------------
298!
299REAL(kind=jphook) :: zhook_handle
300IF (lhook) CALL dr_hook('MYM',0,zhook_handle)
301
302!POUR AROME
303
304pmym=pa
305
306!-------------------------------------------------------------------------------
307!
308IF (lhook) CALL dr_hook('MYM',1,zhook_handle)
309END SUBROUTINE mym_phy
310! ###############################
311 SUBROUTINE mzm_phy(D,PA,PMZM)
312! ###############################
313 USE yomhook , ONLY : lhook, dr_hook, jphook
314! ###############################
315!
316!!**** *MZM* - Shuman operator : mean operator in z direction for a
317!! mass variable
318!!
319!! PURPOSE
320!! -------
321! The purpose of this function is to compute a mean
322! along the z direction (K index) for a field PA localized at a mass
323! point. The result is localized at a z-flux point (w point).
324!
325!!** METHOD
326!! ------
327!! The result PMZM(:,:,k) is defined by 0.5*(PA(:,:,k)+PA(:,:,k-1))
328!! At k=1, PMZM(:,:,1) is defined by -999.
329!!
330!!
331!! EXTERNAL
332!! --------
333!! NONE
334!!
335!! IMPLICIT ARGUMENTS
336!! ------------------
337!! NONE
338!!
339!! REFERENCE
340!! ---------
341!! Book2 of documentation of Meso-NH (SHUMAN operators)
342!! Technical specifications Report of The Meso-NH (chapters 3)
343!!
344!!
345!! AUTHOR
346!! ------
347!! V. Ducrocq * Meteo France *
348!!
349!! MODIFICATIONS
350!! -------------
351!! Original 04/07/94
352!-------------------------------------------------------------------------------
353!
354!* 0. DECLARATIONS
355! ------------
356!
357!
358USE modd_dimphyex, ONLY: dimphyex_t
359IMPLICIT NONE
360!
361!* 0.1 Declarations of argument and result
362! ------------------------------------
363!
364TYPE(dimphyex_t), INTENT(IN) :: d
365REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at mass localization
366REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pmzm ! result at flux localization
367!
368!* 0.2 Declarations of local variables
369! -------------------------------
370!
371INTEGER :: jk,jij,iijb,iije,ikt ! Loop index
372INTEGER :: ikl,ika,iku
373!
374!-------------------------------------------------------------------------------
375!
376!* 1. DEFINITION OF MZM
377! ------------------
378!
379REAL(kind=jphook) :: zhook_handle
380IF (lhook) CALL dr_hook('MZM',0,zhook_handle)
381iijb = d%NIJB
382iije = d%NIJE
383ikt=d%NKT
384ikl=d%NKL
385ika=d%NKA
386iku=d%NKU
387DO jk=2,ikt-1
388 !$mnh_expand_array(JIJ=IIJB:IIJE)
389 pmzm(iijb:iije,jk) = 0.5*( pa(iijb:iije,jk)+pa(iijb:iije,jk-ikl) )
390 !$mnh_end_expand_array(JIJ=IIJB:IIJE)
391END DO
392!$mnh_expand_array(JIJ=IIJB:IIJE)
393pmzm(iijb:iije,ika) = -999.
394pmzm(iijb:iije,iku) = 0.5*( pa(iijb:iije,iku)+pa(iijb:iije,iku-ikl) )
395!$mnh_end_expand_array(JIJ=IIJB:IIJE)
396!
397!
398!-------------------------------------------------------------------------------
399!
400IF (lhook) CALL dr_hook('MZM',1,zhook_handle)
401END SUBROUTINE mzm_phy
402! ###############################
403 SUBROUTINE dzm_phy(D,PA,PDZM)
404 USE yomhook , ONLY : lhook, dr_hook, jphook
405! ###############################
406!
407!!**** *DZM* - Shuman operator : finite difference operator in z direction
408!! for a variable at a mass localization
409!!
410!! PURPOSE
411!! -------
412! The purpose of this function is to compute a finite difference
413! along the z direction (K index) for a field PA localized at a mass
414! point. The result is localized at a z-flux point (w point).
415!
416!!** METHOD
417!! ------
418!! The result PDZM(:,j,:) is defined by (PA(:,:,k)-PA(:,:,k-1))
419!! At k=1, PDZM(:,:,k) is defined by -999.
420!!
421!!
422!! EXTERNAL
423!! --------
424!! NONE
425!!
426!! IMPLICIT ARGUMENTS
427!! ------------------
428!! NONE
429!!
430!! REFERENCE
431!! ---------
432!! Book2 of documentation of Meso-NH (SHUMAN operators)
433!! Technical specifications Report of The Meso-NH (chapters 3)
434!!
435!!
436!! AUTHOR
437!! ------
438!! V. Ducrocq * Meteo France *
439!!
440!! MODIFICATIONS
441!! -------------
442!! Original 05/07/94
443!-------------------------------------------------------------------------------
444!
445!* 0. DECLARATIONS
446! ------------
447USE modd_dimphyex, ONLY: dimphyex_t
448!
449IMPLICIT NONE
450!
451!* 0.1 Declarations of argument and result
452! ------------------------------------
453!
454TYPE(dimphyex_t), INTENT(IN) :: d
455REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at mass localization
456REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pdzm ! result at flux
457 ! side
458!
459!* 0.2 Declarations of local variables
460! -------------------------------
461!
462INTEGER :: jk,jij,iijb,iije,ikt ! Loop index
463INTEGER :: ikl, ika, iku
464!
465!-------------------------------------------------------------------------------
466!
467!* 1. DEFINITION OF DZM
468! ------------------
469!
470REAL(kind=jphook) :: zhook_handle
471IF (lhook) CALL dr_hook('DZM',0,zhook_handle)
472iijb = d%NIJB
473iije = d%NIJE
474ikt=d%NKT
475ikl=d%NKL
476ika=d%NKA
477iku=d%NKU
478DO jk=2,ikt-1
479 !$mnh_expand_array(JIJ=IIJB:IIJE)
480 pdzm(iijb:iije,jk) = pa(iijb:iije,jk) - pa(iijb:iije,jk-ikl)
481 !$mnh_end_expand_array(JIJ=IIJB:IIJE)
482END DO
483!$mnh_expand_array(JIJ=IIJB:IIJE)
484pdzm(iijb:iije,ika) = -999.
485pdzm(iijb:iije,iku) = pa(iijb:iije,iku) - pa(iijb:iije,iku-ikl)
486!$mnh_end_expand_array(JIJ=IIJB:IIJE)
487!
488!-------------------------------------------------------------------------------
489!
490IF (lhook) CALL dr_hook('DZM',1,zhook_handle)
491END SUBROUTINE dzm_phy
492
493! ###############################
494 SUBROUTINE mxm_phy(D,PA,PMXM)
495 USE yomhook , ONLY : lhook, dr_hook, jphook
496! ###############################
497!
498!!**** *MXM* - Shuman operator : mean operator in x direction for a
499!! mass variable
500!!
501!! PURPOSE
502!! -------
503! The purpose of this function is to compute a mean
504! along the x direction (I index) for a field PA localized at a mass
505! point. The result is localized at a x-flux point (u point).
506!
507!!** METHOD
508!! ------
509!! The result PMXM(i,:,:) is defined by 0.5*(PA(i,:,:)+PA(i-1,:,:))
510!! At i=1, PMXM(1,:,:) are replaced by the values of PMXM,
511!! which are the right values in the x-cyclic case.
512!!
513!!
514!! EXTERNAL
515!! --------
516!! NONE
517!!
518!! IMPLICIT ARGUMENTS
519!! ------------------
520!! Module MODD_PARAMETERS: declaration of parameter variables
521!! JPHEXT: define the number of marginal points out of the
522!! physical domain along the horizontal directions.
523!!
524!! REFERENCE
525!! ---------
526!! Book2 of documentation of Meso-NH (SHUMAN operators)
527!! Technical specifications Report of The Meso-NH (chapters 3)
528!!
529!!
530!! AUTHOR
531!! ------
532!! V. Ducrocq * Meteo France *
533!!
534!! MODIFICATIONS
535!! -------------
536!! Original 04/07/94
537!! Modification to include the periodic case 13/10/94 J.Stein
538!-------------------------------------------------------------------------------
539!
540!* 0. DECLARATIONS
541! ------------
542USE modd_dimphyex, ONLY: dimphyex_t
543!
544IMPLICIT NONE
545!
546!* 0.1 Declarations of argument and result
547! ------------------------------------
548!
549TYPE(dimphyex_t), INTENT(IN) :: d
550REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at mass localization
551REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pmxm ! result at flux localization
552!
553!* 0.2 Declarations of local variables
554! -------------------------------
555!
556!
557!-------------------------------------------------------------------------------
558!
559!* 1. DEFINITION OF MXM
560! ------------------
561!
562REAL(kind=jphook) :: zhook_handle
563IF (lhook) CALL dr_hook('MXM',0,zhook_handle)
564!
565!POUR AROME
566
567pmxm=pa
568
569!
570!DO JI=2,IIU
571! PMXM(JI,:,:) = 0.5*( PA(JI,:,:)+PA(JI-1,:,:) )
572!END DO
573!
574!PMXM(1,:,:) = PMXM(IIU-2*JPHEXT+1,:,:)
575!
576!-------------------------------------------------------------------------------
577!
578IF (lhook) CALL dr_hook('MXM',1,zhook_handle)
579END SUBROUTINE mxm_phy
580!
581! ###############################
582 SUBROUTINE mxm2d_phy(D,PA,PMXM)
583 USE yomhook , ONLY : lhook, dr_hook, jphook
584! ###############################
585!
586!!**** *MXM* - Shuman operator : mean operator in x direction for a
587!! mass variable
588!!
589!! PURPOSE
590!! -------
591! The purpose of this function is to compute a mean
592! along the x direction (I index) for a field PA localized at a mass
593! point. The result is localized at a x-flux point (u point).
594!
595!!** METHOD
596!! ------
597!! The result PMXM(i,:,:) is defined by 0.5*(PA(i,:,:)+PA(i-1,:,:))
598!! At i=1, PMXM(1,:,:) are replaced by the values of PMXM,
599!! which are the right values in the x-cyclic case.
600!!
601!!
602!! EXTERNAL
603!! --------
604!! NONE
605!!
606!! IMPLICIT ARGUMENTS
607!! ------------------
608!! Module MODD_PARAMETERS: declaration of parameter variables
609!! JPHEXT: define the number of marginal points out of the
610!! physical domain along the horizontal directions.
611!!
612!! REFERENCE
613!! ---------
614!! Book2 of documentation of Meso-NH (SHUMAN operators)
615!! Technical specifications Report of The Meso-NH (chapters 3)
616!!
617!!
618!! AUTHOR
619!! ------
620!! V. Ducrocq * Meteo France *
621!!
622!! MODIFICATIONS
623!! -------------
624!! Original 04/07/94
625!! Modification to include the periodic case 13/10/94 J.Stein
626!-------------------------------------------------------------------------------
627!
628!* 0. DECLARATIONS
629! ------------
630USE modd_dimphyex, ONLY: dimphyex_t
631!
632IMPLICIT NONE
633!
634!* 0.1 Declarations of argument and result
635! ------------------------------------
636!
637TYPE(dimphyex_t), INTENT(IN) :: d
638REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass localization
639REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pmxm ! result at flux localization
640!
641!-------------------------------------------------------------------------------
642!
643!* 1. DEFINITION OF MXM
644! ------------------
645!
646REAL(kind=jphook) :: zhook_handle
647IF (lhook) CALL dr_hook('MXM',0,zhook_handle)
648
649!POUR AROME
650
651pmxm=pa
652
653IF (lhook) CALL dr_hook('MXM',1,zhook_handle)
654END SUBROUTINE mxm2d_phy
655!
656
657! ###############################
658 SUBROUTINE mxf_phy(D,PA,PMXF)
659 USE yomhook , ONLY : lhook, dr_hook, jphook
660! ###############################
661!
662!!**** *MXF* - Shuman operator : mean operator in x direction for a
663!! variable at a flux side
664!!
665!! PURPOSE
666!! -------
667! The purpose of this function is to compute a mean
668! along the x direction (I index) for a field PA localized at a x-flux
669! point (u point). The result is localized at a mass point.
670!
671!!** METHOD
672!! ------
673!! The result PMXF(i,:,:) is defined by 0.5*(PA(i,:,:)+PA(i+1,:,:))
674!! At i=size(PA,1), PMXF(i,:,:) are replaced by the values of PMXF,
675!! which are the right values in the x-cyclic case
676!!
677!!
678!! EXTERNAL
679!! --------
680!! NONE
681!!
682!! IMPLICIT ARGUMENTS
683!! ------------------
684!! Module MODD_PARAMETERS: declaration of parameter variables
685!! JPHEXT: define the number of marginal points out of the
686!! physical domain along the horizontal directions.
687!!
688!! REFERENCE
689!! ---------
690!! Book2 of documentation of Meso-NH (SHUMAN operators)
691!! Technical specifications Report of The Meso-NH (chapters 3)
692!!
693!!
694!! AUTHOR
695!! ------
696!! V. Ducrocq * Meteo France *
697!!
698!! MODIFICATIONS
699!! -------------
700!! Original 04/07/94
701!! Modification to include the periodic case 13/10/94 J.Stein
702!-------------------------------------------------------------------------------
703!
704!* 0. DECLARATIONS
705! ------------
706!
707USE modd_dimphyex, ONLY: dimphyex_t
708IMPLICIT NONE
709!
710!* 0.1 Declarations of argument and result
711! ------------------------------------
712!
713TYPE(dimphyex_t), INTENT(IN) :: d
714REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at mass localization
715REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pmxf ! result at flux localization
716!
717!* 1. DEFINITION OF MXF
718! ------------------
719!
720REAL(kind=jphook) :: zhook_handle
721IF (lhook) CALL dr_hook('MXF',0,zhook_handle)
722!POUR AROME
723!
724pmxf=pa
725!
726IF (lhook) CALL dr_hook('MXF',1,zhook_handle)
727END SUBROUTINE mxf_phy
728! ###############################
729 SUBROUTINE mxf2d_phy(D,PA,PMXF)
730 USE yomhook , ONLY : lhook, dr_hook, jphook
731! ###############################
732!
733!!**** *MXF* - Shuman operator : mean operator in x direction for a
734!! variable at a flux side
735!!
736!! PURPOSE
737!! -------
738! The purpose of this function is to compute a mean
739! along the x direction (I index) for a field PA localized at a x-flux
740! point (u point). The result is localized at a mass point.
741!
742!!** METHOD
743!! ------
744!! The result PMXF(i,:,:) is defined by 0.5*(PA(i,:,:)+PA(i+1,:,:))
745!! At i=size(PA,1), PMXF(i,:,:) are replaced by the values of PMXF,
746!! which are the right values in the x-cyclic case
747!!
748!!
749!! EXTERNAL
750!! --------
751!! NONE
752!!
753!! IMPLICIT ARGUMENTS
754!! ------------------
755!! Module MODD_PARAMETERS: declaration of parameter variables
756!! JPHEXT: define the number of marginal points out of the
757!! physical domain along the horizontal directions.
758!!
759!! REFERENCE
760!! ---------
761!! Book2 of documentation of Meso-NH (SHUMAN operators)
762!! Technical specifications Report of The Meso-NH (chapters 3)
763!!
764!!
765!! AUTHOR
766!! ------
767!! V. Ducrocq * Meteo France *
768!!
769!! MODIFICATIONS
770!! -------------
771!! Original 04/07/94
772!! Modification to include the periodic case 13/10/94 J.Stein
773!-------------------------------------------------------------------------------
774!
775!* 0. DECLARATIONS
776! ------------
777!
778USE modd_dimphyex, ONLY: dimphyex_t
779IMPLICIT NONE
780!
781!* 0.1 Declarations of argument and result
782! ------------------------------------
783!
784TYPE(dimphyex_t), INTENT(IN) :: d
785REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass localization
786REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pmxf ! result at flux localization
787!
788!* 1. DEFINITION OF MXF
789! ------------------
790!
791REAL(kind=jphook) :: zhook_handle
792IF (lhook) CALL dr_hook('MXF',0,zhook_handle)
793!POUR AROME
794!
795pmxf=pa
796!
797IF (lhook) CALL dr_hook('MXF',1,zhook_handle)
798END SUBROUTINE mxf2d_phy
799! ###############################
800 SUBROUTINE mzf_phy(D,PA,PMZF)
801 USE yomhook , ONLY : lhook, dr_hook, jphook
802! ###############################
803!
804!!**** *MZF* - Shuman operator : mean operator in z direction for a
805!! variable at a flux side
806!!
807!! PURPOSE
808!! -------
809! The purpose of this function is to compute a mean
810! along the z direction (K index) for a field PA localized at a z-flux
811! point (w point). The result is localized at a mass point.
812!
813!!** METHOD
814!! ------
815!! The result PMZF(:,:,k) is defined by 0.5*(PA(:,:,k)+PA(:,:,k+1))
816!! At k=size(PA,3), PMZF(:,:,k) is defined by -999.
817!!
818!!
819!! EXTERNAL
820!! --------
821!! NONE
822!!
823!! IMPLICIT ARGUMENTS
824!! ------------------
825!! NONE
826!!
827!! REFERENCE
828!! ---------
829!! Book2 of documentation of Meso-NH (SHUMAN operators)
830!! Technical specifications Report of The Meso-NH (chapters 3)
831!!
832!!
833!! AUTHOR
834!! ------
835!! V. Ducrocq * Meteo France *
836!!
837!! MODIFICATIONS
838!! -------------
839!! Original 04/07/94
840!-------------------------------------------------------------------------------
841!
842!* 0. DECLARATIONS
843! ------------
844!
845USE modd_dimphyex, ONLY: dimphyex_t
846IMPLICIT NONE
847!
848!* 0.1 Declarations of argument and result
849! ------------------------------------
850!
851TYPE(dimphyex_t), INTENT(IN) :: d
852REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at flux localization
853REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pmzf ! result at mass localization
854!
855!* 0.2 Declarations of local variables
856! -------------------------------
857!
858INTEGER :: jk,jij,iijb,iije,ikt ! Loop index
859INTEGER :: ikl, ika, iku
860!
861!-------------------------------------------------------------------------------
862!
863!* 1. DEFINITION OF MZF
864! ------------------
865!
866REAL(kind=jphook) :: zhook_handle
867IF (lhook) CALL dr_hook('MZF',0,zhook_handle)
868iijb = d%NIJB
869iije = d%NIJE
870ikt=d%NKT
871ikl=d%NKL
872ika=d%NKA
873iku=d%NKU
874DO jk=2,ikt-1
875 !$mnh_expand_array(JIJ=IIJB:IIJE)
876 pmzf(iijb:iije,jk) = 0.5*( pa(iijb:iije,jk)+pa(iijb:iije,jk+ikl) )
877 !$mnh_end_expand_array(JIJ=IIJB:IIJE)
878END DO
879!$mnh_expand_array(JIJ=IIJB:IIJE)
880pmzf(iijb:iije,iku) = -999.
881pmzf(iijb:iije,ika) = 0.5*( pa(iijb:iije,ika)+pa(iijb:iije,ika+ikl) )
882!$mnh_end_expand_array(JIJ=IIJB:IIJE)
883!
884!-------------------------------------------------------------------------------
885!
886IF (lhook) CALL dr_hook('MZF',1,zhook_handle)
887END SUBROUTINE mzf_phy
888!
889! ###############################
890 SUBROUTINE dxf2d_phy(D,PA,PDXF)
891! ###############################
892!
893!!**** *DXF* - Shuman operator : finite difference operator in x direction
894!! for a variable at a flux side
895!!
896!! PURPOSE
897!! -------
898! The purpose of this function is to compute a finite difference
899! along the x direction (I index) for a field PA localized at a x-flux
900! point (u point). The result is localized at a mass point.
901!
902!!** METHOD
903!! ------
904!! The result PDXF(i,:,:) is defined by (PA(i+1,:,:)-PA(i,:,:))
905!! At i=size(PA,1), PDXF(i,:,:) are replaced by the values of PDXF,
906!! which are the right values in the x-cyclic case
907!!
908!!
909!! EXTERNAL
910!! --------
911!! NONE
912!!
913!! IMPLICIT ARGUMENTS
914!! ------------------
915!! Module MODD_PARAMETERS: declaration of parameter variables
916!! JPHEXT: define the number of marginal points out of the
917!! physical domain along the horizontal directions.
918!!
919!! REFERENCE
920!! ---------
921!! Book2 of documentation of Meso-NH (SHUMAN operators)
922!! Technical specifications Report of The Meso-NH (chapters 3)
923!!
924!!
925!! AUTHOR
926!! ------
927!! V. Ducrocq * Meteo France *
928!!
929!! MODIFICATIONS
930!! -------------
931!! Original 05/07/94
932!! Modification to include the periodic case 13/10/94 J.Stein
933!! optimisation 20/08/00 J. Escobar
934!! correction of in halo/pseudo-cyclic calculation for JPHEXT<> 1
935!! J.Escobar : 15/09/2015 : WENO5 & JPHEXT <> 1
936!-------------------------------------------------------------------------------
937!
938!* 0. DECLARATIONS
939! ------------
940!
941USE modd_dimphyex, ONLY: dimphyex_t
942USE mode_msg, ONLY: print_msg
943USE modd_io, ONLY:nverb_fatal
944
945!
946IMPLICIT NONE
947!
948!* 0.1 Declarations of argument and result
949! ------------------------------------
950!
951TYPE(dimphyex_t), INTENT(IN) :: d
952REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at flux
953 ! side
954REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pdxf ! result at mass
955 ! localization
956!
957!* 0.2 Declarations of local variables
958! -------------------------------
959!
960!
961!-------------------------------------------------------------------------------
962!
963!* 1. DEFINITION OF DXF
964! ------------------
965!
966CALL print_msg(nverb_fatal, 'GEN', 'DXF2D_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
967
968!
969!-------------------------------------------------------------------------------
970!
971END SUBROUTINE dxf2d_phy
972! ###############################
973 SUBROUTINE dzf_phy(D,PA,PDZF)
974 USE yomhook , ONLY : lhook, dr_hook, jphook
975! ###############################
976!
977!!**** *DZF* - Shuman operator : finite difference operator in z direction
978!! for a variable at a flux side
979!!
980!! PURPOSE
981!! -------
982! The purpose of this function is to compute a finite difference
983! along the z direction (K index) for a field PA localized at a z-flux
984! point (w point). The result is localized at a mass point.
985!
986!!** METHOD
987!! ------
988!! The result PDZF(:,:,k) is defined by (PA(:,:,k+1)-PA(:,:,k))
989!! At k=size(PA,3), PDZF(:,:,k) is defined by -999.
990!!
991!!
992!! EXTERNAL
993!! --------
994!! NONE
995!!
996!! IMPLICIT ARGUMENTS
997!! ------------------
998!! NONE
999!!
1000!! REFERENCE
1001!! ---------
1002!! Book2 of documentation of Meso-NH (SHUMAN operators)
1003!! Technical specifications Report of The Meso-NH (chapters 3)
1004!!
1005!!
1006!! AUTHOR
1007!! ------
1008!! V. Ducrocq * Meteo France *
1009!!
1010!! MODIFICATIONS
1011!! -------------
1012!! Original 05/07/94
1013!-------------------------------------------------------------------------------
1014!
1015!* 0. DECLARATIONS
1016! ------------
1017!
1018USE modd_dimphyex, ONLY: dimphyex_t
1019IMPLICIT NONE
1020!
1021!* 0.1 Declarations of argument and result
1022! ------------------------------------
1023!
1024TYPE(dimphyex_t), INTENT(IN) :: D
1025REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: PA ! variable at flux localization
1026REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: PDZF ! result at mass localization
1027!
1028!* 0.2 Declarations of local variables
1029! -------------------------------
1030!
1031INTEGER :: JK,JIJ,IIJB,IIJE,IKT ! Loop index
1032INTEGER :: IKL, IKA, IKU
1033!
1034!-------------------------------------------------------------------------------
1035!
1036!* 1. DEFINITION OF DZF
1037! ------------------
1038!
1039REAL(KIND=jphook) :: zhook_handle
1040IF (lhook) CALL dr_hook('DZF',0,zhook_handle)
1041iijb = d%NIJB
1042iije = d%NIJE
1043ikt=d%NKT
1044ikl=d%NKL
1045ika=d%NKA
1046iku=d%NKU
1047DO jk=2,ikt-1
1048 !$mnh_expand_array(JIJ=IIJB:IIJE)
1049 pdzf(iijb:iije,jk) = pa(iijb:iije,jk+ikl) - pa(iijb:iije,jk)
1050 !$mnh_end_expand_array(JIJ=IIJB:IIJE)
1051END DO
1052!$mnh_expand_array(JIJ=IIJB:IIJE)
1053pdzf(iijb:iije,ika) = pa(iijb:iije,ika+ikl) - pa(iijb:iije,ika)
1054pdzf(iijb:iije,iku) = -999.
1055!$mnh_end_expand_array(JIJ=IIJB:IIJE)
1056!
1057!-------------------------------------------------------------------------------
1058!
1059IF (lhook) CALL dr_hook('DZF',1,zhook_handle)
1060END SUBROUTINE dzf_phy
1061 SUBROUTINE dxm2d_phy(D,PA,PDXM)
1062! ###############################
1063!
1064!!**** *DXM* - Shuman operator : finite difference operator in x direction
1065!! for a variable at a mass localization
1066!!
1067!! PURPOSE
1068!! -------
1069! The purpose of this function is to compute a finite difference
1070! along the x direction (I index) for a field PA localized at a mass
1071! point. The result is localized at a x-flux point (u point).
1072!
1073!!** METHOD
1074!! ------
1075!! The result PDXM(i,:,:) is defined by (PA(i,:,:)-PA(i-1,:,:))
1076!! At i=1, PDXM(1,:,:) are replaced by the values of PDXM,
1077!! which are the right values in the x-cyclic case.
1078!!
1079!!
1080!! EXTERNAL
1081!! --------
1082!! NONE
1083!!
1084!! IMPLICIT ARGUMENTS
1085!! ------------------
1086!! Module MODD_PARAMETERS: declaration of parameter variables
1087!! JPHEXT: define the number of marginal points out of the
1088!! physical domain along the horizontal directions.
1089!!
1090!! REFERENCE
1091!! ---------
1092!! Book2 of documentation of Meso-NH (SHUMAN operators)
1093!! Technical specifications Report of The Meso-NH (chapters 3)
1094!!
1095!!
1096!! AUTHOR
1097!! ------
1098!! V. Ducrocq * Meteo France *
1099!!
1100!! MODIFICATIONS
1101!! -------------
1102!! Original 05/07/94
1103!! Modification to include the periodic case 13/10/94 J.Stein
1104!! optimisation 20/08/00 J. Escobar
1105!-------------------------------------------------------------------------------
1106!
1107!* 0. DECLARATIONS
1108! ------------
1109!
1110USE modd_dimphyex, ONLY: dimphyex_t
1111USE mode_msg, ONLY: print_msg
1112USE modd_io, ONLY:nverb_fatal
1113!
1114IMPLICIT NONE
1115!
1116!* 0.1 Declarations of argument and result
1117! ------------------------------------
1118!
1119TYPE(dimphyex_t), INTENT(IN) :: d
1120REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass
1121 ! localization
1122REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pdxm ! result at flux
1123 ! side
1124!
1125!* 0.2 Declarations of local variables
1126! -------------------------------
1127!
1128!-------------------------------------------------------------------------------
1129!
1130!* 1. DEFINITION OF DXM
1131! ------------------
1132!
1133CALL print_msg(nverb_fatal, 'GEN', 'DXM2D_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1134!
1135!-------------------------------------------------------------------------------
1136!
1137END SUBROUTINE dxm2d_phy
1138!
1139! ###############################
1140 SUBROUTINE dym_phy(D,PA,PDYM)
1141 USE yomhook , ONLY : lhook, dr_hook, jphook
1142! ###############################
1143!
1144!!**** *DYM* - Shuman operator : finite difference operator in y direction
1145!! for a variable at a mass localization
1146!!
1147!! PURPOSE
1148!! -------
1149! The purpose of this function is to compute a finite difference
1150! along the y direction (J index) for a field PA localized at a mass
1151! point. The result is localized at a y-flux point (v point).
1152!
1153!!** METHOD
1154!! ------
1155!! The result PDYM(:,j,:) is defined by (PA(:,j,:)-PA(:,j-1,:))
1156!! At j=1, PDYM(:,1,:) are replaced by the values of PDYM,
1157!! which are the right values in the y-cyclic case.
1158!!
1159!!
1160!! EXTERNAL
1161!! --------
1162!! NONE
1163!!
1164!! IMPLICIT ARGUMENTS
1165!! ------------------
1166!! Module MODD_PARAMETERS: declaration of parameter variables
1167!! JPHEXT: define the number of marginal points out of the
1168!! physical domain along the horizontal directions.
1169!!
1170!! REFERENCE
1171!! ---------
1172!! Book2 of documentation of Meso-NH (SHUMAN operators)
1173!! Technical specifications Report of The Meso-NH (chapters 3)
1174!!
1175!!
1176!! AUTHOR
1177!! ------
1178!! V. Ducrocq * Meteo France *
1179!!
1180!! MODIFICATIONS
1181!! -------------
1182!! Original 05/07/94
1183!! Modification to include the periodic case 13/10/94 J.Stein
1184!-------------------------------------------------------------------------------
1185!
1186!* 0. DECLARATIONS
1187! ------------
1188!
1189USE modd_dimphyex, ONLY: dimphyex_t
1190USE mode_msg, ONLY: print_msg
1191USE modd_io, ONLY:nverb_fatal
1192!
1193IMPLICIT NONE
1194!
1195!* 0.1 Declarations of argument and result
1196! ------------------------------------
1197!
1198TYPE(dimphyex_t), INTENT(IN) :: D
1199REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: PA ! variable at mass
1200 ! localization
1201REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: PDYM ! result at flux
1202 ! side
1203!
1204!
1205!* 0.2 Declarations of local variables
1206! -------------------------------
1207!
1208!
1209!-------------------------------------------------------------------------------
1210!
1211!* 1. DEFINITION OF DYM
1212! ------------------
1213!
1214REAL(KIND=jphook) :: zhook_handle
1215IF (lhook) CALL dr_hook('DYM',0,zhook_handle)
1216CALL print_msg(nverb_fatal, 'GEN', 'DYM_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1217!
1218!-------------------------------------------------------------------------------
1219!
1220IF (lhook) CALL dr_hook('DYM',1,zhook_handle)
1221END SUBROUTINE dym_phy
1222!
1223! ###############################
1224 SUBROUTINE dym2d_phy(D,PA,PDYM)
1225! ###############################
1226!
1227USE modd_dimphyex, ONLY: dimphyex_t
1228USE mode_msg, ONLY: print_msg
1229USE modd_io, ONLY:nverb_fatal
1230!
1231IMPLICIT NONE
1232!
1233!* 0.1 Declarations of argument and result
1234! ------------------------------------
1235!
1236TYPE(dimphyex_t), INTENT(IN) :: d
1237REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at mass
1238 ! localization
1239REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pdym ! result at flux
1240
1241CALL print_msg(nverb_fatal, 'GEN', 'DYM2D_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1242
1243END SUBROUTINE dym2d_phy
1244
1245! ###############################
1246 SUBROUTINE dxm_phy(D,PA,PDXM)
1247 USE yomhook , ONLY : lhook, dr_hook, jphook
1248! ###############################
1249!
1250!!**** *DXM* - Shuman operator : finite difference operator in x direction
1251!! for a variable at a mass localization
1252!!
1253!! PURPOSE
1254!! -------
1255! The purpose of this function is to compute a finite difference
1256! along the x direction (I index) for a field PA localized at a mass
1257! point. The result is localized at a x-flux point (u point).
1258!
1259!!** METHOD
1260!! ------
1261!! The result PDXM(i,:,:) is defined by (PA(i,:,:)-PA(i-1,:,:))
1262!! At i=1, PDXM(1,:,:) are replaced by the values of PDXM,
1263!! which are the right values in the x-cyclic case.
1264!!
1265!!
1266!! EXTERNAL
1267!! --------
1268!! NONE
1269!!
1270!! IMPLICIT ARGUMENTS
1271!! ------------------
1272!! Module MODD_PARAMETERS: declaration of parameter variables
1273!! JPHEXT: define the number of marginal points out of the
1274!! physical domain along the horizontal directions.
1275!!
1276!! REFERENCE
1277!! ---------
1278!! Book2 of documentation of Meso-NH (SHUMAN operators)
1279!! Technical specifications Report of The Meso-NH (chapters 3)
1280!!
1281!!
1282!! AUTHOR
1283!! ------
1284!! V. Ducrocq * Meteo France *
1285!!
1286!! MODIFICATIONS
1287!! -------------
1288!! Original 05/07/94
1289!! Modification to include the periodic case 13/10/94 J.Stein
1290!-------------------------------------------------------------------------------
1291!
1292!* 0. DECLARATIONS
1293! ------------
1294!
1295USE modd_dimphyex, ONLY: dimphyex_t
1296USE mode_msg, ONLY: print_msg
1297USE modd_io, ONLY:nverb_fatal
1298!
1299IMPLICIT NONE
1300!
1301!* 0.1 Declarations of argument and result
1302! ------------------------------------
1303!
1304TYPE(dimphyex_t), INTENT(IN) :: D
1305REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: PA ! variable at mass
1306 ! localization
1307REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: PDXM ! result at flux
1308 ! side
1309!
1310REAL(KIND=jphook) :: zhook_handle
1311IF (lhook) CALL dr_hook('DXM',0,zhook_handle)
1312!
1313CALL print_msg(nverb_fatal, 'GEN', 'DXM_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1314!-------------------------------------------------------------------------------
1315!
1316IF (lhook) CALL dr_hook('DXM',1,zhook_handle)
1317END SUBROUTINE dxm_phy
1318! ###############################
1319 SUBROUTINE dxf_phy(D,PA,PDXF)
1320 USE yomhook , ONLY : lhook, dr_hook, jphook
1321! ###############################
1322!
1323!!**** *DXF* - Shuman operator : finite difference operator in x direction
1324!! for a variable at a flux side
1325!!
1326!! PURPOSE
1327!! -------
1328! The purpose of this function is to compute a finite difference
1329! along the x direction (I index) for a field PA localized at a x-flux
1330! point (u point). The result is localized at a mass point.
1331!
1332!!** METHOD
1333!! ------
1334!! The result PDXF(i,:,:) is defined by (PA(i+1,:,:)-PA(i,:,:))
1335!! At i=size(PA,1), PDXF(i,:,:) are replaced by the values of PDXF,
1336!! which are the right values in the x-cyclic case
1337!!
1338!!
1339!! EXTERNAL
1340!! --------
1341!! NONE
1342!!
1343!! IMPLICIT ARGUMENTS
1344!! ------------------
1345!! Module MODD_PARAMETERS: declaration of parameter variables
1346!! JPHEXT: define the number of marginal points out of the
1347!! physical domain along the horizontal directions.
1348!!
1349!! REFERENCE
1350!! ---------
1351!! Book2 of documentation of Meso-NH (SHUMAN operators)
1352!! Technical specifications Report of The Meso-NH (chapters 3)
1353!!
1354!!
1355!! AUTHOR
1356!! ------
1357!! V. Ducrocq * Meteo France *
1358!!
1359!! MODIFICATIONS
1360!! -------------
1361!! Original 05/07/94
1362!! Modification to include the periodic case 13/10/94 J.Stein
1363!-------------------------------------------------------------------------------
1364!
1365!* 0. DECLARATIONS
1366! ------------
1367!
1368USE modd_dimphyex, ONLY: dimphyex_t
1369USE mode_msg, ONLY: print_msg
1370USE modd_io, ONLY:nverb_fatal
1371!
1372IMPLICIT NONE
1373!
1374!* 0.1 Declarations of argument and result
1375! ------------------------------------
1376!
1377TYPE(dimphyex_t), INTENT(IN) :: d
1378REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at flux
1379 ! side
1380REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pdxf ! result at mass
1381 ! localization
1382!
1383!
1384REAL(kind=jphook) :: zhook_handle
1385IF (lhook) CALL dr_hook('DXF',0,zhook_handle)
1386!
1387CALL print_msg(nverb_fatal, 'GEN', 'DXF_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1388!
1389!-------------------------------------------------------------------------------
1390!
1391IF (lhook) CALL dr_hook('DXF',1,zhook_handle)
1392END SUBROUTINE dxf_phy
1393!
1394! ###############################
1395 SUBROUTINE dyf_phy(D,PA,PDYF)
1396 USE yomhook , ONLY : lhook, dr_hook, jphook
1397! ###############################
1398!
1399!!**** *DYF* - Shuman operator : finite difference operator in y direction
1400!! for a variable at a flux side
1401!!
1402!! PURPOSE
1403!! -------
1404! The purpose of this function is to compute a finite difference
1405! along the y direction (J index) for a field PA localized at a y-flux
1406! point (v point). The result is localized at a mass point.
1407!
1408!!** METHOD
1409!! ------
1410!! The result PDYF(:,j,:) is defined by (PA(:,j+1,:)-PA(:,j,:))
1411!! At j=size(PA,2), PDYF(:,j,:) are replaced by the values of PDYM,
1412!! which are the right values in the y-cyclic case
1413!!
1414!!
1415!! EXTERNAL
1416!! --------
1417!! NONE
1418!!
1419!! IMPLICIT ARGUMENTS
1420!! ------------------
1421!! Module MODD_PARAMETERS: declaration of parameter variables
1422!! JPHEXT: define the number of marginal points out of the
1423!! physical domain along the horizontal directions.
1424!!
1425!! REFERENCE
1426!! ---------
1427!! Book2 of documentation of Meso-NH (SHUMAN operators)
1428!! Technical specifications Report of The Meso-NH (chapters 3)
1429!!
1430!!
1431!! AUTHOR
1432!! ------
1433!! V. Ducrocq * Meteo France *
1434!!
1435!! MODIFICATIONS
1436!! -------------
1437!! Original 05/07/94
1438!! Modification to include the periodic case 13/10/94 J.Stein
1439!-------------------------------------------------------------------------------
1440!
1441!* 0. DECLARATIONS
1442! ------------
1443!
1444USE modd_dimphyex, ONLY: dimphyex_t
1445USE mode_msg, ONLY: print_msg
1446USE modd_io, ONLY:nverb_fatal
1447!
1448IMPLICIT NONE
1449!
1450!* 0.1 Declarations of argument and result
1451! ------------------------------------
1452!
1453TYPE(dimphyex_t), INTENT(IN) :: d
1454REAL, DIMENSION(D%NIJT,D%NKT), INTENT(IN) :: pa ! variable at flux
1455 ! side
1456REAL, DIMENSION(D%NIJT,D%NKT), INTENT(OUT) :: pdyf ! result at mass
1457 ! localization
1458!-------------------------------------------------------------------------------
1459!
1460!* 1. DEFINITION OF DYF
1461! ------------------
1462!
1463REAL(kind=jphook) :: zhook_handle
1464IF (lhook) CALL dr_hook('DYF',0,zhook_handle)
1465!
1466CALL print_msg(nverb_fatal, 'GEN', 'DYF_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1467!
1468!-------------------------------------------------------------------------------
1469!
1470IF (lhook) CALL dr_hook('DYF',1,zhook_handle)
1471END SUBROUTINE dyf_phy
1472!
1473! ###############################
1474 SUBROUTINE dyf2d_phy(D,PA,PDYF)
1475! ###############################
1476!
1477!!**** *DYF* - Shuman operator : finite difference operator in y direction
1478!! for a variable at a flux side
1479!!
1480!! PURPOSE
1481!! -------
1482! The purpose of this function is to compute a finite difference
1483! along the y direction (J index) for a field PA localized at a y-flux
1484! point (v point). The result is localized at a mass point.
1485!
1486!!** METHOD
1487!! ------
1488!! The result PDYF(:,j,:) is defined by (PA(:,j+1,:)-PA(:,j,:))
1489!! At j=size(PA,2), PDYF(:,j,:) are replaced by the values of PDYM,
1490!! which are the right values in the y-cyclic case
1491!!
1492!!
1493!! EXTERNAL
1494!! --------
1495!! NONE
1496!!
1497!! IMPLICIT ARGUMENTS
1498!! ------------------
1499!! Module MODD_PARAMETERS: declaration of parameter variables
1500!! JPHEXT: define the number of marginal points out of the
1501!! physical domain along the horizontal directions.
1502!!
1503!! REFERENCE
1504!! ---------
1505!! Book2 of documentation of Meso-NH (SHUMAN operators)
1506!! Technical specifications Report of The Meso-NH (chapters 3)
1507!!
1508!!
1509!! AUTHOR
1510!! ------
1511!! V. Ducrocq * Meteo France *
1512!!
1513!! MODIFICATIONS
1514!! -------------
1515!! Original 05/07/94
1516!! Modification to include the periodic case 13/10/94 J.Stein
1517!! optimisation 20/08/00 J. Escobar
1518!! correction of in halo/pseudo-cyclic calculation for JPHEXT<> 1
1519!! J.Escobar : 15/09/2015 : WENO5 & JPHEXT <> 1
1520!-------------------------------------------------------------------------------
1521!
1522!* 0. DECLARATIONS
1523! ------------
1524!
1525USE modd_dimphyex, ONLY: dimphyex_t
1526USE mode_msg, ONLY: print_msg
1527USE modd_io, ONLY:nverb_fatal
1528!
1529IMPLICIT NONE
1530!
1531!* 0.1 Declarations of argument and result
1532! ------------------------------------
1533!
1534TYPE(dimphyex_t), INTENT(IN) :: d
1535REAL, DIMENSION(D%NIJT), INTENT(IN) :: pa ! variable at flux
1536 ! side
1537REAL, DIMENSION(D%NIJT), INTENT(OUT) :: pdyf ! result at mass
1538 ! localization
1539!
1540!* 0.2 Declarations of local variables
1541! -------------------------------
1542!
1543!-------------------------------------------------------------------------------
1544!
1545!* 1. DEFINITION OF DYF
1546! ------------------
1547!
1548CALL print_msg(nverb_fatal, 'GEN', 'DYF2D_PHY', 'AROME SHOULD NOT CALLED HORIZONTAL FINITE DIFFERENCE')
1549!
1550!-------------------------------------------------------------------------------
1551!
1552END SUBROUTINE dyf2d_phy
1553!
1554END MODULE mode_shuman_phy
integer, parameter nverb_fatal
Definition modd_io.F90:6
subroutine mym_phy(d, pa, pmym)
subroutine dyf_phy(d, pa, pdyf)
subroutine mxf_phy(d, pa, pmxf)
subroutine dym_phy(d, pa, pdym)
subroutine dyf2d_phy(d, pa, pdyf)
subroutine dxf2d_phy(d, pa, pdxf)
subroutine mym2d_phy(d, pa, pmym)
subroutine mxf2d_phy(d, pa, pmxf)
subroutine mxm2d_phy(d, pa, pmxm)
subroutine dzm_phy(d, pa, pdzm)
subroutine dym2d_phy(d, pa, pdym)
subroutine dxm_phy(d, pa, pdxm)
subroutine dxm2d_phy(d, pa, pdxm)
subroutine mzm_phy(d, pa, pmzm)
subroutine mzf_phy(d, pa, pmzf)
subroutine myf2d_phy(d, pa, pmyf)
subroutine dxf_phy(d, pa, pdxf)
subroutine mxm_phy(d, pa, pmxm)
subroutine myf_phy(d, pa, pmyf)
subroutine dzf_phy(d, pa, pdzf)