Skip to content

Commit

Permalink
#3600: Store RTW files in share directory in installed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-gill authored May 21, 2024
1 parent e5705db commit 38a42e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
BASH_XTRACEFD=1
set -eux

# Copy the site specific environment file to the 'bin' directory in the
# Copy the site specific environment file to the 'share/bin' directory in the
# installed Cylc workflow (this directory is automatically added to the
# ${PATH} by Cylc).
SOURCE_PATH="${CYLC_WORKFLOW_RUN_DIR}/site/${SITE}-env"
TARGET_DIR="${CYLC_WORKFLOW_RUN_DIR}/bin"
TARGET_DIR="${CYLC_WORKFLOW_SHARE_DIR}/bin"
ENV_FILE="rtw-env"

# Create the 'bin' directory in the installed workflow.
# Create the 'share/bin' directory in the installed workflow.
mkdir "${TARGET_DIR}"

# Copy the environment file to the 'bin' directory.
# Copy the environment file to the 'share/bin' directory.
cp "${SOURCE_PATH}" "${TARGET_DIR}/${ENV_FILE}"
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
env-script = "eval $(rose task-env)"
[[[environment]]]
ENV_NAME = {{ ENV_NAME }}
USER_CONFIG_DIR = ${CYLC_WORKFLOW_RUN_DIR}/etc
USER_CONFIG_DIR = ${ROSE_DATAC}
USER_CONFIG_PATH = ${USER_CONFIG_DIR}/config-user.yml
OUTPUT_DIR = ${CYLC_WORKFLOW_SHARE_DIR}/cycle/${CYLC_TASK_CYCLE_POINT}
OUTPUT_DIR = ${ROSE_DATAC}
ESMVALCORE_DIR = ""
ESMVALTOOL_DIR = ""
PYTHONPATH_PREPEND = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
[runtime]
[[root]]
[[[environment]]]
ESMVALCORE_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValCore
ESMVALTOOL_DIR = ${CYLC_WORKFLOW_RUN_DIR}/lib/ESMValTool
ESMVALCORE_DIR = ${CYLC_WORKFLOW_RUN_DIR}/share/lib/python/ESMValCore
ESMVALTOOL_DIR = ${CYLC_WORKFLOW_RUN_DIR}/share/lib/python/ESMValTool
PYTHONPATH_PREPEND = ${ESMVALCORE_DIR}:${ESMVALTOOL_DIR}

# COMPUTE provides defaults for computation-heavy tasks.
Expand Down

0 comments on commit 38a42e6

Please sign in to comment.