Changeset 6296


Ignore:
Timestamp:
Apr 30, 2016, 12:10:41 PM (9 years ago)
Author:
ldelgass
Message:

merge uq fix from release branch

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/apps/launcher.tcl

    r5663 r6296  
    4242set params(execute) ""
    4343set params(input) ""
     44
     45set rapptureInfo(cwd) [pwd]
    4446
    4547if {[info exists env(TOOL_PARAMETERS)]} {
  • trunk/gui/scripts/responseviewer.tcl

    r6032 r6296  
    147147
    148148itcl::body Rappture::ResponseViewer::_plot_response {var1 var2} {
    149     #puts "plotting $var1 vs $var2"
    150 
    151     set fname response_result.xml
    152 
    153     set rs $_response
    154     if {[catch {exec puq get_response $fname $rs $var1 $var2 $_label} res]} {
     149    #puts stderr "plotting $var1 vs $var2"
     150    global rapptureInfo
     151    set fname [file join $rapptureInfo(cwd) "response_result.xml"]
     152    if { [catch {
     153        exec puq.sh get_response $fname $_response $var1 $var2 $_label
     154    } res] != 0 } {
    155155        set fp [open "response.err" r]
    156156        set rdata [read $fp]
    157157        close $fp
    158         puts "Surrogate Model failed: $res\n$rdata"
     158        puts stderr "Surrogate Model failed: $res\n$rdata"
    159159        error "Sampling of Surrogate Model failed: $res\n$rdata"
    160160        # FIXME: Maybe put in text box instead of error()?
     
    163163
    164164    set xmlobj [Rappture::library $fname]
    165     #puts "xmlobj=$xmlobj"
     165    #puts stderr "xmlobj=$xmlobj"
    166166    set w $itk_component(frame).field
    167167
  • trunk/lang/tcl/scripts/library.tcl

    r6021 r6296  
    7575            close $fid
    7676        } errs] != 0 } {
     77            global errorInfo
    7778            puts stderr "can't open \"$fname\": errs=$errs errorInfo=$errorInfo"
    7879        }
     
    9091            close $fid
    9192        } errs] != 0 } {
     93            global errorInfo
    9294            puts stderr "can't open \"$fname\": errs=$errs errorInfo=$errorInfo"
    9395        }
     
    10671069# ----------------------------------------------------------------------
    10681070itcl::body Rappture::LibraryObj::uq_get_vars {{tfile ""}} {
    1069     set varout \[
    1070     set varlist []
     1071    set varout "\["
     1072    set varlist {}
    10711073
    10721074    if {$tfile == ""} {
  • trunk/lang/tcl/scripts/task.tcl

    r6217 r6296  
    218218
    219219    # write out the driver.xml file for the tool
    220     set file "driver[pid].xml"
     220    global rapptureInfo
     221    set file [file join $rapptureInfo(cwd) "driver[pid].xml"]
    221222    set status [catch {
    222223        set fid [open $file w]
     
    578579                set rdir $_resources(-resultdir)
    579580            } else {
    580                 set rdir "."
     581                global rapptureInfo
     582                set rdir $rapptureInfo(cwd)
    581583            }
    582584        } elseif {$resultdir ne ""} {
  • trunk/puq/puq.sh.in

    r6191 r6296  
    2121script=$1
    2222shift
    23 exec ${python} ${puq_exec_prefix}/${script}.py $*
     23exec ${python} ${puq_exec_prefix}/${script}.py "$@"
    2424
Note: See TracChangeset for help on using the changeset viewer.