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

Getting SD4SOLPS running on omega.gat.com #44

Open
eldond opened this issue Feb 15, 2024 · 3 comments
Open

Getting SD4SOLPS running on omega.gat.com #44

eldond opened this issue Feb 15, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@eldond
Copy link
Collaborator

eldond commented Feb 15, 2024

Don't use julia v1.10.1 on omega; it has a certificate problem and can't update its registry. v1.10.0 works. To change versions:

juliaup add 1.10.0
juliaup default 1.10.0
  1. First, follow steps 1-8 of the instructions for getting started with FUSE on the OMEGA cluster but change the path from /fusion/ga/projects/ird/ptp/ to /fusion/projects/sparc/detach_ctrl/. The end of the path from $USER onward can stay the same. Instead of being added to the ptp group, you should be added to the sparc_detach_ctrl group.
    image

  2. Clone the SD4SOLPS repos. Setting up SSH keys with GitHub is needed for this.

git clone git@github.com/JuliaFusion/EFIT.jl EFIT
git clone git@github.com:ProjectTorreyPines/OMAS.jl OMAS
git clone git@github.com:ProjectTorreyPines/GGDUtils.jl GGDUtils
git clone git@github.com:ProjectTorreyPines/SOLPS2IMAS.jl SOLPS2IMAS
git clone git@github.com:ProjectTorreyPines/SynthDiag.jl SynthDiag
git clone git@github.com:ProjectTorreyPines/SD4SOLPS.jl SD4SOLPS
  1. Register the cloned projects with julia. For each REPO in EFIT, OMAS, GGDUtils, SOLPS2IMAS, SynthDiag, SD4SOLPS (the order matters):
cd <REPO>
julia
] dev .
  1. Add other dependencies in julia
] add YAML
] add Plots
] add Unitful
] add Interpolations
] add ArgParse
  1. Clone the samples with dvc so the tests will run. For each in GGDUtils/samples, SynthDiag/samples, SOLPS2IMAS/samples, SD4SOLPS/samples
/fusion/projects/sparc/detach_ctrl/$USER/miniconda3/bin/conda install -c conda-forge dvc
/fusion/projects/sparc/detach_ctrl/$USER/miniconda3/bin/conda install -c conda-forge dvc-ssh  # In both of these, I'm not sure if `-c conda-forge` is needed.
cd <path that has dvc samples>
dvc pull
  1. Run tests. In each path of EFIT, OMAS, GGDUtils, SOLPS2IMAS, SynthDiag, SD4SOLPS:
cd path
julia
using Revise
include("test/runtests.jl")

and it should work. Using Revise is not required at this stage but it's probably a habit that will save headaches later, so you might as well get started now.

@orso82
Copy link
Member

orso82 commented Feb 15, 2024

@eldond please note that only people with access to the FUSE repo (which I remind you is IR&D) have access to the fuse.help website.

@eldond
Copy link
Collaborator Author

eldond commented Feb 15, 2024

@eldond please note that only people with access to the FUSE repo (which I remind you is IR&D) have access to the fuse.help website.

oh, bother. Okay, I'll put a screenshot then. Thanks.

@eldond eldond added the documentation Improvements or additions to documentation label Feb 15, 2024
@eldond
Copy link
Collaborator Author

eldond commented Feb 15, 2024

@orso82 @dautt-silva @bclyons12 @anchal-physics I got all the tests (in SD4SOLPS, SOLPS2IMAS, ...) to pass on omega using this procedure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants