FV3 Bundle
ufo_seaicethick_tlad_interface.F90
Go to the documentation of this file.
1 ! (C) Copyright 2017-2018 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 !> Fortran module to handle ice concentration observations
7 
9 
10  use iso_c_binding
11  use config_mod
12  use ufo_geovals_mod, only: ufo_geovals
15  implicit none
16  private
17 
18 #define LISTED_TYPE ufo_seaicethick_tlad
19 
20  !> Linked list interface - defines registry_t type
21 #include "../../linkedList_i.f"
22 
23  !> Global registry
24  type(registry_t) :: ufo_seaicethick_tlad_registry
25 
26  ! ------------------------------------------------------------------------------
27 contains
28  ! ------------------------------------------------------------------------------
29  !> Linked list implementation
30 #include "../../linkedList_c.f"
31 
32 ! ------------------------------------------------------------------------------
33 
34 subroutine ufo_seaicethick_tlad_setup_c(c_key_self, c_conf) bind(c,name='ufo_seaicethick_tlad_setup_f90')
35 implicit none
36 integer(c_int), intent(inout) :: c_key_self
37 type(c_ptr), intent(in) :: c_conf
38 
39 type(ufo_seaicethick_tlad), pointer :: self
40 
42 call ufo_seaicethick_tlad_registry%add(c_key_self)
43 call ufo_seaicethick_tlad_registry%get(c_key_self, self)
44 
45 end subroutine ufo_seaicethick_tlad_setup_c
46 
47 ! ------------------------------------------------------------------------------
48 
49 subroutine ufo_seaicethick_tlad_delete_c(c_key_self) bind(c,name='ufo_seaicethick_tlad_delete_f90')
50 implicit none
51 integer(c_int), intent(inout) :: c_key_self
52 
53 type(ufo_seaicethick_tlad), pointer :: self
54 
55 call ufo_seaicethick_tlad_registry%get(c_key_self, self)
57 call ufo_seaicethick_tlad_registry%remove(c_key_self)
58 
59 end subroutine ufo_seaicethick_tlad_delete_c
60 
61 ! ------------------------------------------------------------------------------
62 
63 subroutine ufo_seaicethick_tlad_settraj_c(c_key_self, c_key_geovals) bind(c,name='ufo_seaicethick_tlad_settraj_f90')
64 
65 implicit none
66 integer(c_int), intent(in) :: c_key_self
67 integer(c_int), intent(in) :: c_key_geovals
68 
69 type(ufo_seaicethick_tlad), pointer :: self
70 type(ufo_geovals), pointer :: geovals
71 
72 character(len=*), parameter :: myname_="ufo_seaicethick_tlad_settraj_c"
73 
74 call ufo_seaicethick_tlad_registry%get(c_key_self, self)
75 call ufo_geovals_registry%get(c_key_geovals,geovals)
76 
77 call ufo_seaicethick_tlad_settraj(self, geovals)
78 
79 end subroutine ufo_seaicethick_tlad_settraj_c
80 
81 ! ------------------------------------------------------------------------------
82 
83 subroutine ufo_seaicethick_simobs_tl_c(c_key_self, c_key_geovals, c_nobs, c_hofx) bind(c,name='ufo_seaicethick_simobs_tl_f90')
84 
85 implicit none
86 integer(c_int), intent(in) :: c_key_self
87 integer(c_int), intent(in) :: c_key_geovals
88 integer(c_int), intent(in) :: c_nobs
89 real(c_double), intent(inout) :: c_hofx(c_nobs)
90 
91 type(ufo_seaicethick_tlad), pointer :: self
92 type(ufo_geovals), pointer :: geovals
93 
94 character(len=*), parameter :: myname_="ufo_seaicethick_simobs_tl_c"
95 
96 call ufo_seaicethick_tlad_registry%get(c_key_self, self)
97 call ufo_geovals_registry%get(c_key_geovals,geovals)
98 
99 call ufo_seaicethick_simobs_tl(self, geovals, c_hofx)
100 
101 end subroutine ufo_seaicethick_simobs_tl_c
102 
103 ! ------------------------------------------------------------------------------
104 
105 subroutine ufo_seaicethick_simobs_ad_c(c_key_self, c_key_geovals, c_nobs, c_hofx) bind(c,name='ufo_seaicethick_simobs_ad_f90')
107 implicit none
108 integer(c_int), intent(in) :: c_key_self
109 integer(c_int), intent(in) :: c_key_geovals
110 integer(c_int), intent(in) :: c_nobs
111 real(c_double), intent(inout) :: c_hofx(c_nobs)
112 
113 type(ufo_seaicethick_tlad), pointer :: self
114 type(ufo_geovals), pointer :: geovals
115 
116 character(len=*), parameter :: myname_="ufo_seaicethick_simobs_ad_c"
117 
118 call ufo_seaicethick_tlad_registry%get(c_key_self, self)
119 call ufo_geovals_registry%get(c_key_geovals,geovals)
120 
121 call ufo_seaicethick_simobs_ad(self, geovals, c_hofx)
122 
123 end subroutine ufo_seaicethick_simobs_ad_c
124 
subroutine ufo_seaicethick_simobs_tl_c(c_key_self, c_key_geovals, c_nobs, c_hofx)
Fortran module to handle ice concentration observations.
subroutine, public ufo_seaicethick_simobs_ad(self, geovals, hofx)
subroutine ufo_seaicethick_tlad_delete_c(c_key_self)
type(registry_t) ufo_seaicethick_tlad_registry
Linked list interface - defines registry_t type.
subroutine ufo_seaicethick_tlad_setup_c(c_key_self, c_conf)
Linked list implementation.
subroutine ufo_seaicethick_simobs_ad_c(c_key_self, c_key_geovals, c_nobs, c_hofx)
subroutine, public ufo_seaicethick_simobs_tl(self, geovals, hofx)
Fortran module to handle ice concentration observations.
subroutine ufo_seaicethick_tlad_settraj_c(c_key_self, c_key_geovals)
type to hold interpolated fields required by the obs operators
subroutine, public ufo_seaicethick_tlad_delete(self)
type(registry_t), public ufo_geovals_registry
Linked list interface - defines registry_t type.
subroutine, public ufo_seaicethick_tlad_settraj(self, geovals)