Skip to content

Getting SD4SOLPS running on omega.gat.com #44

@eldond

Description

@eldond

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions