Skip to content

Commit

Permalink
Field by value: missing fix (#25)
Browse files Browse the repository at this point in the history
Remove of & from register functions got lost.
  • Loading branch information
havogt authored Apr 6, 2018
1 parent de2b42d commit 7427814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/verification/field_collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand All @@ -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)));

Expand Down

0 comments on commit 7427814

Please sign in to comment.