|
8 | 8 |
|
9 | 9 | set -e |
10 | 10 |
|
11 | | -{% if use_e3sm_unified %} |
| 11 | +{% if use_e3sm_unified -%} |
12 | 12 | source {{ e3sm_unified_script }} |
13 | 13 |
|
14 | 14 | echo E3SM-Unified: {{ e3sm_unified_script }} |
15 | | -{% elif pixi_env %} |
| 15 | +{% elif pixi_env -%} |
16 | 16 | export HDF5_USE_FILE_LOCKING=FALSE |
17 | 17 | export E3SMU_MACHINE={{ machine }} |
18 | 18 |
|
19 | | -run_mpas_analysis() { |
20 | | - pixi run --manifest-path ../../pixi.toml -e {{ pixi_env }} mpas_analysis "$@" |
21 | | -} |
| 19 | +eval "$(pixi shell-hook --manifest-path ../../pixi.toml -e {{ pixi_env }})" |
22 | 20 |
|
23 | 21 | echo pixi env: {{ pixi_env }} |
24 | | -{% else %} |
| 22 | +{% else -%} |
25 | 23 | source {{ conda_base }}/etc/profile.d/conda.sh |
26 | 24 | conda activate {{ conda_env }} |
27 | 25 | export HDF5_USE_FILE_LOCKING=FALSE |
28 | 26 | export E3SMU_MACHINE={{ machine }} |
29 | 27 |
|
30 | | -run_mpas_analysis() { |
31 | | - mpas_analysis "$@" |
32 | | -} |
33 | 28 |
|
34 | 29 | echo env: {{ conda_env }} |
35 | | -{% endif %} |
| 30 | +{% endif -%} |
36 | 31 | echo configs: {{ flags }} {{ config }} |
37 | 32 |
|
38 | | -run_mpas_analysis --list |
39 | | -run_mpas_analysis --plot_colormaps |
40 | | -run_mpas_analysis --setup_only {{ flags }} {{ config }} |
41 | | -run_mpas_analysis --purge {{ flags }} {{ config }} --verbose |
42 | | -run_mpas_analysis --html_only {{ flags }} {{ config }} |
| 33 | +mpas_analysis --list |
| 34 | +mpas_analysis --plot_colormaps |
| 35 | +mpas_analysis --setup_only {{ flags }} {{ config }} |
| 36 | +mpas_analysis --purge {{ flags }} {{ config }} --verbose |
| 37 | +mpas_analysis --html_only {{ flags }} {{ config }} |
43 | 38 |
|
44 | 39 | chmod ugo+rx {{ html_base }}/{{ out_common_dir }} |
45 | 40 | chmod -R ugo+rX {{ html_base }}/{{ out_subdir }} |
0 commit comments