KIM API V2
kim_compute_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-beta.1 package.
31 !
32 
33 
35  use, intrinsic :: iso_c_binding
36  implicit none
37  private
38 
39  public &
40  kim_compute_callback_name_type, &
41  kim_compute_callback_name_from_string, &
42  operator (.eq.), &
43  operator (.ne.), &
44  kim_compute_callback_name_string, &
45 
49 
50  kim_compute_callback_name_get_number_of_compute_callback_names, &
51  kim_compute_callback_name_get_compute_callback_name
52 
53 
54  type, bind(c) :: kim_compute_callback_name_type
55  integer(c_int) compute_callback_name_id
56  end type kim_compute_callback_name_type
57 
58  type(kim_compute_callback_name_type), protected, &
59  bind(c, name="KIM_COMPUTE_CALLBACK_NAME_GetNeighborList") &
61  type(kim_compute_callback_name_type), protected, &
62  bind(c, name="KIM_COMPUTE_CALLBACK_NAME_ProcessDEDrTerm") &
64  type(kim_compute_callback_name_type), protected, &
65  bind(c, name="KIM_COMPUTE_CALLBACK_NAME_ProcessD2EDr2Term") &
67 
68  interface operator (.eq.)
69  logical function kim_compute_callback_name_equal(left, right)
70  use, intrinsic :: iso_c_binding
71  import kim_compute_callback_name_type
72  implicit none
73  type(kim_compute_callback_name_type), intent(in) :: left
74  type(kim_compute_callback_name_type), intent(in) :: right
75  end function kim_compute_callback_name_equal
76  end interface operator (.eq.)
77 
78  interface
79  subroutine kim_compute_callback_name_from_string(string, &
80  compute_callback_name)
81  use, intrinsic :: iso_c_binding
82  import kim_compute_callback_name_type
83  implicit none
84  character(len=*, kind=c_char), intent(in) :: string
85  type(kim_compute_callback_name_type), intent(out) :: compute_callback_name
86  end subroutine kim_compute_callback_name_from_string
87 
88  subroutine kim_compute_callback_name_string(compute_callback_name, string)
89  use, intrinsic :: iso_c_binding
90  import kim_compute_callback_name_type
91  implicit none
92  type(kim_compute_callback_name_type), intent(in), value :: &
93  compute_callback_name
94  character(len=*, kind=c_char), intent(out) :: string
95  end subroutine kim_compute_callback_name_string
96 
97  subroutine kim_compute_callback_name_get_number_of_compute_callback_names( &
98  number_of_compute_callback_names)
99  use, intrinsic :: iso_c_binding
100  implicit none
101  integer(c_int), intent(out) :: number_of_compute_callback_names
102  end subroutine &
103  kim_compute_callback_name_get_number_of_compute_callback_names
104 
105  subroutine kim_compute_callback_name_get_compute_callback_name(index, &
106  compute_callback_name, ierr)
107  use, intrinsic :: iso_c_binding
108  import kim_compute_callback_name_type
109  implicit none
110  integer(c_int), intent(in), value :: index
111  type(kim_compute_callback_name_type), intent(out) :: compute_callback_name
112  integer(c_int), intent(out) :: ierr
113  end subroutine kim_compute_callback_name_get_compute_callback_name
114  end interface
type(kim_compute_callback_name_type), public, protected kim_compute_callback_name_get_neighbor_list
type(kim_compute_callback_name_type), public, protected kim_compute_callback_name_process_dedr_term
type(kim_compute_callback_name_type), public, protected kim_compute_callback_name_process_d2edr2_term