Skip to content
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

Add a simple template egs++ application egs_app #481

Merged
merged 1 commit into from
Oct 16, 2018
Merged

Conversation

ftessier
Copy link
Member

@ftessier ftessier commented Oct 1, 2018

Provide the simplest possible EGSnrc application, which relies on the
implementation of EGS_AdvancedApplication, to run a simulation described
in an egs++ input file (the provided slab.egsinp, for example).

The code commented below APP_MAIN can serve as a template for deriving an
application class from EGS_AdvancedApplication, and re-implementing the
initScoring method to select ausgab call triggers, and the ausgab method
to handle those calls.

@ftessier
Copy link
Member Author

ftessier commented Oct 1, 2018

Replaced with f3ec72d to add the new code to finalize_egs_foruser.

Copy link
Contributor

@mainegra mainegra left a comment

Choose a reason for hiding this comment

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

@ftessier the macro file is not a must for a simple app. Although it is good to have it there in case an advanced user wants to overwrite existing macros.

@ftessier
Copy link
Member Author

ftessier commented Oct 1, 2018

Good point, I will remove it. Want to keep this one as bare bones as possible.

@ftessier
Copy link
Member Author

ftessier commented Oct 4, 2018

Rebased on develop, no conflict.

@ftessier
Copy link
Member Author

@blakewalters please review when you have a chance. Thanks!

Provide the simplest possible EGSnrc application, which relies on the
implementation of EGS_AdvancedApplication, to run a simulation described
in an egs++ input file (the provided slab.egsinp, for example).

The code commented below APP_MAIN can serve as a template for deriving an
application class from EGS_AdvancedApplication, and re-implementing the
initScoring method to select ausgab call triggers, and the ausgab method
to handle those calls.
@ftessier
Copy link
Member Author

Fixed typo and format in sample input file.

@ftessier ftessier merged commit d0b1ec9 into develop Oct 16, 2018
@ftessier ftessier deleted the egs_app branch October 16, 2018 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants