Skip to content

Commit

Permalink
split cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
LenkaNovak committed Mar 27, 2024
1 parent 8e6a19a commit 4cb0d13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,10 @@ steps:

- label: "batch script"
# command: "sbatch test/mpi_tests/local_checks.sh"
command: "sed -n '10,$$p' test/mpi_tests/local_checks.sh | bash"
command:
- "sed -n '10,37' test/mpi_tests/local_checks.sh | bash"
- "sed -n '38,49' test/mpi_tests/local_checks.sh | bash"
- "sed -n '50,$$p' test/mpi_tests/local_checks.sh | bash"
env:
CLIMACORE_DISTRIBUTED: "MPI"
agents:
Expand Down
5 changes: 0 additions & 5 deletions test/mpi_tests/local_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ julia --project=artifacts artifacts/download_artifacts.jl

srun -K julia --project=experiments/AMIP/ experiments/AMIP/coupler_driver.jl --config_file $CONFIG_FILE

# wait for the above job to finish
wait

# restart from simulation time of 400 seconds
export RESTART_T=400

Expand All @@ -49,8 +46,6 @@ sed -i 's/t_end: \"800secs\"/t_end: \"3600secs\"/g' $RESTART_CONFIG_FILE
# rerun the model
srun -K julia --project=experiments/AMIP/ experiments/AMIP/coupler_driver.jl --config_file $RESTART_CONFIG_FILE --restart_dir $RESTART_DIR --restart_t $RESTART_T

# wait for the above job to finish
wait

# throw an error if no restart checkpoint files are found
if [ $(ls -1 $RESTART_DIR/checkpoint | wc -l) -gt 5 ]; then
Expand Down

0 comments on commit 4cb0d13

Please sign in to comment.