1 | ! |
---|
2 | ! $Id: $ |
---|
3 | ! |
---|
4 | MODULE callphysiq_mod |
---|
5 | |
---|
6 | IMPLICIT NONE |
---|
7 | |
---|
8 | CONTAINS |
---|
9 | |
---|
10 | SUBROUTINE call_physiq(planet_type,klon,llm,nqtot, & |
---|
11 | debut_split,lafin_split) |
---|
12 | |
---|
13 | USE variables_mod |
---|
14 | USE physiq_mod, ONLY: physiq |
---|
15 | use phys_state_var_mod , only : qsurf |
---|
16 | use comm_wrf, only : allocate_comm_wrf |
---|
17 | use tracer_h, only: noms |
---|
18 | |
---|
19 | IMPLICIT NONE |
---|
20 | character(len=10),INTENT(IN) :: planet_type ! planet type ('earth','mars',...) |
---|
21 | INTEGER,INTENT(IN) :: klon ! (local) number of atmospheric columns |
---|
22 | INTEGER,INTENT(IN) :: llm ! number of atmospheric layers |
---|
23 | INTEGER,INTENT(IN) :: nqtot ! number of tracers |
---|
24 | LOGICAL,INTENT(IN) :: debut_split ! .true. if very first call to physics |
---|
25 | LOGICAL,INTENT(IN) :: lafin_split ! .true. if last call to physics |
---|
26 | |
---|
27 | ! Local variables |
---|
28 | ! CHARACTER(len=11) :: modname="call_physiq" |
---|
29 | |
---|
30 | ! Sanity check on physics package type |
---|
31 | IF (debut_split) THEN |
---|
32 | IF (planet_type.ne."titan") THEN |
---|
33 | PRINT*,"wrong planet_type for this physics package" |
---|
34 | STOP |
---|
35 | ENDIF |
---|
36 | ENDIF |
---|
37 | |
---|
38 | qsurf(:,:)=zqfi_omp(:,1,:) |
---|
39 | print*,'zdt_split',zdt_split |
---|
40 | |
---|
41 | call allocate_comm_wrf(klon,llm) |
---|
42 | |
---|
43 | ! Call physics package with required inputs/outputs |
---|
44 | CALL physiq(klon, & ! ngrid |
---|
45 | llm, & ! nlayer |
---|
46 | nqtot, & ! nq |
---|
47 | noms, & ! nametrac |
---|
48 | debut_split, & ! firstcall |
---|
49 | lafin_split, & ! lastcall |
---|
50 | jD_cur, & ! pday |
---|
51 | jH_cur_split, & ! ptime |
---|
52 | zdt_split, & ! ptimestep |
---|
53 | zplev_omp, & ! pplev |
---|
54 | zplay_omp, & ! pplay |
---|
55 | zphi_omp, & ! pphi |
---|
56 | zufi_omp, & ! pu |
---|
57 | zvfi_omp, & ! pv |
---|
58 | ztfi_omp, & ! pt |
---|
59 | zqfi_omp, & ! pq |
---|
60 | flxwfi_omp, & ! flxw |
---|
61 | zdufi_omp, & ! pdu |
---|
62 | zdvfi_omp, & ! pdv |
---|
63 | zdtfi_omp, & ! pdt |
---|
64 | zdqfi_omp, & ! pdq |
---|
65 | zdpsrf_omp) ! pdpsrf |
---|
66 | |
---|
67 | |
---|
68 | END SUBROUTINE call_physiq |
---|
69 | |
---|
70 | END MODULE callphysiq_mod |
---|