Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyphare/pyphare/pharein/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def __init__(self, **kwargs):


class ParticleDiagnostics(Diagnostics):
particle_quantities = ["space_box", "domain", "levelGhost", "patchGhost"]
particle_quantities = ["space_box", "domain", "levelGhost"]
type = "particle"

def __init__(self, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion pyphare/pyphare/pharesee/hierarchy/fromh5.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


h5_time_grp_key = "t"
particle_files_patterns = ("domain", "patchGhost", "levelGhost")
particle_files_patterns = ("domain", "levelGhost")


def get_all_available_quantities_from_h5(filepath, time=0, exclude=["tags"], hier=None):
Expand Down
2 changes: 1 addition & 1 deletion pyphare/pyphare/pharesee/hierarchy/fromsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def hierarchy_from_sim(simulator, qty, pop=""):
# domain... while looping on the patchGhost items, we need to search in
# the already created patches which one to which add the patchGhost particles

for ghostParticles in ["patchGhost", "levelGhost"]:
for ghostParticles in ["levelGhost"]:
if ghostParticles in populationdict:
for dwpatch in populationdict[ghostParticles]:
v = np.asarray(dwpatch.data.v)
Expand Down
10 changes: 0 additions & 10 deletions pyphare/pyphare/pharesee/hierarchy/hierarchy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,14 @@ def merge_particles(hierarchy):
(pdname, pd) for pdname, pd in pdatas.items() if "domain" in pdname
][0]

pghost_pdatas = [
(pdname, pd)
for pdname, pd in pdatas.items()
if "patchGhost" in pdname
]
lghost_pdatas = [
(pdname, pd)
for pdname, pd in pdatas.items()
if "levelGhost" in pdname
]

pghost_pdata = pghost_pdatas[0] if pghost_pdatas else None
lghost_pdata = lghost_pdatas[0] if lghost_pdatas else None

if pghost_pdata is not None:
domain_pdata[1].dataset.add(pghost_pdata[1].dataset)
del pdatas[pghost_pdata[0]]

if lghost_pdata is not None:
domain_pdata[1].dataset.add(lghost_pdata[1].dataset)
del pdatas[lghost_pdata[0]]
Expand Down
2 changes: 1 addition & 1 deletion pyphare/pyphare/pharesee/run/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def GetParticleCount(self, time, **kwargs):
return c

def GetMass(self, pop_name, **kwargs):
list_of_qty = ["density", "flux", "domain", "levelGhost", "patchGhost"]
list_of_qty = ["density", "flux", "domain", "levelGhost"]
list_of_mass = []

import h5py
Expand Down
Loading
Loading