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

Site file updates #44

Open
singhd789 opened this issue Jan 23, 2025 · 0 comments
Open

Site file updates #44

singhd789 opened this issue Jan 23, 2025 · 0 comments

Comments

@singhd789
Copy link
Contributor

In the site files, tasks create output directories in the pre-script. This structure was followed for the generic.cylc update.

However, there are some reservations about creating directories (non-site aspects) in site files.

One Solution:
Output directories can be made be made in either the flow.cylc task themselves (as pre-script) or as the first thing in the task script.

They can be made in the flow.cylc if there are no other modules that are gfdl site specific are loaded (in this case, I believe the site file pre-script is used versus the pre-script already defined in the flow.cylc)

Ex: SPLIT-NETCDF
flow.cylc:

pre-script = mkdir -p $outputDir

ppan.cylc:

pre-script = module load cdo nco && mkdir -p $outputDir

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

No branches or pull requests

1 participant