From 296a65128cc63e6ed2d31da97fad776ea556f257 Mon Sep 17 00:00:00 2001
From: Christoph Schwarzmeier <christoph.schwarzmeier@fau.de>
Date: Fri, 21 Sep 2018 10:03:19 +0200
Subject: [PATCH] Additional get() and operator() for GhostLayerFieldAdaptor

---
 AUTHORS.txt                                 | 1 +
 src/field/adaptors/GhostLayerFieldAdaptor.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/AUTHORS.txt b/AUTHORS.txt
index 65d88317f..ea429d78e 100644
--- a/AUTHORS.txt
+++ b/AUTHORS.txt
@@ -4,6 +4,7 @@ List of contributors
 Christian Feichtinger
 Christian Godenschwager
 Christoph Rettinger
+Christoph Schwarzmeier
 Daniel Ritter
 Daniela Anderl
 David Staubach
diff --git a/src/field/adaptors/GhostLayerFieldAdaptor.h b/src/field/adaptors/GhostLayerFieldAdaptor.h
index 6aa81b7d2..f26f87b0a 100644
--- a/src/field/adaptors/GhostLayerFieldAdaptor.h
+++ b/src/field/adaptors/GhostLayerFieldAdaptor.h
@@ -183,6 +183,7 @@ public:
    inline T operator()( cell_idx_t x, cell_idx_t y, cell_idx_t z, uint_t f) const     { return functor_( glField_, x,y,z,cell_idx_c(f)); }
    inline T operator()( const Cell & c ) const                                        { return functor_( glField_, c[0], c[1], c[2] ); }
    inline T operator()( const Cell & c, cell_idx_t f ) const                          { return functor_( glField_, c[0], c[1], c[2], f ); }
+   inline T operator()( const Cell & c, uint_t f ) const                              { return functor_( glField_, c[0], c[1], c[2], cell_idx_c(f) ); }
 
 
    inline T get( cell_idx_t x, cell_idx_t y, cell_idx_t z) const                      { return functor_( glField_, x, y, z    ); }
@@ -190,6 +191,7 @@ public:
    inline T get( cell_idx_t x, cell_idx_t y, cell_idx_t z, uint_t f ) const           { return functor_( glField_, x, y, z, cell_idx_c(f) ); }
    inline T get( const Cell & c ) const                                               { return functor_( glField_, c[0], c[1], c[2] ); }
    inline T get( const Cell & c, cell_idx_t f ) const                                 { return functor_( glField_, c[0], c[1], c[2], f ); }
+   inline T get( const Cell & c, uint_t f ) const                                     { return functor_( glField_, c[0], c[1], c[2], cell_idx_c(f) ); }
    //@}
    //*******************************************************************************************************************
 
-- 
GitLab