Skip to content

Add slurm/pbs job submission capability to lake-landice remapping#179

Draft
mathomp4 wants to merge 1 commit intofeature/sdrabenh/gcm_v12from
feature/v12-slurm-lakelandice
Draft

Add slurm/pbs job submission capability to lake-landice remapping#179
mathomp4 wants to merge 1 commit intofeature/sdrabenh/gcm_v12from
feature/v12-slurm-lakelandice

Conversation

@mathomp4
Copy link
Member

This brings lake-landice remapping in line with upper_air and catch remapping, allowing it to run in batch queues on both NAS and NCCS.

The weird thing is, @sshakoor1 did this at some point but it got lost? Not sure. But this is Claude trying to bring it back

  • Add job configuration with NPE=1 (serial execution with MPI for MAPL)
  • Set walltime based on tile resolution: 30min for <=C360, 1hr for higher res
  • Create job script template with SLURM/PBS directives matching remap_upper.py
  • Add interactive vs batch mode detection (PBS_JOBID/SLURM_JOB_ID)
  • Refactor command execution to use esma_mpirun wrapper
  • Submit jobs via qsub (NAS) or sbatch (NCCS) when not in interactive session
  • Remove obsolete run_and_log method
  • Maintain backward compatibility: interactive mode behaves as before

This needs to be fully tested and looked over. Probably by me and @weiyuan-jiang and @biljanaorescanin

I'm keeping draft until tested.

- Add job configuration with NPE=1 (serial execution with MPI for MAPL)
- Set walltime based on tile resolution: 30min for <=C360, 1hr for higher res
- Create job script template with SLURM/PBS directives matching remap_upper.py
- Add interactive vs batch mode detection (PBS_JOBID/SLURM_JOB_ID)
- Refactor command execution to use esma_mpirun wrapper
- Submit jobs via qsub (NAS) or sbatch (NCCS) when not in interactive session
- Remove obsolete run_and_log method
- Maintain backward compatibility: interactive mode behaves as before

This brings lake-landice remapping in line with upper_air and catch remapping,
allowing it to run in batch queues on both NAS and NCCS.
@mathomp4 mathomp4 self-assigned this Feb 23, 2026
@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Feb 23, 2026
@biljanaorescanin
Copy link
Contributor

I tried to test with our testing script and seems some merge or this PR broke the testing script...: test_remap_restarts.py

@weiyuan-jiang @mathomp4

@mathomp4
Copy link
Member Author

I tried to test with our testing script and seems some merge or this PR broke the testing script...: test_remap_restarts.py

@weiyuan-jiang @mathomp4

Well nuts. I'll try and give it a go soon. It seemed simple...

@weiyuan-jiang
Copy link
Contributor

If you can show me the folder with the error message, I may find a way to fix it @biljanaorescanin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants