KIM API V2
kim_compute_argument_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.0 package.
31 !
32 
33 
35  use, intrinsic :: iso_c_binding
36  implicit none
37  private
38 
39  public &
40  kim_compute_argument_name_type, &
41  kim_compute_argument_name_from_string, &
42  operator (.eq.), &
43  operator (.ne.), &
44  kim_compute_argument_name_string, &
45 
55 
56  kim_compute_argument_name_get_number_of_compute_argument_names, &
57  kim_compute_argument_name_get_compute_argument_name, &
58  kim_compute_argument_name_get_compute_argument_data_type
59 
60 
61  type, bind(c) :: kim_compute_argument_name_type
62  integer(c_int) compute_argument_name_id
63  end type kim_compute_argument_name_type
64 
65  type(kim_compute_argument_name_type), protected, &
66  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_numberOfParticles") &
68  type(kim_compute_argument_name_type), protected, &
69  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_particleSpeciesCodes") &
71  type(kim_compute_argument_name_type), protected, &
72  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_particleContributing") &
74  type(kim_compute_argument_name_type), protected, &
75  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_coordinates") &
77  type(kim_compute_argument_name_type), protected, &
78  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_partialEnergy") &
80  type(kim_compute_argument_name_type), protected, &
81  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_partialForces") &
83  type(kim_compute_argument_name_type), protected, &
84  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_partialParticleEnergy") &
86  type(kim_compute_argument_name_type), protected, &
87  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_partialVirial") &
89  type(kim_compute_argument_name_type), protected, &
90  bind(c, name="KIM_COMPUTE_ARGUMENT_NAME_partialParticleVirial") &
92 
93  interface operator (.eq.)
94  logical function kim_compute_argument_name_equal(left, right)
95  use, intrinsic :: iso_c_binding
96  import kim_compute_argument_name_type
97  implicit none
98  type(kim_compute_argument_name_type), intent(in) :: left
99  type(kim_compute_argument_name_type), intent(in) :: right
100  end function kim_compute_argument_name_equal
101  end interface operator (.eq.)
102 
103  interface operator (.ne.)
104  logical function kim_compute_argument_name_not_equal(left, right)
105  use, intrinsic :: iso_c_binding
106  import kim_compute_argument_name_type
107  implicit none
108  type(kim_compute_argument_name_type), intent(in) :: left
109  type(kim_compute_argument_name_type), intent(in) :: right
110  end function kim_compute_argument_name_not_equal
111  end interface operator (.ne.)
112 
113  interface
114  subroutine kim_compute_argument_name_from_string(string, &
115  compute_argument_name)
116  use, intrinsic :: iso_c_binding
117  import kim_compute_argument_name_type
118  implicit none
119  character(len=*, kind=c_char), intent(in) :: string
120  type(kim_compute_argument_name_type), intent(out) :: compute_argument_name
121  end subroutine kim_compute_argument_name_from_string
122 
123  subroutine kim_compute_argument_name_string(compute_argument_name, string)
124  use, intrinsic :: iso_c_binding
125  import kim_compute_argument_name_type
126  implicit none
127  type(kim_compute_argument_name_type), intent(in), value :: &
128  compute_argument_name
129  character(len=*, kind=c_char), intent(out) :: string
130  end subroutine kim_compute_argument_name_string
131 
132  subroutine kim_compute_argument_name_get_number_of_compute_argument_names( &
133  number_of_compute_argument_names)
134  use, intrinsic :: iso_c_binding
135  implicit none
136  integer(c_int), intent(out) :: number_of_compute_argument_names
137  end subroutine &
138  kim_compute_argument_name_get_number_of_compute_argument_names
139 
140  subroutine kim_compute_argument_name_get_compute_argument_name(index, &
141  compute_argument_name, ierr)
142  use, intrinsic :: iso_c_binding
143  import kim_compute_argument_name_type
144  implicit none
145  integer(c_int), intent(in), value :: index
146  type(kim_compute_argument_name_type), intent(out) :: compute_argument_name
147  integer(c_int), intent(out) :: ierr
148  end subroutine kim_compute_argument_name_get_compute_argument_name
149 
150  subroutine kim_compute_argument_name_get_compute_argument_data_type( &
151  compute_argument_name, data_type, ierr)
152  use, intrinsic :: iso_c_binding
153  use kim_data_type_module, only : kim_data_type_type
154  import kim_compute_argument_name_type
155  implicit none
156  type(kim_compute_argument_name_type), intent(in), value :: &
157  compute_argument_name
158  type(kim_data_type_type), intent(out) :: data_type
159  integer(c_int), intent(out) :: ierr
160  end subroutine kim_compute_argument_name_get_compute_argument_data_type
161  end interface
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_coordinates
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_partial_particle_virial
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_partial_virial
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_partial_particle_energy
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_particle_contributing
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_particle_species_codes
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_number_of_particles
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_partial_forces
type(kim_compute_argument_name_type), public, protected kim_compute_argument_name_partial_energy