Changeset 1829 for branches/blt4


Ignore:
Timestamp:
Jul 16, 2010 3:47:24 PM (14 years ago)
Author:
gah
Message:
 
Location:
branches/blt4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/analyzer.tcl

    r1806 r1829  
    508508
    509509    foreach item [$xmlobj children -type run output.include] {
    510         set id [$xmlobj element -as id output.include.$item]
    511         set inclfile [$xmlobj get output.include.$item]
    512         set inclobj [Rappture::library $inclfile]
    513         foreach c [$inclobj children output] {
    514             switch -glob -- $c {
    515                 # we don't want to include these tags
    516                 include* - time* - status* - user* {
    517                     continue
    518                 }
    519                 default {
    520                     set oldid [$inclobj element -as id output.$c]
    521                     set oldtype [$inclobj element -as type output.$c]
    522                     set newcomp "$oldtype\($id-$oldid\)"
    523                     $xmlobj copy output.$newcomp from $inclobj output.$c
    524                 }
    525             }
    526         }
     510        set id [$xmlobj element -as id output.include.$item]
     511        set inclfile [$xmlobj get output.include.$item]
     512        set inclobj [Rappture::library $inclfile]
     513        foreach c [$inclobj children output] {
     514            switch -glob -- $c {
     515                # We don't want to include these tags.
     516                include* - time* - status* - user* {
     517                    continue
     518                }
     519                default {
     520                    set oldid [$inclobj element -as id output.$c]
     521                    set oldtype [$inclobj element -as type output.$c]
     522                    set newcomp "$oldtype\($id-$oldid\)"
     523                    $xmlobj copy output.$newcomp from $inclobj output.$c
     524                }
     525            }
     526        }
    527527    }
    528528
    529529    lappend _runs $xmlobj
    530530
    531     # detect molecule elements that contain trajectory data and convert
     531    # Detect molecule elements that contain trajectory data and convert
    532532    # to sequences.
    533533    _trajToSequence $xmlobj output
    534534
    535     # go through the analysis and find all result sets
     535    # Go through the analysis and find all result sets.
    536536    set haveresults 0
    537537    foreach item [_reorder [$xmlobj children output]] {
     
    12561256}
    12571257
     1258# ----------------------------------------------------------------------
     1259# USAGE: _lammpsToSequence <xmlobj> ?<path>?
     1260#
     1261# If the molecule element is a trajectory, delete the original
     1262# and create a sequence of individual molecules.
     1263# Used internally to detect any molecule output elements that contain
     1264# trajectory data.  Trajectories will be converted into sequences of
     1265# individual molecules.  All other elements will be unaffected. Scans
     1266# the entire xml tree if a starting path is not specified.
     1267# ----------------------------------------------------------------------
    12581268itcl::body Rappture::Analyzer::_lammpsToSequence {xmlobj path id child data} {
    12591269
     
    13081318
    13091319# ----------------------------------------------------------------------
    1310 # USAGE: _trajtosequence <xmlobj> ?<path>?
     1320# USAGE: _trajToSequence <xmlobj> ?<path>?
    13111321#
    13121322#       Check for PDB and LAMMPS trajectories in molecule data and rewrite
     
    13281338        set current ${path}.${child}
    13291339        if { [string match "structure*" $child] } {
     1340            set isTraj [$xmlobj get ${current}.components.molecule.trajectory]
     1341            if { !$isTraj } {
     1342                continue;               # Not a trajectory.
     1343            }
    13301344            # Look for trajectory if molecule element found.  Check both pdb
    13311345            # data and lammps data.
     
    13471361            continue
    13481362        }
     1363        if 0 {
    13491364        # Recurse over all child nodes.
    1350         #_trajToSequence $xmlobj $current
     1365        _trajToSequence $xmlobj $current
     1366        }
    13511367    }
    13521368}
  • branches/blt4/gui/scripts/molvisviewer.tcl

    r1809 r1829  
    778778                # We know we're buffered here, so append the "loadpdb" command
    779779                # with the data payload immediately afterwards.
    780                 append _outbuf "loadpdb -defer $nBytes $model $state\n"
     780                append _outbuf "loadpdb -defer NA $state $nBytes\n"
    781781                append _outbuf $data1
    782782                set _dataobjs($model-$state)  1
     
    791791                # We know we're buffered here, so append the "loadpdb" command
    792792                # with the data payload immediately afterwards.
    793                 append _outbuf "loadpdb -defer $nBytes $model $state\n"
     793                append _outbuf "loadpdb -defer NA $state $nBytes\n"
    794794                append _outbuf $data2
    795795                set _dataobjs($model-$state)  1
     
    841841                    # We know we're buffered here, so append the "loadpdb"
    842842                    # command with the data payload immediately afterwards.
    843                     append _outbuf "loadpdb -defer $nBytes $model $state\n"
     843                    append _outbuf "loadpdb -defer NA $model $state $nBytes\n"
    844844                    append _outbuf $data3
    845845                }
  • branches/blt4/packages/vizservers/nanovis/FlowCmd.cpp

    r1800 r1829  
    44#include <stddef.h>
    55#include <limits.h>
     6#include <stdint.h>
    67#include <poll.h>
    78#include <tcl.h>
  • branches/blt4/packages/vizservers/nanovis/Makefile.in

    r1823 r1829  
    107107CFLAGS          = @CFLAGS@
    108108EXTRA_CFLAGS    = -Wall
    109 DEFINES         = @DEFINES@
    110 CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDES)
     109DEFINES         = -D__STDC_CONSTANT_MACROS=1
     110CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
    111111
    112112OBJS            = \
Note: See TracChangeset for help on using the changeset viewer.