Commits

Shea Garrison-Kimmel committed 01ab96e Merge

merged

  • Participants
  • Parent commits b0e2586, c5a0c44

Comments (0)

Files changed (1)

             smass = append(smass,pdata[key]['Mass'][:])
         else:
             print "Saving data under /Snapshot{0:05}/ParticleData/{1} in the boundary group".format(snapnum,key)
-            dpos = append(dpos,pdata['Dark'][key]['Position'][:],axis=0)
-            dvel = append(dvel,pdata['Dark'][key]['Velocity'][:],axis=0)
-            dID = append(dID,pdata['Dark'][key]['ID'][:])
-            dmass = append(dmass,pdata['Dark'][key]['Mass'][:])
+            dpos = append(dpos,pdata[key]['Position'][:],axis=0)
+            dvel = append(dvel,pdata[key]['Velocity'][:],axis=0)
+            dID = append(dID,pdata[key]['ID'][:])
+            dmass = append(dmass,pdata[key]['Mass'][:])
 
     ndark = dpos.shape[0]
     dpos = dpos.astype("f")
     gas_size = pack('<I',4*ngas)
     
     out.write(vec_size)
-    if gas: out.write(gpos.tostring())
-    if star: out.write(spos.tostring())
-    if dark: out.write(dpos.tostring())
+    if ngas: out.write(gpos.tostring())
+    if nstar: out.write(spos.tostring())
+    if ndark: out.write(dpos.tostring())
     out.write(vec_size)
     
     out.write(vec_size)
-    if gas: out.write(gvel.tostring())
-    if star: out.write(svel.tostring())
-    if dark: out.write(dvel.tostring())
+    if ngas: out.write(gvel.tostring())
+    if nstar: out.write(svel.tostring())
+    if ndark: out.write(dvel.tostring())
     out.write(vec_size)
     
     out.write(scal_size)
-    if gas: out.write(gID.tostring())
-    if star: out.write(sID.tostring())
-    if dark: out.write(dID.tostring())
+    if ngas: out.write(gID.tostring())
+    if nstar: out.write(sID.tostring())
+    if ndark: out.write(dID.tostring())
     out.write(scal_size)
     
     out.write(scal_size)
-    if gas: out.write(gmass.tostring())
-    if star: out.write(smass.tostring())
-    if dark: out.write(dmass.tostring())
+    if ngas: out.write(gmass.tostring())
+    if nstar: out.write(smass.tostring())
+    if ndark: out.write(dmass.tostring())
     out.write(scal_size)
     
-    if gas:
+    if ngas:
         out.write(gas_size)
         out.write(u.tostring())
         out.write(gas_size)