pyvlasiator 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
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.
- pyvlasiator/vlsv/reader.py +6 -4
- pyvlasiator/vlsv/variables.py +1 -1
- {pyvlasiator-0.1.5.dist-info → pyvlasiator-0.1.7.dist-info}/METADATA +1 -1
- {pyvlasiator-0.1.5.dist-info → pyvlasiator-0.1.7.dist-info}/RECORD +6 -6
- {pyvlasiator-0.1.5.dist-info → pyvlasiator-0.1.7.dist-info}/LICENSE.md +0 -0
- {pyvlasiator-0.1.5.dist-info → pyvlasiator-0.1.7.dist-info}/WHEEL +0 -0
pyvlasiator/vlsv/reader.py
CHANGED
|
@@ -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
|
|
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
|
|
pyvlasiator/vlsv/variables.py
CHANGED
|
@@ -11,7 +11,7 @@ MU0 = 4 * pi * 1e-7 # Vacuum permeability, [H/m]
|
|
|
11
11
|
EPSILON0 = 1 / (C**2 * MU0) # Vacuum permittivity, [F/m]
|
|
12
12
|
KB = 1.38064852e-23 # Boltzmann constant, [m²kg/(s²K)]
|
|
13
13
|
RE = 6.371e6 # Earth radius, [m]
|
|
14
|
-
RMERCURY =
|
|
14
|
+
RMERCURY = 2.4397e6 # Mercury radius, [m]
|
|
15
15
|
|
|
16
16
|
speciesdict = {
|
|
17
17
|
"avgs": "p",
|
|
@@ -3,9 +3,9 @@ pyvlasiator/plot/__init__.py,sha256=1QgvCaH3js2rCCJs3JoKcFN0fUOVfz7_gFSxyP8auLg,
|
|
|
3
3
|
pyvlasiator/plot/plot.py,sha256=X-A9O9KmxH0W_P6UJpfxaP1S8dRyAJYxgx0TNotMY88,35706
|
|
4
4
|
pyvlasiator/pyvlasiator.py,sha256=11dp6PsBPHacbGHtzI7mdS8NreiBNYuwbI5cx_5bfDw,62
|
|
5
5
|
pyvlasiator/vlsv/__init__.py,sha256=T1_Znxt_H7XL-Al5IG0C_CKBw_u2VkeVQ3O1INH29po,81
|
|
6
|
-
pyvlasiator/vlsv/reader.py,sha256=
|
|
7
|
-
pyvlasiator/vlsv/variables.py,sha256=
|
|
8
|
-
pyvlasiator-0.1.
|
|
9
|
-
pyvlasiator-0.1.
|
|
10
|
-
pyvlasiator-0.1.
|
|
11
|
-
pyvlasiator-0.1.
|
|
6
|
+
pyvlasiator/vlsv/reader.py,sha256=qLQ7SdcxUpQru4LJbneB7wIe-cSnJJ9ktnMLzrruzpw,35614
|
|
7
|
+
pyvlasiator/vlsv/variables.py,sha256=5g0PZT0GScVTloYPlmogU1VtHYGQ4fe3yvEtDlWCZMk,6030
|
|
8
|
+
pyvlasiator-0.1.7.dist-info/LICENSE.md,sha256=UbZmGbnA73ReemkiNPRNfqgGtpPwiGFJiOZo0gxiP_o,1125
|
|
9
|
+
pyvlasiator-0.1.7.dist-info/METADATA,sha256=Wr_MGhupiGI_Z_vMTXg2LbZXaXrNyH1ox2jvuIaqIaY,1953
|
|
10
|
+
pyvlasiator-0.1.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
11
|
+
pyvlasiator-0.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|