File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,9 @@ def run_full(
208208 )
209209
210210 subfolder = "scan0"
211+ queue = "-queue " + self .cgyro_job .machineSettings ['slurm' ]['partition' ] if "partition" in self .cgyro_job .machineSettings ['slurm' ] else ""
211212
212- CGYROcommand = f'gacode_qsub -e { subfolder } -n { n } -nomp { nomp } -queue { self . cgyro_job . machineSettings [ 'slurm' ][ 'partition' ] } -w 0:{ minutes } :00 -s'
213+ CGYROcommand = f'gacode_qsub -e { subfolder } -n { n } -nomp { nomp } { queue } -w 0:{ minutes } :00 -s'
213214
214215 if "account" in self .cgyro_job .machineSettings ["slurm" ] and self .cgyro_job .machineSettings ["slurm" ]["account" ] is not None :
215216 CGYROcommand += f" -repo { self .cgyro_job .machineSettings ['slurm' ]['account' ]} "
Original file line number Diff line number Diff line change @@ -1067,7 +1067,8 @@ def create_slurm_execution_files(
10671067 commandSBATCH .append ("#SBATCH --mail-user=" + email )
10681068
10691069 # ******* Partition / Billing
1070- commandSBATCH .append (f"#SBATCH --partition { partition } " )
1070+ if partition is not None :
1071+ commandSBATCH .append (f"#SBATCH --partition { partition } " )
10711072
10721073 if account is not None :
10731074 commandSBATCH .append (f"#SBATCH --account { account } " )
You can’t perform that action at this time.
0 commit comments