Package: aces3 / 3.0.8-4

exit_impossible_seq_jobs_gracefully.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: aces3-3.0.8/src/main/beta.F
===================================================================
--- aces3-3.0.8.orig/src/main/beta.F
+++ aces3-3.0.8/src/main/beta.F
@@ -593,6 +593,14 @@ c---------------------------------------
            ierr = ierr + 1
         endif
 
+        if (.not. no_servers .and. nprocs .eq. 1) then
+           print *,'Job requires at least 2 processors to run.'
+           if (dryrun) then
+              print *,'----- Aborting due to dryrun errors. ----'
+           endif
+           call abort_job()
+        endif
+
         company_string = ' '
         io_company_id = 0