diff --git a/include/scalapackpp/block_cyclic_matrix.hpp b/include/scalapackpp/block_cyclic_matrix.hpp index 20f797c..691b0c8 100644 --- a/include/scalapackpp/block_cyclic_matrix.hpp +++ b/include/scalapackpp/block_cyclic_matrix.hpp @@ -65,8 +65,8 @@ class BlockCyclicMatrix { inline auto n_local() const { return N_local_; } inline auto mb() const { return dist_.mb(); } inline auto nb() const { return dist_.nb(); } - inline auto isrc() const { return dist_.isrc_; } - inline auto jsrc() const { return dist_.jsrc_; } + inline auto isrc() const { return dist_.isrc(); } + inline auto jsrc() const { return dist_.jsrc(); } inline auto& desc() const { return desc_; } inline auto data() const { return local_data_.data(); } diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fc55e72..861299d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,7 +8,7 @@ if( NOT TARGET blacspp::blacspp ) include( FetchContent ) FetchContent_Declare( blacspp GIT_REPOSITORY https://github.com/wavefunction91/blacspp.git - GIT_TAG 1b7f70286081f8909502312b6e54df616788b5d5 + GIT_TAG b87b02bc2cb5ba86b3df690dd89bf0df695a3437 ) FetchContent_MakeAvailable( blacspp ) diff --git a/src/information.cxx b/src/information.cxx index 0564a73..8f154e7 100644 --- a/src/information.cxx +++ b/src/information.cxx @@ -43,7 +43,7 @@ int64_t local_row_from_desc( int64_t M, const scalapack_desc& desc ) { const auto RSRC_A = desc[internal::_RSRC_A]; auto grid_dim = blacspp::wrappers::grid_info( ICXT_A ); - return numroc( M, MB_A, RSRC_A, grid_dim.my_row, grid_dim.np_row ); + return numroc( M, MB_A, grid_dim.my_row, RSRC_A, grid_dim.np_row ); } int64_t local_col_from_desc( int64_t N, const scalapack_desc& desc ) { @@ -53,7 +53,7 @@ int64_t local_col_from_desc( int64_t N, const scalapack_desc& desc ) { const auto CSRC_A = desc[internal::_CSRC_A]; auto grid_dim = blacspp::wrappers::grid_info( ICXT_A ); - return numroc( N, NB_A, CSRC_A, grid_dim.my_col, grid_dim.np_col ); + return numroc( N, NB_A, grid_dim.my_col, CSRC_A, grid_dim.np_col ); }