Skip to content

Code cleanup, initialize global accelerator variables#54

Merged
xresende merged 3 commits intomasterfrom
code-cleanup
Aug 16, 2022
Merged

Code cleanup, initialize global accelerator variables#54
xresende merged 3 commits intomasterfrom
code-cleanup

Conversation

@xresende
Copy link
Copy Markdown
Contributor

No description provided.

// energy < electron_rest_energy -> energy = electron_rest_energy:
Accelerator(const double& energy=-1);
double energy; // [eV]
bool cavity_on;
Copy link
Copy Markdown
Contributor Author

@xresende xresende Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these variables were not being initialized. pyaccel was taking care of it but this PR fixes this issue.
also deleted unnecessary semicolons that were generating pedantic warnings at compilation time.

@fernandohds564
Copy link
Copy Markdown
Contributor

@xresende, please wait for #53 to be merged before merging this one and also remember to initialize the quantum excitation variable here.

@xresende xresende merged commit 79f9e07 into master Aug 16, 2022
@xresende xresende deleted the code-cleanup branch August 16, 2022 17:40
@xresende xresende restored the code-cleanup branch August 17, 2022 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants