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

Userspace install of the libraries #10

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

kozmad
Copy link

@kozmad kozmad commented Nov 27, 2022

Dear openmsr developers,

I was working on issue tickets #5 and #6.
I've created some modifications for Ubuntu22.04 to make these functionalities available.
My concept was to install all the dependent libraries solely into a predefined userspace folder (currently it is $HOME/openmc).
The default definitions of the corresponding environmental variables:

# set the path to the nuclear database
export OPENMC_CROSS_SECTIONS=$HOME"/openmc/nuclear_data/mcnp_endfb71/cross_sections.xml"
# set custom version of pyMOAB
export PYTHONPATH=$PYTHONPATH:$HOME"/openmc/MOAB/build/pymoab/"
# set custom version of CAD_to_openMC
export PYTHONPATH=$PYTHONPATH:$HOME"/openmc/CAD_to_openMC/src/"
# set custom version of OpenMC
export PYTHONPATH=$PYTHONPATH:$HOME"/openmc/openmc/"
export PATH=$PATH:$HOME"/openmc/openmc/build/bin/"

In this way, one can modify all the underlying code without reinstalling that and different versions of OpenMC can be stored beside each other (e.g. $HOME"/openmc/openmc_varA/" and $HOME"/openmc/openmc_varB/" )

The test workflow has been extended with the 3d model conversion and the sample simulation.
(A single hack, i.e. sudo pip install -U numpy was needed due to some numpy API error)

Cheers,
Daniel

@ebknudsen
Copy link
Collaborator

Hi @kozmad, Thank you very much for the edits and your work.
I'm think the process you outline here, is in essence good. It is definitely true that it would be useful to be able to have several versions next to each other as depending on environment variables.
Please allow me a little time for testing your edits and I'll get back to you.

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.

2 participants