KIM API V2
kim_callback_name_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_callback_name_type, &
41  kim_callback_name_from_string, &
42  operator (.eq.), &
43  operator (.ne.), &
44  kim_callback_name_string, &
45 
49 
50  kim_callback_name_get_number_of_callbacks, &
51  kim_callback_name_get_callback_name
52 
53  type, bind(c) :: kim_callback_name_type
54  integer(c_int) callback_name_id
55  end type kim_callback_name_type
56 
57  type(kim_callback_name_type), protected, &
58  bind(c, name="KIM_CALLBACK_NAME_GetNeighborList") &
60  type(kim_callback_name_type), protected, &
61  bind(c, name="KIM_CALLBACK_NAME_ProcessDEDrTerm") &
63  type(kim_callback_name_type), protected, &
64  bind(c, name="KIM_CALLBACK_NAME_ProcessD2EDr2Term") &
66 
67  interface operator (.eq.)
68  logical function kim_callback_name_equal(left, right)
69  use, intrinsic :: iso_c_binding
70  import kim_callback_name_type
71  implicit none
72  type(kim_callback_name_type), intent(in) :: left
73  type(kim_callback_name_type), intent(in) :: right
74  end function kim_callback_name_equal
75  end interface operator (.eq.)
76 
77  interface
78  subroutine kim_callback_name_from_string(string, callback_name)
79  import kim_callback_name_type
80  implicit none
81  character(len=*), intent(in) :: string
82  type(kim_callback_name_type), intent(out) :: callback_name
83  end subroutine kim_callback_name_from_string
84 
85  subroutine kim_callback_name_string(callback_name, string)
86  import kim_callback_name_type
87  implicit none
88  type(kim_callback_name_type), intent(in), value :: callback_name
89  character(len=*), intent(out) :: string
90  end subroutine kim_callback_name_string
91 
92  subroutine kim_callback_name_get_number_of_callbacks(number_of_callbacks)
93  use, intrinsic :: iso_c_binding
94  implicit none
95  integer(c_int), intent(out) :: number_of_callbacks
96  end subroutine kim_callback_name_get_number_of_callbacks
97 
98  subroutine kim_callback_name_get_callback_name(index, callback_name, &
99  ierr)
100  use, intrinsic :: iso_c_binding
101  import kim_callback_name_type
102  implicit none
103  integer(c_int), intent(in), value :: index
104  type(kim_callback_name_type), intent(out) :: callback_name
105  integer(c_int), intent(out) :: ierr
106  end subroutine kim_callback_name_get_callback_name
107  end interface
108 end module kim_callback_name_module
type(kim_callback_name_type), public, protected kim_callback_name_process_dedr_term
type(kim_callback_name_type), public, protected kim_callback_name_get_neighbor_list
type(kim_callback_name_type), public, protected kim_callback_name_process_d2edr2_term