Skip to content
Snippets Groups Projects
Commit 5a6cb8d9 authored by Helen Schottenhamml's avatar Helen Schottenhamml
Browse files

Use waLBerla data types for outflow boundary conditions.

parent 532940dd
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class OutflowAdditionalDataHandler(AdditionalDataHandler): ...@@ -69,7 +69,7 @@ class OutflowAdditionalDataHandler(AdditionalDataHandler):
@property @property
def additional_field_data(self): def additional_field_data(self):
identifier = "CPU" if self._target == "gpu" else "" identifier = "CPU" if self._target == "gpu" else ""
return f"auto {self._field_name} = block->getData< field::GhostLayerField<double, " \ return f"auto {self._field_name} = block->getData< field::GhostLayerField<real_t, " \
f"{len(self._stencil)}> >({self._field_name}{identifier}ID); " f"{len(self._stencil)}> >({self._field_name}{identifier}ID); "
def data_initialisation(self, direction_index): def data_initialisation(self, direction_index):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment