OOPS
qg_locs_interface.f
Go to the documentation of this file.
1 ! (C) Copyright 2019 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 !> This Define interfaces for accessing C++ LocationsQG objects from Fortran
7 
8 !-------------------------------------------------------------------------------
9 interface
10 !-------------------------------------------------------------------------------
11 function qg_locs_nlocs_c(locs) bind(C,name="qg_locs_nlocs_f90")
12  use iso_c_binding, only: c_ptr, c_int
13  integer(c_int) :: qg_locs_nlocs_c
14  type(c_ptr), value :: locs
15 end function
16 
17 function qg_locs_lonlat_c(locs) bind(C,name="qg_locs_lonlat_f90")
18  use iso_c_binding, only: c_ptr
19  type(c_ptr) :: qg_locs_lonlat_c
20  type(c_ptr), value :: locs
21 end function
22 
23 function qg_locs_altitude_c(locs) bind(C,name="qg_locs_altitude_f90")
24  use iso_c_binding, only: c_ptr
25  type(c_ptr) :: qg_locs_altitude_c
26  type(c_ptr), value :: locs
27 end function
28 
29 function qg_locs_times_c(locs, idx) bind(C,name="qg_locs_times_f90")
30  use iso_c_binding, only: c_ptr, c_size_t
31  type(c_ptr) :: qg_locs_times_c
32  type(c_ptr), value :: locs
33  integer(c_size_t) idx
34 end function
35 
36 !-------------------------------------------------------------------------------
37 end interface
38 !-------------------------------------------------------------------------------
This Define interfaces for accessing C++ LocationsQG objects from Fortran.