Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrdar committed Jan 31, 2025
1 parent 54067d0 commit 19c33d8
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/atlas/interpolation/AssembleGlobalMatrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace atlas::interpolation {

using Triplet = eckit::linalg::Triplet;
using Triplets = std::vector<Triplet>;
using Matrix = eckit::linalg::SparseMatrix;


atlas::linalg::SparseMatrixStorage assemble_global_matrix(
Expand Down Expand Up @@ -79,26 +78,8 @@ Triplets assemble_global_triplets(
};

const idx_t src_size = src_fs.size();
idx_t src_nghost{0};
for (idx_t i = 0; i < src_size; ++i) {
if( src_remote_index(i) != i ) {
++src_nghost;
}
}
auto tgt_ghost = array::make_view<int,1>(tgt_fs.ghost());
gidx_t tgt_owned = tgt_fs.size();
const idx_t tgt_size = tgt_fs.size();
idx_t tgt_nghost{0};
for( idx_t i = 0; i < tgt_size; ++i) {
if (not tgt_ghost(i)) {
++tgt_nghost;
}
}
tgt_owned -= tgt_nghost;
auto src_ghost = array::make_view<int,1>(src_fs.ghost());

auto src_owned = src_size - src_nghost;

auto tgt_ghost = array::make_view<int,1>(tgt_fs.ghost());
auto src_global_index = array::make_view<gidx_t,1>(src_fs.global_index());
auto tgt_global_index = array::make_view<gidx_t,1>(tgt_fs.global_index());
auto src_part = array::make_view<int,1>(src_fs.partition());
Expand Down

0 comments on commit 19c33d8

Please sign in to comment.