forked from lijiext/lammps
fix topology parsing
This commit is contained in:
parent
0d72c3769d
commit
9b401b6ed0
|
@ -794,9 +794,11 @@
|
||||||
$ids{$tmp[1]} = $tmp[2];
|
$ids{$tmp[1]} = $tmp[2];
|
||||||
$masses{$tmp[1]} = $tmp[3];
|
$masses{$tmp[1]} = $tmp[3];
|
||||||
$max_id = $tmp[1] if ($max_id<$tmp[1]);
|
$max_id = $tmp[1] if ($max_id<$tmp[1]);
|
||||||
|
} elsif ($read&&($tmp[0] eq "ATOM")) {
|
||||||
|
# $names{$tmp[1]} = $tmp[4] if ($read&&($tmp[0] eq "MASS"));
|
||||||
|
#last if ($read&&!scalar(@tmp)); # quit reading
|
||||||
|
last;
|
||||||
}
|
}
|
||||||
# $names{$tmp[1]} = $tmp[4] if ($read&&($tmp[0] eq "MASS"));
|
|
||||||
last if ($read&&!scalar(@tmp)); # quit reading
|
|
||||||
}
|
}
|
||||||
AddMass(HT, 1.00800);
|
AddMass(HT, 1.00800);
|
||||||
AddMass(OT, 15.99940);
|
AddMass(OT, 15.99940);
|
||||||
|
|
Loading…
Reference in New Issue