From 6c1ab8e05a17d094a9408bea442df54754502bc9 Mon Sep 17 00:00:00 2001
From: Sebastian Eibl <sebastian.eibl@fau.de>
Date: Wed, 29 Jan 2020 17:29:03 +0100
Subject: [PATCH] [BUGFIX] replaced remaining ONCE

---
 python/mesa_pd/mpi/SyncGhostOwners.py   | 6 +++---
 python/mesa_pd/mpi/SyncNextNeighbors.py | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/python/mesa_pd/mpi/SyncGhostOwners.py b/python/mesa_pd/mpi/SyncGhostOwners.py
index 872f5146d..320a8f4c7 100644
--- a/python/mesa_pd/mpi/SyncGhostOwners.py
+++ b/python/mesa_pd/mpi/SyncGhostOwners.py
@@ -5,9 +5,9 @@ from ..utility import generateFile
 class SyncGhostOwners:
    def __init__(self, p):
       p.addProperty("position",          "walberla::mesa_pd::Vec3", defValue="real_t(0)", syncMode="ALWAYS")
-      p.addProperty("interactionRadius", "walberla::real_t",        defValue="real_t(0)", syncMode="ONCE")
-      p.addProperty("flags",             "walberla::mesa_pd::data::particle_flags::FlagT", defValue="", syncMode="ONCE")
-      p.addProperty("owner",             "int",                     defValue="-1",        syncMode="ONCE")
+      p.addProperty("interactionRadius", "walberla::real_t",        defValue="real_t(0)", syncMode="ON_GHOST_CREATION")
+      p.addProperty("flags",             "walberla::mesa_pd::data::particle_flags::FlagT", defValue="", syncMode="ON_GHOST_CREATION")
+      p.addProperty("owner",             "int",                     defValue="-1",        syncMode="ON_GHOST_CREATION")
       p.addProperty("ghostOwners",       "std::unordered_set<walberla::mpi::MPIRank>",    defValue="",          syncMode="NEVER")
       p.addProperty("neighborState",     "std::unordered_set<walberla::mpi::MPIRank>",       defValue="",          syncMode="NEVER")
 
diff --git a/python/mesa_pd/mpi/SyncNextNeighbors.py b/python/mesa_pd/mpi/SyncNextNeighbors.py
index 44d1851eb..703b9a226 100644
--- a/python/mesa_pd/mpi/SyncNextNeighbors.py
+++ b/python/mesa_pd/mpi/SyncNextNeighbors.py
@@ -5,9 +5,9 @@ from ..utility import generateFile
 class SyncNextNeighbors:
    def __init__(self, p):
       p.addProperty("position",          "walberla::mesa_pd::Vec3", defValue="real_t(0)", syncMode="ALWAYS")
-      p.addProperty("interactionRadius", "walberla::real_t",        defValue="real_t(0)", syncMode="ONCE")
-      p.addProperty("flags",             "walberla::mesa_pd::data::particle_flags::FlagT", defValue="", syncMode="ONCE")
-      p.addProperty("owner",             "int",                     defValue="-1",        syncMode="ONCE")
+      p.addProperty("interactionRadius", "walberla::real_t",        defValue="real_t(0)", syncMode="ON_GHOST_CREATION")
+      p.addProperty("flags",             "walberla::mesa_pd::data::particle_flags::FlagT", defValue="", syncMode="ON_GHOST_CREATION")
+      p.addProperty("owner",             "int",                     defValue="-1",        syncMode="ON_GHOST_CREATION")
       p.addProperty("ghostOwners",       "std::unordered_set<walberla::mpi::MPIRank>",    defValue="",          syncMode="NEVER")
 
    def generate(self, path):
-- 
GitLab