FV3 Bundle
ufo_gnssro_bndgsi_interface.F90
Go to the documentation of this file.
1 ! (C) Copyright 2017 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 gnssro observations-bending angle 1d operator in GSI
7 
9 
10  use iso_c_binding
11  use config_mod
13 
14  implicit none
15  private
16 
17 #define LISTED_TYPE ufo_gnssro_BndGSI
18 
19  !> Linked list interface - defines registry_t type
20 #include "../../../linkedList_i.f"
21 
22  !> Global registry
23  type(registry_t) :: ufo_gnssro_bndgsi_registry
24 
25  ! ------------------------------------------------------------------------------
26 contains
27  ! ------------------------------------------------------------------------------
28  !> Linked list implementation
29 #include "../../../linkedList_c.f"
30 
31 ! ------------------------------------------------------------------------------
32 
33 subroutine ufo_gnssro_bndgsi_setup_c(c_key_self, c_conf) bind(c,name='ufo_gnssro_bndgsi_setup_f90')
34 implicit none
35 integer(c_int), intent(inout) :: c_key_self
36 type(c_ptr), intent(in) :: c_conf
37 
38 type(ufo_gnssro_BndGSI), pointer :: self
39 
40 call ufo_gnssro_bndgsi_registry%setup(c_key_self, self)
41 
42 end subroutine ufo_gnssro_bndgsi_setup_c
43 
44 ! ------------------------------------------------------------------------------
45 
46 subroutine ufo_gnssro_bndgsi_delete_c(c_key_self) bind(c,name='ufo_gnssro_bndgsi_delete_f90')
47 implicit none
48 integer(c_int), intent(inout) :: c_key_self
49 
50 type(ufo_gnssro_BndGSI), pointer :: self
51 
52 call ufo_gnssro_bndgsi_registry%delete(c_key_self,self)
53 
54 end subroutine ufo_gnssro_bndgsi_delete_c
55 
56 ! ------------------------------------------------------------------------------
57 
58 subroutine ufo_gnssro_bndgsi_simobs_c(c_key_self, c_key_geovals, c_obsspace, c_nobs, c_hofx, c_bias) bind(c,name='ufo_gnssro_bndgsi_simobs_f90')
59 
60 implicit none
61 integer(c_int), intent(in) :: c_key_self
62 integer(c_int), intent(in) :: c_key_geovals
63 type(c_ptr), value, intent(in) :: c_obsspace
64 integer(c_int), intent(in) :: c_nobs
65 real(c_double), intent(inout) :: c_hofx(c_nobs)
66 integer(c_int), intent(in) :: c_bias
67 
68 type(ufo_gnssro_BndGSI), pointer :: self
69 
70 character(len=*), parameter :: myname_="ufo_gnssro_bndgsi_simobs_c"
71 call ufo_gnssro_bndgsi_registry%get(c_key_self, self)
72 call self%opr_simobs(c_key_geovals, c_obsspace, c_hofx)
73 
74 end subroutine ufo_gnssro_bndgsi_simobs_c
75 
76 ! ------------------------------------------------------------------------------
77 
78 end module ufo_gnssro_bndgsi_mod_c
type(registry_t) ufo_gnssro_bndgsi_registry
Linked list interface - defines registry_t type.
subroutine ufo_gnssro_bndgsi_delete_c(c_key_self)
subroutine ufo_gnssro_bndgsi_simobs_c(c_key_self, c_key_geovals, c_obsspace, c_nobs, c_hofx, c_bias)
Fortran module to handle gnssro observations-bending angle 1d operator in GSI.
subroutine ufo_gnssro_bndgsi_setup_c(c_key_self, c_conf)
Linked list implementation.
Fortran module to handle gnssro bending angle observations following the NCEP/GSI (2018 Aug) implemen...