FV3-JEDI
fv_init_geos_mod.f90
Go to the documentation of this file.
1 ! (C) Copyright 2020 UCAR
2 !
3 ! This software is licensed under the terms of the Apache Licence Version 2.0
4 ! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5 
6 module fv_init_mod
7 
8 ! fv3 uses
9 use fv_arrays_mod, only: fv_atmos_type
10 use fv_control_mod, only: fv_init1, fv_init2, pelist_all
11 
12 ! fv3jedi uses
14 
15 implicit none
16 private
17 public fv_init
18 
19 ! --------------------------------------------------------------------------------------------------
20 
21 contains
22 
23 ! --------------------------------------------------------------------------------------------------
24 
25 subroutine fv_init(Atm, dt_atmos_in, grids_on_this_pe, p_split, gtile)
26 
27 type(fv_atmos_type), allocatable, intent(inout) :: atm(:)
28 real(kind=kind_real), intent(in) :: dt_atmos_in
29 logical, allocatable, intent(inout) :: grids_on_this_pe(:)
30 integer, intent(inout) :: p_split
31 integer, optional, intent(out) :: gtile
32 
33 real(4) :: dt_atmos
34 
35 dt_atmos = dt_atmos_in
36 
37 call fv_init1(atm, dt_atmos, grids_on_this_pe, p_split)
38 call fv_init2(atm, dt_atmos, grids_on_this_pe, p_split)
39 
40 if (present(gtile)) gtile = atm(1)%tile
41 
42 if (allocated(pelist_all)) deallocate(pelist_all)
43 
44 end subroutine fv_init
45 
46 ! --------------------------------------------------------------------------------------------------
47 
48 end module fv_init_mod
atm
Definition: atm.F90:1
fv_init_mod
Definition: fv_init_control_mod.f90:6
fv3jedi_kinds_mod::kind_real
integer, parameter, public kind_real
Definition: fv3jedi_kinds_mod.f90:14
fv3jedi_kinds_mod
Definition: fv3jedi_kinds_mod.f90:6
fv_init_mod::fv_init
subroutine, public fv_init(Atm, dt_atmos_in, grids_on_this_pe, p_split, gtile)
Definition: fv_init_control_mod.f90:28