FV3-JEDI
fv_init_control_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_control_init
11
use
fv_mp_mod,
only
: grids_master_procs
12
13
! fv3jedi uses
14
use
fv3jedi_kinds_mod
,
only
:
kind_real
15
use
fv_prec_mod
,
only
:
kind_fv3
16
17
implicit none
18
private
19
public
fv_init
20
21
! --------------------------------------------------------------------------------------------------
22
23
contains
24
25
! --------------------------------------------------------------------------------------------------
26
27
subroutine
fv_init
(Atm, dt_atmos_in, grids_on_this_pe, p_split, gtile)
28
29
type
(fv_atmos_type),
allocatable
,
intent(inout)
::
atm
(:)
30
real
(kind=
kind_real
),
intent(in)
:: dt_atmos_in
31
logical
,
allocatable
,
intent(out)
:: grids_on_this_pe(:)
32
integer
,
intent(inout)
:: p_split
33
integer
,
optional
,
intent(out)
:: gtile
34
35
integer
:: this_grid
36
real
(
kind_fv3
) :: dt_atmos
37
38
dt_atmos = dt_atmos_in
39
40
call
fv_control_init(
atm
, dt_atmos, this_grid, grids_on_this_pe, p_split)
41
42
if
(this_grid .ne. 1)
call
abor1_ftn(
"Geometry not ready for ngrid > 1"
)
43
44
if
(
present
(gtile)) gtile =
atm
(1)%global_tile
45
46
if
(
allocated
(grids_master_procs))
deallocate
(grids_master_procs)
47
48
end subroutine
fv_init
49
50
! --------------------------------------------------------------------------------------------------
51
52
end module
fv_init_mod
atm
Definition:
atm.F90:1
fv_prec_mod
Definition:
fv_prec_r4_mod.f90:6
fv_prec_mod::kind_fv3
integer, parameter, public kind_fv3
Definition:
fv_prec_r4_mod.f90:11
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
fv3-bundle
fv3-jedi
src
fv3jedi
Geometry
fv_init_control_mod.f90
Generated on Tue Jan 5 2021 15:37:40 for FV3-JEDI by
1.8.18