kim-api  2.2.1+v2.2.1.GNU.GNU.
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
kim_supported_extensions_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--2020, 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-2.2.1 package.
31 !
32 
39  use, intrinsic :: iso_c_binding
40  implicit none
41  private
42 
43  public &
44  ! Derived types
45  kim_supported_extensions_type, &
46  ! Constants
50 
51  character(len=*, kind=c_char), parameter &
52  :: kim_supported_extensions_id = "KIM_SupportedExtensions"
53  integer(c_int), parameter :: kim_max_extension_id_length = 128
54  integer(c_int), parameter :: kim_max_number_of_extensions = 64
55 
61  type, bind(c) :: kim_supported_extensions_type
68  integer(c_int) number_of_supported_extensions
69 
76  character(c_char) supported_extension_id(kim_max_extension_id_length, &
78 
85  integer(c_int) supported_extension_required(kim_max_number_of_extensions)
86  end type kim_supported_extensions_type
integer(c_int), parameter, public kim_max_extension_id_length
character(len= *, kind=c_char), parameter, public kim_supported_extensions_id
The only standard extension defined by the KIM API.
integer(c_int), parameter, public kim_max_number_of_extensions