From 7427814b9f124b15d3f2163092961087e58bdf18 Mon Sep 17 00:00:00 2001 From: Hannes Vogt Date: Fri, 6 Apr 2018 13:25:41 +0200 Subject: [PATCH] Field by value: missing fix (#25) Remove of & from register functions got lost. --- CMakeLists.txt | 2 +- src/verification/field_collection.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d1446a..b227fcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ project(gridtools-verification CXX C) include(ExternalProject) -set(GRIDTOOLS_VERIFICATION_VERSION_STRING "0.5") +set(GRIDTOOLS_VERIFICATION_VERSION_STRING "0.6") set(SERIALBOX_VERSION_REQUIRED "2.2.1") #----------------- CMake options diff --git a/src/verification/field_collection.h b/src/verification/field_collection.h index 91f53d5..68e6661 100644 --- a/src/verification/field_collection.h +++ b/src/verification/field_collection.h @@ -141,7 +141,7 @@ namespace gt_verification { * @param field The field that has to be filled with data from disk */ template < typename FieldType > - void register_input_field(const std::string &fieldname, FieldType &field, bool also_previous = false) noexcept { + void register_input_field(const std::string &fieldname, FieldType field, bool also_previous = false) noexcept { inputFields_.push_back( internal::input_field< T >{fieldname, type_erased_field_view< T >(field), also_previous}); } @@ -158,7 +158,7 @@ namespace gt_verification { */ template < typename FieldType > void register_output_and_reference_field( - const std::string &fieldname, FieldType &field, boundary_extent boundary = boundary_extent()) noexcept { + const std::string &fieldname, FieldType field, boundary_extent boundary = boundary_extent()) noexcept { boundaries_.push_back(boundary); outputFields_.push_back(std::make_pair(fieldname, type_erased_field_view< T >(field)));