From f87d65408cd91c69c9c49b538e8dd36c80a89580 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Fri, 20 Nov 2020 15:42:54 +0800 Subject: [PATCH] Added acBoundcondStepGBC() for flexible boundary conditions. --- include/astaroth.h | 4 ++++ src/core/astaroth.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/astaroth.h b/include/astaroth.h index ac20d34..2f66354 100644 --- a/include/astaroth.h +++ b/include/astaroth.h @@ -241,6 +241,10 @@ AcResult acIntegrateGBC(const AcMeshInfo config, const AcReal dt); * the caller*/ AcResult acBoundcondStep(void); +/** Applies general outer boundary conditions for the Mesh distributed among the devices visible to + * the caller*/ +AcResult acBoundcondStepGBC(const AcMeshInfo config); + /** Does a scalar reduction with the data stored in some vertex buffer */ AcReal acReduceScal(const ReductionType rtype, const VertexBufferHandle vtxbuf_handle); diff --git a/src/core/astaroth.cc b/src/core/astaroth.cc index c565699..086e512 100644 --- a/src/core/astaroth.cc +++ b/src/core/astaroth.cc @@ -117,9 +117,9 @@ acBoundcondStep(void) } AcResult -acBoundcondStepGBC(void) //TODO ADAPT +acBoundcondStepGBC(const AcMeshInfo config) { - return acNodeGeneralBoundconds(nodes[0], STREAM_DEFAULT); + return acNodeGeneralBoundconds(nodes[0], STREAM_DEFAULT, config); } AcReal