From d493a9507efb3100cdf2a354c75879bfb6341f62 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 14 Jan 2019 16:40:28 +0100 Subject: Use available method to align Coupler2D origin to grid --- src/refinement/coupler2D.h | 2 +- src/refinement/coupler2D.hh | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/refinement/coupler2D.h b/src/refinement/coupler2D.h index 60a5cab..db8ac15 100644 --- a/src/refinement/coupler2D.h +++ b/src/refinement/coupler2D.h @@ -39,7 +39,7 @@ protected: const int _fineSize; const bool _vertical; - Vector _physOrigin; + const Vector _physOrigin; const Vector& getFineLatticeR(int y) const; const Vector& getCoarseLatticeR(int y) const; diff --git a/src/refinement/coupler2D.hh b/src/refinement/coupler2D.hh index 3bd2b2f..1726df4 100644 --- a/src/refinement/coupler2D.hh +++ b/src/refinement/coupler2D.hh @@ -62,6 +62,7 @@ Coupler2D::Coupler2D(Grid2D& coarse, Grid2D::Coupler2D(Grid2D& coarse, Grid2D tmpLatticeOrigin{}; - coarseGeometry.getLatticeR(origin, tmpLatticeOrigin); - _physOrigin = coarseGeometry.getPhysR(tmpLatticeOrigin.toStdVector()); - const T deltaX = _fine.getConverter().getPhysDeltaX(); const Vector stepPhysR = _vertical ? Vector {0, deltaX} : Vector {deltaX, 0}; -- cgit v1.2.3