-
Notifications
You must be signed in to change notification settings - Fork 146
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
Allow EGSnrc applications to run from any directory #1212
Comments
The impact of this sounds quite widespread, would it be better to break this into two stages
I say this after having set up a git repositor of $EGS_HOME specially configured so that my input files don't go disappearing on me |
I am not sure what you mean @crcrewso, so in turn I wonder if what I said was clear. All I am suggesting is that the directory I don't expect this to be a breaking change. Application could still compile to egs_home/bin, but one should be able to run them from any location. |
I reread both your post and your response, you were clear, I had been thinking that any change allowing any file location variance would be a breaking change. I can now see what you were going for, any change would be a good one. My issues with organization have been:
|
I agree with all three points you raised: ongoing grief when using EGSnrc, for many (most?) EGSnrc users, myself included.
|
I just had a whole new idea. |
I like the way you think! 😄 For a long time I pondered on an overall But in the short term, why even build a front end to maintain an outdated system that is rigid when it comes to file locations etc. If we simply allow Interestingly, when we teach an EGSnrc course, the participants that know linux the most are the one struggling with the EGSnrc file system rigidity the most, because it does not behave as expected! |
My worry is that identifying all of the references to file locations is a higher risk than just wrapping the existing code and leaving it alone. I know, a kludge. |
Yes, once I start looking I might change my mind! 😀 |
Problem Description
EGSnrc currently requires input files for an application to reside inside the application's directory in
$EGS_HOME
. This is also where output files are written. This constraint makes managing multiple projects cumbersome, as the directory becomes cluttered with input and output files from unrelated projects over time.Proposed Solution
Enable EGSnrc applications to run from any directory, allowing simulation input and output to be isolated in their own project-specific directories. The application directory in
$EGS_HOME
would still be used for source files, and users could continue to run applications there as before. However, it should also be possible to run applications from any other location. This would match the expected behaviour of all other commands entered in the terminal.Ideally, this enhancement would go a step further and also allow compilation of any EGSnrc application code anywhere. This change would essentially make
$EGS_HOME
obsolete for regular usage, allowing EGSnrc to function more like a standard software library toolkit.Alternatives Considered
Long-time users of EGSnrc often develop workarounds, such as:
While these methods work, they are cumbersome and error-prone.
Steps to Implement
./
) for input and output.Feedback on this proposal is welcome, especially regarding potential issues or improvements for implementation.
The text was updated successfully, but these errors were encountered: