lib/crystalcell/cell.rb in crystalcell-0.0.1 vs lib/crystalcell/cell.rb in crystalcell-0.0.2
- old
+ new
@@ -572,9 +572,12 @@
elem_list = Hash.new
element_order.each do |elem|
elem_list[ elem ] = @atoms.select{ |atom| atom.element == elem }
end
+ ##element symbols
+ results << " " + element_order.join(" ")
+
##numbers of element atoms
tmp = ''
element_order.each do |elem|
tmp += " #{elem_list[elem].size.to_s}"
end