@@ -178,7 +178,7 @@ def run_full(
178178 minutes = 5 ,
179179 n = 16 ,
180180 nomp = 1 ,
181- submit_via_qsub = True ,
181+ submit_via_qsub = True , #TODO fix this, works only at NERSC? no scans?
182182 clean_folder_going_in = True , # Make sure the scratch folder is removed before running (unless I want a restart!)
183183 ):
184184
@@ -205,13 +205,31 @@ def run_full(
205205 launchSlurm = False ,
206206 )
207207
208- CGYROcommand = f'gacode_qsub -e . -n { n } -nomp { nomp } -queue { self .cgyro_job .machineSettings ['slurm' ]['partition' ]} -w 0:{ minutes } :00 -s'
208+ subfolder = "scan0"
209+
210+ CGYROcommand = f'gacode_qsub -e { subfolder } -n { n } -nomp { nomp } -queue { self .cgyro_job .machineSettings ['slurm' ]['partition' ]} -w 0:{ minutes } :00 -s'
209211
210212 if "account" in self .cgyro_job .machineSettings ["slurm" ] and self .cgyro_job .machineSettings ["slurm" ]["account" ] is not None :
211213 CGYROcommand += f" -repo { self .cgyro_job .machineSettings ['slurm' ]['account' ]} "
212214
213215 self .slurm_output = "batch.out"
214216
217+ # ---
218+ folder_run = self .folderCGYRO / subfolder
219+ folder_run .mkdir (parents = True , exist_ok = True )
220+
221+ # Copy the input.cgyro in the subfolder
222+ input_cgyro_file_this = folder_run / "input.cgyro"
223+ shutil .copy2 (input_cgyro_file , input_cgyro_file_this )
224+
225+ # Copy the input.gacode file in the subfolder
226+ inputgacode_file_this = folder_run / "input.gacode"
227+ shutil .copy2 (self .inputgacode_file , inputgacode_file_this )
228+
229+ # Prepare the input and output folders
230+ input_folders = [folder_run ]
231+ output_folders = [subfolder ]
232+
215233 else :
216234
217235 if scan_param is None :
0 commit comments