KIM API V2
kim_model_destroy_module.f90
Go to the documentation of this file.
1 !
2 ! CDDL HEADER START
3 !
4 ! The contents of this file are subject to the terms of the Common Development
5 ! and Distribution License Version 1.0 (the "License").
6 !
7 ! You can obtain a copy of the license at
8 ! http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9 ! specific language governing permissions and limitations under the License.
10 !
11 ! When distributing Covered Code, include this CDDL HEADER in each file and
12 ! include the License file in a prominent location with the name LICENSE.CDDL.
13 ! If applicable, add the following below this CDDL HEADER, with the fields
14 ! enclosed by brackets "[]" replaced with your own identifying information:
15 !
16 ! Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17 !
18 ! CDDL HEADER END
19 !
20 
21 !
22 ! Copyright (c) 2016--2018, Regents of the University of Minnesota.
23 ! All rights reserved.
24 !
25 ! Contributors:
26 ! Ryan S. Elliott
27 !
28 
29 !
30 ! Release: This file is part of the kim-api-v2.0.0-alpha.0 package.
31 !
32 
33 
35  use, intrinsic :: iso_c_binding
36  implicit none
37  private
38 
39  public &
40  kim_model_destroy_handle_type, &
42  operator (.eq.), &
43  operator (.ne.), &
44  kim_model_destroy_get_model_buffer_pointer, &
45  kim_model_destroy_log_entry, &
47 
48  type, bind(c) :: kim_model_destroy_handle_type
49  type(c_ptr) :: p = c_null_ptr
50  end type kim_model_destroy_handle_type
51 
52  type(kim_model_destroy_handle_type), protected, &
53  bind(c,name="KIM_MODEL_DESTROY_null_handle") &
55 
56  interface operator (.eq.)
57  logical function kim_model_destroy_handle_equal(left, right)
58  use, intrinsic :: iso_c_binding
59  import kim_model_destroy_handle_type
60  implicit none
61  type(kim_model_destroy_handle_type), intent(in) :: left
62  type(kim_model_destroy_handle_type), intent(in) :: right
63  end function kim_model_destroy_handle_equal
64  end interface operator (.eq.)
65 
66  interface operator (.ne.)
67  logical function kim_model_destroy_handle_not_equal(left, right)
68  use, intrinsic :: iso_c_binding
69  import kim_model_destroy_handle_type
70  implicit none
71  type(kim_model_destroy_handle_type), intent(in) :: left
72  type(kim_model_destroy_handle_type), intent(in) :: right
73  end function kim_model_destroy_handle_not_equal
74  end interface operator (.ne.)
75 
76  interface
77  subroutine kim_model_destroy_get_model_buffer_pointer( &
78  model_destroy_handle, ptr)
79  use, intrinsic :: iso_c_binding
80  import kim_model_destroy_handle_type
81  implicit none
82  type(kim_model_destroy_handle_type), intent(in) :: model_destroy_handle
83  type(c_ptr), intent(out) :: ptr
84  end subroutine kim_model_destroy_get_model_buffer_pointer
85 
86  subroutine kim_model_destroy_log_entry(model_destroy_handle, &
87  log_verbosity, message, line_number, file_name)
88  use, intrinsic :: iso_c_binding
89  use kim_log_verbosity_module, only : kim_log_verbosity_type
90  import kim_model_destroy_handle_type
91  implicit none
92  type(kim_model_destroy_handle_type), intent(in) :: model_destroy_handle
93  type(kim_log_verbosity_type), intent(in), value :: log_verbosity
94  character(len=*), intent(in) :: message
95  integer(c_int), intent(in), value :: line_number
96  character(len=*), intent(in) :: file_name
97  end subroutine kim_model_destroy_log_entry
98 
99  subroutine kim_model_destroy_string(model_destroy_handle, string)
100  use, intrinsic :: iso_c_binding
101  import kim_model_destroy_handle_type
102  implicit none
103  type(kim_model_destroy_handle_type), intent(in) :: model_destroy_handle
104  character(len=*), intent(out) :: string
105  end subroutine kim_model_destroy_string
106 end interface
107 end module kim_model_destroy_module
type(kim_model_destroy_handle_type), public, protected kim_model_destroy_null_handle