Changeset 1829 for branches/blt4
- Timestamp:
- Jul 16, 2010 3:47:24 PM (14 years ago)
- Location:
- branches/blt4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/analyzer.tcl
r1806 r1829 508 508 509 509 foreach item [$xmlobj children -type run output.include] { 510 511 512 513 514 515 # we don't want to include these tags 516 517 518 519 520 521 522 523 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 } 527 527 } 528 528 529 529 lappend _runs $xmlobj 530 530 531 # detect molecule elements that contain trajectory data and convert531 # Detect molecule elements that contain trajectory data and convert 532 532 # to sequences. 533 533 _trajToSequence $xmlobj output 534 534 535 # go through the analysis and find all result sets535 # Go through the analysis and find all result sets. 536 536 set haveresults 0 537 537 foreach item [_reorder [$xmlobj children output]] { … … 1256 1256 } 1257 1257 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 # ---------------------------------------------------------------------- 1258 1268 itcl::body Rappture::Analyzer::_lammpsToSequence {xmlobj path id child data} { 1259 1269 … … 1308 1318 1309 1319 # ---------------------------------------------------------------------- 1310 # USAGE: _traj tosequence <xmlobj> ?<path>?1320 # USAGE: _trajToSequence <xmlobj> ?<path>? 1311 1321 # 1312 1322 # Check for PDB and LAMMPS trajectories in molecule data and rewrite … … 1328 1338 set current ${path}.${child} 1329 1339 if { [string match "structure*" $child] } { 1340 set isTraj [$xmlobj get ${current}.components.molecule.trajectory] 1341 if { !$isTraj } { 1342 continue; # Not a trajectory. 1343 } 1330 1344 # Look for trajectory if molecule element found. Check both pdb 1331 1345 # data and lammps data. … … 1347 1361 continue 1348 1362 } 1363 if 0 { 1349 1364 # Recurse over all child nodes. 1350 #_trajToSequence $xmlobj $current 1365 _trajToSequence $xmlobj $current 1366 } 1351 1367 } 1352 1368 } -
branches/blt4/gui/scripts/molvisviewer.tcl
r1809 r1829 778 778 # We know we're buffered here, so append the "loadpdb" command 779 779 # with the data payload immediately afterwards. 780 append _outbuf "loadpdb -defer $nBytes $model $state\n"780 append _outbuf "loadpdb -defer NA $state $nBytes\n" 781 781 append _outbuf $data1 782 782 set _dataobjs($model-$state) 1 … … 791 791 # We know we're buffered here, so append the "loadpdb" command 792 792 # with the data payload immediately afterwards. 793 append _outbuf "loadpdb -defer $nBytes $model $state\n"793 append _outbuf "loadpdb -defer NA $state $nBytes\n" 794 794 append _outbuf $data2 795 795 set _dataobjs($model-$state) 1 … … 841 841 # We know we're buffered here, so append the "loadpdb" 842 842 # 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" 844 844 append _outbuf $data3 845 845 } -
branches/blt4/packages/vizservers/nanovis/FlowCmd.cpp
r1800 r1829 4 4 #include <stddef.h> 5 5 #include <limits.h> 6 #include <stdint.h> 6 7 #include <poll.h> 7 8 #include <tcl.h> -
branches/blt4/packages/vizservers/nanovis/Makefile.in
r1823 r1829 107 107 CFLAGS = @CFLAGS@ 108 108 EXTRA_CFLAGS = -Wall 109 DEFINES = @DEFINES@110 CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $( INCLUDES)109 DEFINES = -D__STDC_CONSTANT_MACROS=1 110 CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) 111 111 112 112 OBJS = \
Note: See TracChangeset
for help on using the changeset viewer.