Changeset 487 for trunk/SRC


Ignore:
Timestamp:
09/30/13 11:45:39 (11 years ago)
Author:
smasson
Message:

bugfix to be used in batch mode

Location:
trunk/SRC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Grid/ncdf_meshread.pro

    r458 r487  
    133133; 
    134134  if keyword_set(getdimensions) then begin 
    135     widget_control, noticebase, bad_id = nothing, /destroy 
     135    IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    136136    ncdf_close,  cdfid 
    137137    return 
     
    218218        ras = report(['the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift', $ 
    219219        'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...']) 
    220         widget_control, noticebase, bad_id = nothing, /destroy 
     220        IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    221221        return 
    222222      ENDIF 
     
    633633  izmindta = izmindtasauve 
    634634;------------------------------------------------------- 
    635   widget_control, noticebase, bad_id = nothing, /destroy 
     635  IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    636636; 
    637637;==================================================== 
  • trunk/SRC/Grid/ncdf_meshroms.pro

    r371 r487  
    127127; 
    128128  if keyword_set(getdimensions) then begin 
    129     widget_control, noticebase, bad_id = nothing, /destroy 
     129    IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    130130    ncdf_close,  cdfid 
    131131    return 
     
    198198        ras = report (['the x axis (1st line of glamt) is not sorted in the increasing order after the automatic definition of key_shift', $ 
    199199        'please use the keyword shift (and periodic) to suppress the automatic definition of key_shift (and key_periodic) and define by hand a more suitable value...']) 
    200         widget_control, noticebase, bad_id = nothing, /destroy 
     200        IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    201201        return 
    202202      ENDIF 
     
    491491  izmindta = izmindtasauve 
    492492;------------------------------------------------------- 
    493   widget_control, noticebase, bad_id = nothing, /destroy 
     493  IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = nothing, /destroy 
    494494; 
    495495;==================================================== 
  • trunk/SRC/Obsolete/meshlec.pro

    r371 r487  
    337337; 
    338338   if not keyword_set(pasblabla) then print,'lecture '+nomfich+' finie' 
    339    widget_control, noticebase, bad_id = toto, /destroy 
     339   IF NOT keyword_set(key_batch) then widget_control, noticebase, bad_id = toto, /destroy 
    340340   if keyword_set(key_performance) THEN print, 'temps meshlec', systime(1)-tempsun 
    341341 
  • trunk/SRC/Postscript/closeps.pro

    r479 r487  
    100100   set_default_device 
    101101;------------------------------------------------------------ 
    102    if keyword_set(infowidget) then $ 
     102   if keyword_set(infowidget) AND NOT keyword_set(batch) then $ 
    103103    widget_control, long(infowidget), bad_id = toto, /destroy 
    104104;------------------------------------------------------------ 
  • trunk/SRC/Postscript/openps.pro

    r371 r487  
    9999            file_basename(nameps, '.ps') + '.ps' 
    100100; add path (psdir) and check that nameps is ok 
    101    nameps = isafile(nameps, iodir = psdir, /new) 
    102101;------------------------------------------------------------ 
    103102; we define xsize, ysize, xoffset and yoffset 
  • trunk/SRC/Postscript/printps.pro

    r401 r487  
    306306;------------------------------------------------------------ 
    307307    ELSE:BEGIN  
     308      IF keyword_set(key_batch) THEN return  
    308309      base = widget_base(/row, title = 'Postscript file: ' $ 
    309310                         + file_basename(nameps)) 
Note: See TracChangeset for help on using the changeset viewer.