Skip to content

Commit

Permalink
Merge branch 'hotfix/1.28.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Oct 18, 2024
2 parents f118ce4 + 22f23d1 commit c4a2cc5
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ if( HAVE_RSYNC )
set( LIBRSYNC_LIBRARIES rsync )
endif()

ecbuild_add_option( FEATURE SANDBOX
DEFAULT OFF
DESCRIPTION "Sandbox playground for prototyping code that may never see the light of day" )

### Performance tests

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.28.0
1.28.1
2 changes: 0 additions & 2 deletions src/eckit/codec/Stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ Stream::Stream(DataHandle* datahandle) : shared_(datahandle), ptr_(shared_.get()

Stream::Stream(std::shared_ptr<DataHandle> datahandle) : shared_(datahandle), ptr_(shared_.get()) {}

Stream::Stream(const Stream& other) = default;

DataHandle& Stream::datahandle() {
ASSERT(ptr_ != nullptr);
return *ptr_;
Expand Down
7 changes: 5 additions & 2 deletions src/eckit/codec/Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ class Stream {
/// the referenced datahandle
Stream(DataHandle&);

/// Assignment constructor sharing datahandle with other Stream
Stream(const Stream&);
/// Assignment/Copy constructor sharing datahandle with other Stream
Stream(const Stream&) = default;
Stream(Stream&&) = default;
Stream& operator=(const Stream&) = default;
Stream& operator=(Stream&&) = default;

/// Access internal DataHandle
DataHandle& datahandle();
Expand Down
4 changes: 4 additions & 0 deletions src/eckit/linalg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ ecbuild_add_library( TARGET eckit_linalg TYPE SHARED
PRIVATE_LIBS ${eckit_la_plibs} )

if( eckit_HAVE_EIGEN )
if(NOT EIGEN3_INCLUDE_DIRS AND TARGET Eigen3::Eigen)
get_target_property(EIGEN3_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
endif()

# Add include directories with "SYSTEM" to avoid warnings from within Eigen headers
target_include_directories( eckit_linalg SYSTEM PRIVATE ${EIGEN3_INCLUDE_DIRS} )
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/eckit/linalg/sparse/LinearAlgebraEigen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const LinearAlgebraEigen __la("eigen");

using vec_t = Eigen::VectorXd::MapType;
using mat_t = Eigen::MatrixXd::MapType;
using spm_t = Eigen::MappedSparseMatrix<Scalar, Eigen::RowMajor, Index>;
using spm_t = Eigen::Map<Eigen::SparseMatrix<Scalar, Eigen::RowMajor, Index>>;


void LinearAlgebraEigen::print(std::ostream& out) const {
Expand Down
6 changes: 5 additions & 1 deletion src/eckit/maths/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ ecbuild_add_library(
PUBLIC_LIBS eckit
)

if(HAVE_EIGEN)
if(eckit_HAVE_EIGEN)
if(NOT EIGEN3_INCLUDE_DIRS AND TARGET Eigen3::Eigen)
get_target_property(EIGEN3_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
endif()

# Add include directories with "SYSTEM" to avoid warnings from within Eigen headers
target_include_directories(eckit_maths SYSTEM PUBLIC ${EIGEN3_INCLUDE_DIRS})
endif()
Expand Down
2 changes: 1 addition & 1 deletion tests/value/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ foreach( valueType nil boolean integer double string valuemap valuelist date ord
LIBS eckit )
endforeach()

if( CMAKE_CXX_COMPILER_ID MATCHES "Cray" )
if( CMAKE_CXX_COMPILER_ID STREQUAL "Cray" )
# Disable warnings for test_value_integer due to following:
# "Integer conversion resulted in a change of sign."
set_source_files_properties(test_value_integer.cc PROPERTIES COMPILE_FLAGS "-hmsglevel_4" )
Expand Down

0 comments on commit c4a2cc5

Please sign in to comment.