Skip to content

Update Dane (LC) setup scripts - #7212

Merged
dpgrote merged 7 commits into
BLAST-WarpX:developmentfrom
dpgrote:update_dane_setup_scripts
Aug 28, 2026
Merged

Update Dane (LC) setup scripts#7212
dpgrote merged 7 commits into
BLAST-WarpX:developmentfrom
dpgrote:update_dane_setup_scripts

Conversation

@dpgrote

@dpgrote dpgrote commented Aug 27, 2026

Copy link
Copy Markdown
Member

This updates the setup scripts on dane (at LLNL) to use the latest version of the modules. It also now includes the optional build of PETSC. Some other cleanup was done.

@ax3l
ax3l self-requested a review August 28, 2026 20:21
@ax3l ax3l self-assigned this Aug 28, 2026
@ax3l
ax3l requested a review from atmyers August 28, 2026 20:21
@ax3l ax3l added component: documentation Docs, readme and manual install machine / system Machine or system-specific issue labels Aug 28, 2026
Comment thread Tools/machines/dane-llnl/dane_warpx.profile.example
Comment thread Tools/machines/dane-llnl/install_dependencies.sh Outdated
Comment thread Tools/machines/dane-llnl/install_dependencies.sh
Comment on lines +129 to +134
EXPECTED_VENV="${WARPX_SW_DIR}/venvs/warpx-dane"
if [[ -n "${VIRTUAL_ENV:-}" &&
"$(realpath "$VIRTUAL_ENV")" == "$(realpath "$EXPECTED_VENV")" ]]; then
# If it is activated
deactivate
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Complicated and appears redundant to lines 30ff.:

# Make sure that a virtual environment is not already activated
if declare -F deactivate &>/dev/null; then
  deactivate
fi

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was seeing odd errors at this point when testing this script and running it multiple times. The script was acting like the virtual environment was still activated. After it removed the warpx-dane venv it couldn't find python3. Doing the deactivate here seemed to fix it. But I agree this is redundant so removed it.

@ax3l ax3l changed the title Update dane setup scripts Update Dane (LC) setup scripts Aug 28, 2026

@JustinRayAngus JustinRayAngus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Dave

@dpgrote
dpgrote merged commit 5f0929e into BLAST-WarpX:development Aug 28, 2026
47 checks passed
@dpgrote
dpgrote deleted the update_dane_setup_scripts branch August 28, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: documentation Docs, readme and manual install machine / system Machine or system-specific issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants