Skip to content

Commit c2d232a

Browse files
committed
Updates to bindings.
1 parent 326c6d4 commit c2d232a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

RustBCA.h

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct OutputBCA {
6666

6767
struct InputSimpleBCA {
6868
uintptr_t len;
69-
// vx vy vz [m/s]
69+
/// vx, vy, vz
7070
double (*velocities)[3];
7171
double Z1;
7272
double m1;
@@ -80,10 +80,29 @@ struct InputSimpleBCA {
8080
double Eb2;
8181
};
8282

83+
struct InputCompoundBCA {
84+
uintptr_t len;
85+
/// vx, vy, vz
86+
double (*velocities)[3];
87+
double Z1;
88+
double m1;
89+
double Ec1;
90+
double Es1;
91+
uintptr_t num_species_target;
92+
double *Z2;
93+
double *m2;
94+
double *n2;
95+
double *Ec2;
96+
double *Es2;
97+
double *Eb2;
98+
};
99+
83100
extern "C" {
84101

85102
OutputBCA simple_bca_list_c(InputSimpleBCA input);
86103

104+
OutputBCA compound_bca_list_c(InputCompoundBCA input);
105+
87106
OutputBCA simple_bca_c(double x,
88107
double y,
89108
double z,

0 commit comments

Comments
 (0)