Skip to content

Update to RustBCA.h. #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions RustBCA.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,38 @@ struct InputCompoundBCA {
double *Eb2;
};

struct OutputTaggedBCA {
uintptr_t len;
double (*particles)[9];
double *weights;
int32_t *tags;
};

struct InputTaggedBCA {
uintptr_t len;
/// x y z
double (*positions)[3];
/// vx, vy, vz
double (*velocities)[3];
double Z1;
double m1;
double Ec1;
double Es1;
uintptr_t num_species_target;
double *Z2;
double *m2;
double *n2;
double *Ec2;
double *Es2;
double *Eb2;
int32_t *tags;
double *weights;
};

extern "C" {

OutputTaggedBCA compound_tagged_bca_list_c(InputTaggedBCA input);

OutputBCA simple_bca_list_c(InputSimpleBCA input);

OutputBCA compound_bca_list_c(InputCompoundBCA input);
Expand Down