Changeset 1778 for trunk/gui/scripts


Ignore:
Timestamp:
Jun 24, 2010, 8:55:13 AM (14 years ago)
Author:
braffert
Message:

small changes to lammps dump file reader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/molvisviewer.tcl

    r1763 r1778  
    772772            # lammps dump file overwrites pdb file (change this?)
    773773            set lammpstypemap [$dataobj get components.molecule.lammpstypemap]
    774             if { "" != $lammpstypemap} {
    775                 set lammpstypemap [split $lammpstypemap " "]
    776             }
    777774            set lammpsdata [$dataobj get components.molecule.lammps]
    778775            if {"" != $lammpsdata} {
     
    795792                        } else {
    796793                            set atom [lindex $lammpstypemap [expr $type - 1]]
     794                            if { "" == $atom} {
     795                              set atom $type
     796                            }
    797797                        }
    798798                        set pdbline [format "%6s%5d %4s%1s%3s %1s%5s   %8.3f%8.3f%8.3f%6.2f%6.2f%8s\n" $recname $id $atom $altLoc $resName $chainID $Seqno $x $y $z $occupancy $tempFactor $recID]
Note: See TracChangeset for help on using the changeset viewer.