-
Notifications
You must be signed in to change notification settings - Fork 16
/
efp.f90
530 lines (464 loc) · 18.9 KB
/
efp.f90
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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
! Fortran interface for libefp
module efp
use iso_c_binding
implicit none
! efp_result
integer(kind=c_int), parameter :: EFP_RESULT_SUCCESS = 0
integer(kind=c_int), parameter :: EFP_RESULT_FATAL = 1
integer(kind=c_int), parameter :: EFP_RESULT_NO_MEMORY = 2
integer(kind=c_int), parameter :: EFP_RESULT_FILE_NOT_FOUND = 3
integer(kind=c_int), parameter :: EFP_RESULT_SYNTAX_ERROR = 4
integer(kind=c_int), parameter :: EFP_RESULT_UNKNOWN_FRAGMENT = 5
integer(kind=c_int), parameter :: EFP_RESULT_POL_NOT_CONVERGED = 6
! efp_term
integer(kind=c_int), parameter :: EFP_TERM_ELEC = 1
integer(kind=c_int), parameter :: EFP_TERM_POL = 2
integer(kind=c_int), parameter :: EFP_TERM_DISP = 4
integer(kind=c_int), parameter :: EFP_TERM_XR = 8
integer(kind=c_int), parameter :: EFP_TERM_CHTR = 16
integer(kind=c_int), parameter :: EFP_TERM_AI_ELEC = 32
integer(kind=c_int), parameter :: EFP_TERM_AI_POL = 64
integer(kind=c_int), parameter :: EFP_TERM_AI_DISP = 128
integer(kind=c_int), parameter :: EFP_TERM_AI_XR = 256
integer(kind=c_int), parameter :: EFP_TERM_AI_CHTR = 512
! efp_disp_damp
integer(kind=c_int), parameter :: EFP_DISP_DAMP_OVERLAP = 0
integer(kind=c_int), parameter :: EFP_DISP_DAMP_TT = 1
integer(kind=c_int), parameter :: EFP_DISP_DAMP_OFF = 2
! efp_elec_damp
integer(kind=c_int), parameter :: EFP_ELEC_DAMP_SCREEN = 0
integer(kind=c_int), parameter :: EFP_ELEC_DAMP_OVERLAP = 1
integer(kind=c_int), parameter :: EFP_ELEC_DAMP_OFF = 2
! efp_pol_damp
integer(kind=c_int), parameter :: EFP_POL_DAMP_TT = 0
integer(kind=c_int), parameter :: EFP_POL_DAMP_OFF = 1
! efp_coord_type
integer(kind=c_int), parameter :: EFP_COORD_TYPE_XYZABC = 0
integer(kind=c_int), parameter :: EFP_COORD_TYPE_POINTS = 1
integer(kind=c_int), parameter :: EFP_COORD_TYPE_ROTMAT = 2
type, bind(c) :: efp_opts
integer(kind=c_int) terms
integer(kind=c_int) disp_damp
integer(kind=c_int) elec_damp
integer(kind=c_int) pol_damp
integer(kind=c_int) pol_driver
integer(kind=c_int) enable_pbc
integer(kind=c_int) enable_cutoff
real(kind=c_double) swf_cutoff
end type efp_opts
type, bind(c) :: efp_energy
real(kind=c_double) :: electrostatic
real(kind=c_double) :: charge_penetration
real(kind=c_double) :: electrostatic_point_charges
real(kind=c_double) :: polarization
real(kind=c_double) :: dispersion
real(kind=c_double) :: ai_dispersion
real(kind=c_double) :: exchange_repulsion
real(kind=c_double) :: total
end type efp_energy
type, bind(c) :: efp_atom
character(kind=c_char) :: label(32)
real(kind=c_double) :: x, y, z
real(kind=c_double) :: mass
real(kind=c_double) :: znuc
end type efp_atom
interface
! const char *efp_banner(void);
function efp_banner() bind(c)
use iso_c_binding, only: c_ptr
type(c_ptr) :: efp_banner
end function
! void efp_print_banner(void);
subroutine efp_print_banner() bind(c)
end subroutine
! efp_t *efp_create(void);
function efp_create() bind(c)
use iso_c_binding, only: c_ptr
type(c_ptr) :: efp_create
end function
! void efp_opts_default(struct efp_opts *opts);
subroutine efp_opts_default(opts) bind(c)
use iso_c_binding, only: c_ptr
type(c_ptr), value :: opts
end subroutine
! efp_result_t efp_set_opts(struct efp *efp, const struct efp_opts *opts);
function efp_set_opts(efp, opts) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_set_opts
type(c_ptr), value :: efp
type(c_ptr), value :: opts
end function
! efp_result_t efp_get_opts(struct efp *efp, struct efp_opts *opts);
function efp_get_opts(efp, opts) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_opts
type(c_ptr), value :: efp
type(c_ptr), value :: opts
end function
! efp_result_t efp_add_potential(struct efp *efp, const char *path);
function efp_add_potential(efp, path) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_char
integer(c_int) :: efp_add_potential
type(c_ptr), value :: efp
character(kind=c_char), dimension(*) :: path
end function
! efp_result_t efp_add_fragment(struct efp *efp, const char *name);
function efp_add_fragment(efp, name) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_char
integer(c_int) :: efp_add_fragment
type(c_ptr), value :: efp
character(kind=c_char), dimension(*) :: name
end function
! efp_result_t efp_prepare(struct efp *efp);
function efp_prepare(efp) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_prepare
type(c_ptr), value :: efp
end function
! efp_result_t efp_skip_fragments(struct efp *efp, size_t i, size_t j, int value);
function efp_skip_fragments(efp, i, j, value) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_skip_fragments
type(c_ptr), value :: efp
integer(c_size_t), value :: i
integer(c_size_t), value :: j
integer(c_int), value :: value
end function
! efp_result_t efp_set_electron_density_field_fn(struct efp *efp, efp_electron_density_field_fn fn);
function efp_set_electron_density_field_fn(efp, fn) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_funptr
integer(c_int) :: efp_set_electron_density_field_fn
type(c_ptr), value :: efp
type(c_funptr), value :: fn
end function
! efp_result_t efp_set_electron_density_field_user_data(struct efp *efp, void *user_data);
function efp_set_electron_density_field_user_data(efp, user_data) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_set_electron_density_field_user_data
type(c_ptr), value :: efp
type(c_ptr), value :: user_data
end function
! efp_result_t efp_set_point_charges(struct efp *efp, size_t n_ptc, const double *ptc, const double *xyz);
function efp_set_point_charges(efp, n_ptc, ptc, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_set_point_charges
type(c_ptr), value :: efp
integer(c_size_t), value :: n_ptc
type(c_ptr), value :: ptc
type(c_ptr), value :: xyz
end function
! efp_result_t efp_get_point_charge_count(struct efp *efp, size_t *n_ptc);
function efp_get_point_charge_count(efp, n_ptc) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_point_charge_count
type(c_ptr), value :: efp
type(c_ptr), value :: n_ptc
end function
! efp_result_t efp_get_point_charge_values(struct efp *efp, double *ptc);
function efp_get_point_charge_values(efp, ptc) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_point_charge_values
type(c_ptr), value :: efp
type(c_ptr), value :: ptc
end function
! efp_result_t efp_set_point_charge_values(struct efp *efp, const double *ptc);
function efp_set_point_charge_values(efp, ptc) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_set_point_charge_values
type(c_ptr), value :: efp
type(c_ptr), value :: ptc
end function
! efp_result_t efp_get_point_charge_coordinates(struct efp *efp, double *xyz);
function efp_get_point_charge_coordinates(efp, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_point_charge_coordinates
type(c_ptr), value :: efp
type(c_ptr), value :: xyz
end function
! efp_result_t efp_set_point_charge_coordinates(struct efp *efp, const double *xyz);
function efp_set_point_charge_coordinates(efp, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_set_point_charge_coordinates
type(c_ptr), value :: efp
type(c_ptr), value :: xyz
end function
! efp_result_t efp_get_point_charge_gradient(struct efp *efp, double *grad);
function efp_get_point_charge_gradient(efp, grad) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_point_charge_gradient
type(c_ptr), value :: efp
type(c_ptr), value :: grad
end function
! efp_result_t efp_set_coordinates(struct efp *efp, efp_coord_type_t coord_type, const double *coord);
function efp_set_coordinates(efp, coord_type, coord) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_set_coordinates
type(c_ptr), value :: efp
integer(c_int), value :: coord_type
type(c_ptr), value :: coord
end function
! efp_result_t efp_set_frag_coordinates(struct efp *efp, size_t frag_idx, efp_coord_type_t coord_type, const double *coord);
function efp_set_frag_coordinates(efp, frag_idx, coord_type, coord) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_set_frag_coordinates
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
integer(c_int), value :: coord_type
type(c_ptr), value :: coord
end function
! efp_result_t efp_get_coordinates(struct efp *efp, double *xyzabc);
function efp_get_coordinates(efp, xyzabc) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_coordinates
type(c_ptr), value :: efp
type(c_ptr), value :: xyzabc
end function
! efp_result_t efp_get_frag_xyzabc(struct efp *efp, size_t frag_idx, double *xyzabc);
function efp_get_frag_xyzabc(efp, frag_idx, xyzabc) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_xyzabc
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: xyzabc
end function
! efp_result_t efp_set_periodic_box(struct efp *efp, double x, double y, double z);
function efp_set_periodic_box(efp, x, y, z) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_double
integer(c_int) :: efp_set_periodic_box
type(c_ptr), value :: efp
real(c_double), value :: x
real(c_double), value :: y
real(c_double), value :: z
end function
! efp_result_t efp_get_stress_tensor(struct efp *efp, double *stress);
function efp_get_stress_tensor(efp, stress) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_stress_tensor
type(c_ptr), value :: efp
type(c_ptr), value :: stress
end function
! efp_result_t efp_get_ai_screen(struct efp *efp, size_t frag_idx, double *screen);
function efp_get_ai_screen(efp, frag_idx, screen) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_ai_screen
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: screen
end function
! efp_result_t efp_set_orbital_energies(struct efp *efp, size_t n_core, size_t n_act, size_t n_vir, const double *oe);
function efp_set_orbital_energies(efp, n_core, n_act, n_vir, oe) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_set_orbital_energies
type(c_ptr), value :: efp
integer(c_size_t), value :: n_core
integer(c_size_t), value :: n_act
integer(c_size_t), value :: n_vir
type(c_ptr), value :: oe
end function
! efp_result_t efp_set_dipole_integrals(struct efp *efp, size_t n_core, size_t n_act, size_t n_vir, const double *dipint);
function efp_set_dipole_integrals(efp, n_core, n_act, n_vir, dipint) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_set_dipole_integrals
type(c_ptr), value :: efp
integer(c_size_t), value :: n_core
integer(c_size_t), value :: n_act
integer(c_size_t), value :: n_vir
type(c_ptr), value :: dipint
end function
! efp_result_t efp_get_wavefunction_dependent_energy(struct efp *efp, double *energy);
function efp_get_wavefunction_dependent_energy(efp, energy) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_wavefunction_dependent_energy
type(c_ptr), value :: efp
type(c_ptr), value :: energy
end function
! efp_result_t efp_compute(struct efp *efp, int do_gradient);
function efp_compute(efp, do_gradient) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_compute
type(c_ptr), value :: efp
integer(c_int), value :: do_gradient
end function
! efp_result_t efp_get_frag_charge(struct efp *efp, size_t frag_idx, double *charge);
function efp_get_frag_charge(efp, frag_idx, charge) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_charge
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: charge
end function
! efp_result_t efp_get_frag_multiplicity(struct efp *efp, size_t frag_idx, int *mult);
function efp_get_frag_multiplicity(efp, frag_idx, mult) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_multiplicity
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: mult
end function
! efp_result_t efp_get_frag_multipole_count(struct efp *efp, size_t frag_idx, size_t *n_mult);
function efp_get_frag_multipole_count(efp, frag_idx, n_mult) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_multipole_count
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: n_mult
end function
! efp_result_t efp_get_multipole_count(struct efp *efp, size_t *n_mult);
function efp_get_multipole_count(efp, n_mult) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_multipole_count
type(c_ptr), value :: efp
type(c_ptr), value :: n_mult
end function
! efp_result_t efp_get_multipole_coordinates(struct efp *efp, double *xyz);
function efp_get_multipole_coordinates(efp, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_multipole_coordinates
type(c_ptr), value :: efp
type(c_ptr), value :: xyz
end function
! efp_result_t efp_get_multipole_values(struct efp *efp, double *mult);
function efp_get_multipole_values(efp, mult) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_multipole_values
type(c_ptr), value :: efp
type(c_ptr), value :: mult
end function
! efp_result_t efp_get_induced_dipole_count(struct efp *efp, size_t *n_dip);
function efp_get_induced_dipole_count(efp, n_dip) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_induced_dipole_count
type(c_ptr), value :: efp
type(c_ptr), value :: n_dip
end function
! efp_result_t efp_get_induced_dipole_coordinates(struct efp *efp, double *xyz);
function efp_get_induced_dipole_coordinates(efp, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_induced_dipole_coordinates
type(c_ptr), value :: efp
type(c_ptr), value :: xyz
end function
! efp_result_t efp_get_induced_dipole_values(struct efp *efp, double *dip);
function efp_get_induced_dipole_values(efp, dip) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_induced_dipole_values
type(c_ptr), value :: efp
type(c_ptr), value :: dip
end function
! efp_result_t efp_get_induced_dipole_conj_values(struct efp *efp, double *dip);
function efp_get_induced_dipole_conj_values(efp, dip) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_induced_dipole_conj_values
type(c_ptr), value :: efp
type(c_ptr), value :: dip
end function
! efp_result_t efp_get_lmo_count(struct efp *efp, size_t frag_idx, size_t *n_lmo);
function efp_get_lmo_count(efp, frag_idx, n_lmo) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_lmo_count
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: n_lmo
end function
! efp_result_t efp_get_lmo_coordinates(struct efp *efp, size_t frag_idx, double *xyz);
function efp_get_lmo_coordinates(efp, frag_idx, xyz) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_lmo_coordinates
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: xyz
end function
! efp_result_t efp_get_xrfit(struct efp *efp, size_t frag_idx, double *xrfit);
function efp_get_xrfit(efp, frag_idx, xrfit) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_xrfit
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: xrfit
end function
! efp_result_t efp_get_energy(struct efp *efp, struct efp_energy *energy);
function efp_get_energy(efp, energy) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_energy
type(c_ptr), value :: efp
type(c_ptr), value :: energy
end function
! efp_result_t efp_get_gradient(struct efp *efp, double *grad);
function efp_get_gradient(efp, grad) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_gradient
type(c_ptr), value :: efp
type(c_ptr), value :: grad
end function
! efp_result_t efp_get_frag_count(struct efp *efp, size_t *n_frag);
function efp_get_frag_count(efp, n_frag) bind(c)
use iso_c_binding, only: c_int, c_ptr
integer(c_int) :: efp_get_frag_count
type(c_ptr), value :: efp
type(c_ptr), value :: n_frag
end function
! efp_result_t efp_get_frag_name(struct efp *efp, size_t frag_idx, size_t size, char *frag_name);
function efp_get_frag_name(efp, frag_idx, size, frag_name) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t, c_char
integer(c_int) :: efp_get_frag_name
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
integer(c_size_t), value :: size
character(kind=c_char), dimension(*) :: frag_name
end function
! efp_result_t efp_get_frag_mass(struct efp *efp, size_t frag_idx, double *mass_out);
function efp_get_frag_mass(efp, frag_idx, mass_out) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_mass
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: mass_out
end function
! efp_result_t efp_get_frag_inertia(struct efp *efp, size_t frag_idx, double *inertia_out);
function efp_get_frag_inertia(efp, frag_idx, inertia_out) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_inertia
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: inertia_out
end function
! efp_result_t efp_get_frag_atom_count(struct efp *efp, size_t frag_idx, size_t *n_atoms);
function efp_get_frag_atom_count(efp, frag_idx, n_atoms) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_atom_count
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: n_atoms
end function
! efp_result_t efp_get_frag_atoms(struct efp *efp, size_t frag_idx, size_t size, struct efp_atom *atoms);
function efp_get_frag_atoms(efp, frag_idx, size, atoms) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_frag_atoms
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
integer(c_size_t), value :: size
type(c_ptr), value :: atoms
end function
! efp_result_t efp_get_electric_field(struct efp *efp, size_t frag_idx, const double *xyz, double *field);
function efp_get_electric_field(efp, frag_idx, xyz, field) bind(c)
use iso_c_binding, only: c_int, c_ptr, c_size_t
integer(c_int) :: efp_get_electric_field
type(c_ptr), value :: efp
integer(c_size_t), value :: frag_idx
type(c_ptr), value :: xyz
type(c_ptr), value :: field
end function
! void efp_torque_to_derivative(const double *euler, const double *torque, double *deriv);
subroutine efp_torque_to_derivative(euler, torque, deriv) bind(c)
use iso_c_binding, only: c_ptr
type(c_ptr), value :: euler
type(c_ptr), value :: torque
type(c_ptr), value :: deriv
end subroutine
! void efp_shutdown(struct efp *efp);
subroutine efp_shutdown(efp) bind(c)
use iso_c_binding, only: c_ptr
type(c_ptr), value :: efp
end subroutine
end interface
end module efp