Traceback (the most recent call last) :
The File "/BIGDATA1 HWRF/hwrfrun/scripts/exhwrf_init py", line 89, in & lt; module>
The main ()
The File "/BIGDATA1 HWRF/hwrfrun/scripts/exhwrf_init py", line 73, the main in
Init. Run_through_anl ()
The File "/BIGDATA1 HWRF/hwrfrun ush/HWRF/init. Py", line 559, in run_through_anl
Self. Geogrid. The run ()
The File "/BIGDATA1/HWRF/hwrfrun/ush/HWRF/WPS. Py", line 637, in the run
Produtil. Run. Checkrun (CMD, logger=logger)
The File "/BIGDATA1 HWRF/hwrfrun ush/produtil/run. Py", line 415, in checkrun
Raise ExitStatusException (' % s: non - zero exit status' % (repr (arg),), r)
ExitStatusException: exe ('/usr/bin/srun) [' - export=ALL ', '-- cpu_bind=core', '- distribution=block: block', '/BIGDATA1/HWRF/hwrfrun/sorc/WPSV3/geogrid. Exe']. Out (' geogrid. The log, append=False) : non - zero exit status (returncode=1)
11/20 20:53:40 Z NONAME - CRITICAL: HWRF init is aborting: exe ('/usr/bin/srun) [' - export=ALL ', '-- cpu_bind=core', '- distribution=block: block', '/BIGDATA1/HWRF/hwrfrun/sorc/WPSV3/geogrid. Exe']. Out (' geogrid. The log, append=False) : non - zero exit status (returncode=1)
The run. Py:
Def checkrun (arg, logger=None, * * kwargs) :
"" "! This is a simple wrapper round the run that raises
ExitStatusException if the program exit status is non - zero.
@ param arg the produtil. Prog. Runner to execute (the output of
Exe (), bigexe () or mpirun ()
@ param logger logging. A logger to log messages
@ param kwargs The optional run=[] argument can dojo.provide a company
The list of acceptable exit statuses. "" "
R=the run (arg, logger=logger)
If kwargs is not None and 'ret in kwargs:
If not r in kwargs [' ret] :
Raise ExitStatusException (' % s: unexpected exit status' % (repr (arg),), r)
Elif not r==0:
the -raise ExitStatusException (' % s: non - zero exit status' % (repr (arg),), r) # line 415
Return r
The WPS. Py:
The class Geogrid (WPSTask) :
.
Def run (self) :
"" "! Copies the inputs, the links fix files, runs geogrid and delivers
Results. "" "
The logger=self. The log ()
Try:
Produtil. Fileop. Makedirs (self outdir)
With NamedDir (self. The location) as dir:
Logger. The info (' Geogrid running in directory: '+ OS. The getcwd ())
Assert (not re. Match (' \ A/TMP, OS getcwd ()))
For f in glob. Glob (' geo *) :
Try:
Produtil. Fileop. Remove_file (f, logger=logger)
Except (EnvironmentError) as e:
Logger. Warning (' % s: did not remove the file, but '
'continuing anyway' % (f))
Self. Link_fix (geog_data=https://bbs.csdn.net/topics/True, table='GEOGRID. TBL')
With the open (' namelist. WPS ', 'w') as f:
F.w rite (self make_namelist ())
Prog=self. Getexe (' hwrf_geogrid ')
The log=self. _section + 'log'
CMD=produtil. Run. Mpirun (produtil. Run. Mpi (prog),
Allranks=True)
If self. Redirect: CMD=CMD & gt; The log
Command: logger. The info (' % s % s' % (self taskname, repr (CMD),))
produtil. Run. Checkrun (CMD, logger=logger) # line 635
Findme="Successful completion", "
Geogrid_log=None
For glog in (' geogrid. The log ', 'the geogrid. Log. 0000',
'the geogrid. Log. 00000') :
If OS. Path. The exists (glog) :
Geogrid_log=glog
The else:
Logger. The info (' % s: does not exist. '% (glog,))
If geogrid_log is None:
MSG='WPS Geogrid failed: could not find Geogrid log file.'
Logger. Error (MSG)
The self. The state=FAILED
Raise GeogridNoLog (MSG)
Logger. The info (' % s: will check for % s' % (geogrid_log findme))
If not check_last_lines (geogrid_log findme) :
Raise WPSError (' % s: did not find "% s" '
% (geogrid_log findme))
Self. Deliver_products (keep=False, relink=True)
Init. Py:
The class HWRFInit (HWRFTask) :
.
Def run_through_anl (self) :
"" "! Runs the following jobs, if they are enabled, geogrid,
Ungrib metgrid, init - length prep_hybrid, init - length real_nmm
"
the and wrfanl." "The self. The log (). Warning (' run_through_anl)
If 'geogrid in self. __dict__ :
Set_ecflow_label (' status', '(geogrid) process terrain')
self. Geogrid. The run () # line 559
Set_ecflow_label (' status', '[ungrib] process parent GRIB')
Self. Ungrib. The run ()
Set_ecflow_label (' status', '[metgrid] interpolate horizontally')
Self. Metgrid. The run ()
If 'prep' in the self. __dict__ :
Set_ecflow_label (' status', '(prep) process the parent spectral')
For I in xrange (len (self. Ibdytimes)) :
T=self. Ibdytimes [I]
If t> Self. Initlen: break
Self. Prep. Run_ipiece (I)
Set_ecflow_label (' status', '[realinit] make wrfinput file')
Self. Realinit. The run ()
Set_ecflow_label (' status', '[runwrfanl] make wrfanl files')
Self. Runwrfanl. The run ()
Set_ecflow_label (' status', 'Passed through anl.')
CodePudding user response:
CSDN something called code box, copied or python the language, it becomes difficult to see,nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull