pyvlasiator 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyvlasiator
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Python utilities for processing Vlasiator data
5
5
  Author: Hongyang Zhou
6
6
  Author-email: hyzhou@umich.edu
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyvlasiator"
3
- version = "0.1.6"
3
+ version = "0.1.7"
4
4
  description = "Python utilities for processing Vlasiator data"
5
5
  authors = ["Hongyang Zhou <hyzhou@umich.edu>"]
6
6
  readme = "README.md"
@@ -430,14 +430,14 @@ class Vlsv:
430
430
 
431
431
  bbox = tuple(ncell * 2**self.maxamr for ncell in self.ncells)
432
432
 
433
- # Determine fsgrid domain decomposition
434
- nIORanks = self.read_parameter("numWritingRanks") # Int32
435
-
436
433
  if raw.ndim > 1:
437
434
  v = np.empty((*bbox, raw.shape[-1]), dtype=np.float32)
438
435
  else:
439
436
  v = np.empty(bbox, dtype=np.float32)
440
437
 
438
+ # Determine fsgrid domain decomposition
439
+ fgDecomposition = self.read(tag="MESH_DECOMPOSITION", mesh="fsgrid")
440
+
441
441
  def getDomainDecomposition(globalsize, nproc: int) -> list[int]:
442
442
  """Obtain decomposition of this grid over the given number of processors.
443
443
  Reference: fsgrid.hpp
@@ -484,7 +484,9 @@ class Vlsv:
484
484
 
485
485
  return lsize
486
486
 
487
- fgDecomposition = getDomainDecomposition(bbox, nIORanks)
487
+ if fgDecomposition is None:
488
+ nIORanks = self.read_parameter("numWritingRanks") # Int32
489
+ fgDecomposition = getDomainDecomposition(bbox, nIORanks)
488
490
 
489
491
  offsetnow = 0
490
492
 
File without changes
File without changes