From d76687285a032e25cbd258035321cb8d6d8e0330 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 25 Jan 2019 16:16:17 +0100 Subject: mg2d: factor out the boundary condition-related API --- relax_test.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'relax_test.c') diff --git a/relax_test.c b/relax_test.c index 1994201..e885d55 100644 --- a/relax_test.c +++ b/relax_test.c @@ -6,6 +6,7 @@ #include "ell_relax.h" #include "log.h" +#include "mg2d_boundary.h" #include "mg2d_constants.h" #if 1 @@ -84,7 +85,7 @@ int main(int argc, char **argv) ctx->fd_stencil = 2; { - EllRelaxBoundary *bnd = &ctx->boundaries[MG2D_BOUNDARY_0L]; + MG2DBoundary *bnd = ctx->boundaries[MG2D_BOUNDARY_0L]; bnd->type = MG2D_BC_TYPE_FIXVAL; @@ -98,7 +99,7 @@ int main(int argc, char **argv) } } { - EllRelaxBoundary *bnd = &ctx->boundaries[MG2D_BOUNDARY_0U]; + MG2DBoundary *bnd = ctx->boundaries[MG2D_BOUNDARY_0U]; bnd->type = MG2D_BC_TYPE_FIXVAL; @@ -112,7 +113,7 @@ int main(int argc, char **argv) } } { - EllRelaxBoundary *bnd = &ctx->boundaries[MG2D_BOUNDARY_1L]; + MG2DBoundary *bnd = ctx->boundaries[MG2D_BOUNDARY_1L]; bnd->type = MG2D_BC_TYPE_FIXVAL; @@ -126,7 +127,7 @@ int main(int argc, char **argv) } } { - EllRelaxBoundary *bnd = &ctx->boundaries[MG2D_BOUNDARY_1U]; + MG2DBoundary *bnd = ctx->boundaries[MG2D_BOUNDARY_1U]; bnd->type = MG2D_BC_TYPE_FIXVAL; -- cgit v1.2.3