Changeset 4152


Ignore:
Timestamp:
Jan 28, 2014 7:38:43 AM (10 years ago)
Author:
gah
Message:

fixes to vmdserver script and renderservers entry for vmdshow

Location:
trunk/packages/vizservers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanoscale/renderservers.tcl.in

    r4131 r4152  
    9595#
    9696register_server vmdshow 2018 \
    97     -input 3 -output 4 -combinelogs no \
     97    -input 3 -output 4 -combinelogs yes \
    9898{
    9999    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
     
    102102    VMDDIR ${libdir}/vmd
    103103    SURF_BIN ${libdir}/vmd/surf
    104     MSMSSERVER ${libdir}/msms
     104    MSMSSERVER ${libdir}/vmd/msms
    105105    LD_LIBRARY_PATH ${libdir}
     106    __GL_SYNC_TO_VBLANK 0
    106107}
  • trunk/packages/vizservers/vmd/INSTALL.txt

    r4150 r4152  
    1 Checkout vmdbuild directory from rappture-bat respository
    2 Follow instructions in INSTALL.txt there
     1Checkout vmdbuild directory from rappture-bat repository
     2
     3  svn co https://nanohub.org/infrastructure/rappture-bat/svn/trunk/vmdbuild vmdbuild
     4
     5Follow instructions in INSTALL.txt there.  You'll need the vmdserver.tcl
     6script from here.
     7
     8
     9
     10
  • trunk/packages/vizservers/vmd/vmdserver.tcl

    r4104 r4152  
    607607    fileevent $cid readable [list server_handle $cid $cid]
    608608    fconfigure $cid -buffering none -blocking 0
    609 
    610     # identify server type to this client
    611     # The server identifier must be in the form <name> <version>.  The
    612     # base connect method will ignore characters until it finds this line.
    613     puts $cid "vmd 0.1"
    614609}
    615610
     
    624619        append buffer($cin) $line "\n"
    625620        if {[info complete $buffer($cin)]} {
    626             #puts stdout "command is ($buffer($cin))"
    627621            set request $buffer($cin)
    628622            set buffer($cin) ""
     
    631625                server_send_image -eventually
    632626            } else {
    633                 puts stdout "last gets is ($line) cmd=($request) result=($result)"
    634627                server_oops $cout $result
    635628                if { [string match "invalid command*" $result] } {
    636                     bgerror $result
     629                    bgerror "I got a invalid command: $result"
    637630                    exit 1
    638631                }
     
    770763    socket -server server_accept 2018
    771764} else {
    772     fileevent stdin readable [list server_handle stdin stdout]
    773 
    774     # identify server type to this client
    775     puts stdout "vmd 0.1"
    776     flush stdout
    777     fconfigure stdout -buffering none -blocking 0
     765    set cin $vmd_client(read)
     766    set cout $vmd_client(write)
     767
     768    fileevent $cin readable [list server_handle $cin $cout]
     769    fconfigure $cout -buffering none -blocking 0
    778770}
    779771
Note: See TracChangeset for help on using the changeset viewer.