1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
|
/* */
/* KIM-API: An API for interatomic models */
/* Copyright (c) 2013--2022, Regents of the University of Minnesota. */
/* All rights reserved. */
/* */
/* Contributors: */
/* Ryan S. Elliott */
/* */
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* */
/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation; either */
/* version 2.1 of the License, or (at your option) any later version. */
/* */
/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* Lesser General Public License for more details. */
/* */
/* You should have received a copy of the GNU Lesser General Public License */
/* along with this library; if not, write to the Free Software Foundation, */
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
/* */
/* */
/* Release: This file is part of the kim-api.git repository. */
/* */
#ifndef KIM_FUNCTION_TYPES_H_
#define KIM_FUNCTION_TYPES_H_
/* Forward declarations */
#ifndef KIM_LENGTH_UNIT_DEFINED_
#define KIM_LENGTH_UNIT_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_LengthUnit KIM_LengthUnit;
#endif
#ifndef KIM_ENERGY_UNIT_DEFINED_
#define KIM_ENERGY_UNIT_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_EnergyUnit KIM_EnergyUnit;
#endif
#ifndef KIM_CHARGE_UNIT_DEFINED_
#define KIM_CHARGE_UNIT_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ChargeUnit KIM_ChargeUnit;
#endif
#ifndef KIM_TEMPERATURE_UNIT_DEFINED_
#define KIM_TEMPERATURE_UNIT_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_TemperatureUnit KIM_TemperatureUnit;
#endif
#ifndef KIM_TIME_UNIT_DEFINED_
#define KIM_TIME_UNIT_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_TimeUnit KIM_TimeUnit;
#endif
#ifndef KIM_MODEL_CREATE_DEFINED_
#define KIM_MODEL_CREATE_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelCreate KIM_ModelCreate;
#endif
#ifndef KIM_MODEL_DRIVER_CREATE_DEFINED_
#define KIM_MODEL_DRIVER_CREATE_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelDriverCreate KIM_ModelDriverCreate;
#endif
#ifndef KIM_MODEL_COMPUTE_DEFINED_
#define KIM_MODEL_COMPUTE_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelCompute KIM_ModelCompute;
#endif
#ifndef KIM_MODEL_EXTENSION_DEFINED_
#define KIM_MODEL_EXTENSION_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelExtension KIM_ModelExtension;
#endif
#ifndef KIM_MODEL_COMPUTE_ARGUMENTS_CREATE_DEFINED_
#define KIM_MODEL_COMPUTE_ARGUMENTS_CREATE_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelComputeArgumentsCreate KIM_ModelComputeArgumentsCreate;
#endif
#ifndef KIM_MODEL_COMPUTE_ARGUMENTS_DEFINED_
#define KIM_MODEL_COMPUTE_ARGUMENTS_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelComputeArguments KIM_ModelComputeArguments;
#endif
#ifndef KIM_MODEL_REFRESH_DEFINED_
#define KIM_MODEL_REFRESH_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelRefresh KIM_ModelRefresh;
#endif
#ifndef KIM_MODEL_WRITE_PARAMETERIZED_MODEL_DEFINED_
#define KIM_MODEL_WRITE_PARAMETERIZED_MODEL_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelWriteParameterizedModel
KIM_ModelWriteParameterizedModel;
#endif
#ifndef KIM_MODEL_COMPUTE_ARGUMENTS_DESTROY_DEFINED_
#define KIM_MODEL_COMPUTE_ARGUMENTS_DESTROY_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelComputeArgumentsDestroy
KIM_ModelComputeArgumentsDestroy;
#endif
#ifndef KIM_MODEL_DESTROY_DEFINED_
#define KIM_MODEL_DESTROY_DEFINED_
/**
** \brief Forward declaration.
**
** \since 2.0
**/
typedef struct KIM_ModelDestroy KIM_ModelDestroy;
#endif
/**
** \brief \copybrief KIM::Function
**
** \sa KIM::Function
**
** \since 2.0
**/
typedef void(KIM_Function)(void); /* Generic function pointer */
/**
** \brief \copybrief KIM::ModelCreateFunction
**
** \sa KIM::ModelCreateFunction, kim_model_module::kim_model_create
**
** \since 2.0
**/
typedef int
KIM_ModelCreateFunction(KIM_ModelCreate * const modelCreate,
KIM_LengthUnit const requestedLengthUnit,
KIM_EnergyUnit const requestedEnergyUnit,
KIM_ChargeUnit const requestedChargeUnit,
KIM_TemperatureUnit const requestedTemperatureUnit,
KIM_TimeUnit const requestedTimeUnit);
/**
** \brief \copybrief KIM::ModelDriverCreateFunction
**
** \sa KIM::ModelDriverCreateFunction, kim_model_module::kim_model_create
**
** \since 2.0
**/
typedef int KIM_ModelDriverCreateFunction(
KIM_ModelDriverCreate * const modelDriverCreate,
KIM_LengthUnit const requestedLengthUnit,
KIM_EnergyUnit const requestedEnergyUnit,
KIM_ChargeUnit const requestedChargeUnit,
KIM_TemperatureUnit const requestedTemperatureUnit,
KIM_TimeUnit const requestedTimeUnit);
/**
** \brief \copybrief KIM::ModelComputeArgumentsCreateFunction
**
** \sa KIM::ModelComputeArgumentsCreateFunction,
** kim_model_module::kim_model_compute_arguments_create
**
** \since 2.0
**/
typedef int KIM_ModelComputeArgumentsCreateFunction(
KIM_ModelCompute const * const modelCompute,
KIM_ModelComputeArgumentsCreate * const modelComputeArgumentsCreate);
/**
** \brief \copybrief KIM::ModelComputeFunction
**
** \sa KIM::ModelComputeFunction, kim_model_module::kim_model_compute
**
** \since 2.0
**/
typedef int KIM_ModelComputeFunction(
KIM_ModelCompute const * const modelCompute,
KIM_ModelComputeArguments const * const modelComputeArguments);
/**
** \brief \copybrief KIM::GetNeighborListFunction
**
** \sa KIM::GetNeighborListFunction, kim_model_compute_arguments_module::<!--
** -->kim_model_compute_arguments_get_neighbor_list
**
** \since 2.0
**/
typedef int KIM_GetNeighborListFunction(void * const dataObject,
int const numberOfNeighborLists,
double const * const cutoffs,
int const neighborListIndex,
int const particleNumber,
int * const numberOfNeighbors,
int const ** const neighborsOfParticle);
/**
** \brief \copybrief KIM::ProcessDEDrTermFunction
**
** \sa KIM::ProcessDEDrTermFunction, kim_model_compute_arguments_module::<!--
** -->kim_model_compute_arguments_process_dedr_term
**
** \since 2.0
**/
typedef int KIM_ProcessDEDrTermFunction(void * const dataObject,
double const de,
double const r,
double const * const dx,
int const i,
int const j);
/**
** \brief \copybrief KIM::ProcessD2EDr2TermFunction
**
** \sa KIM::ProcessD2EDr2TermFunction,
** kim_model_compute_arguments_module::<!--
** -->kim_model_compute_arguments_process_d2edr2_term
**
** \since 2.0
**/
typedef int KIM_ProcessD2EDr2TermFunction(void * const dataObject,
double const de,
double const * const r,
double const * const dx,
int const * const i,
int const * const j);
/**
** \brief \copybrief KIM::ModelExtensionFunction
**
** \sa KIM::ModelExtensionFunction, kim_model_module::kim_model_extension
**
** \since 2.0
**/
typedef int
KIM_ModelExtensionFunction(KIM_ModelExtension * const modelExtension,
void * const extensionStructure);
/**
** \brief \copybrief KIM::ModelRefreshFunction
**
** \sa KIM::ModelRefreshFunction,
** kim_model_module::kim_model_clear_then_refresh
**
** \since 2.0
**/
typedef int KIM_ModelRefreshFunction(KIM_ModelRefresh * const modelRefresh);
/**
** \brief \copybrief KIM::ModelWriteParameterizedModelFunction
**
** \sa KIM::ModelWriteParameterizedModelFunction, kim_model_module::<!--
** kim_model_write_parameterized_model_function
**
** \since 2.0
**/
typedef int KIM_ModelWriteParameterizedModelFunction(
KIM_ModelWriteParameterizedModel const * const
modelWriteParameterizedModel);
/**
** \brief \copybrief KIM::ModelComputeArgumentsDestroyFunction
**
** \sa KIM::ModelComputeArgumentsDestroyFunction, kim_model_module::<!--
** -->kim_model_compute_arguments_destroy
**
** \since 2.0
**/
typedef int KIM_ModelComputeArgumentsDestroyFunction(
KIM_ModelCompute const * const modelCompute,
KIM_ModelComputeArgumentsDestroy * const modelComputeArgumentsDestroy);
/**
** \brief \copybrief KIM::ModelDestroyFunction
**
** \sa KIM::ModelDestroyFunction, kim_model_module::kim_model_destroy
**
** \since 2.0
**/
typedef int KIM_ModelDestroyFunction(KIM_ModelDestroy * const modelDestroy);
/**
** \brief \copybrief KIM::LogPrintFunction
**
** \sa KIM::LogPrintFunction,
** kim_log_module::kim_log_push_default_print_function
**
** \since 2.2
**/
typedef int KIM_LogPrintFunction(char const * const entryString);
#endif /* KIM_FUNCTION_TYPES_H_ */
|