Skip to content

Commit

Permalink
provide nproma in addition to block_size, since the first block_size …
Browse files Browse the repository at this point in the history
…is not necessarally equal nproma
  • Loading branch information
sbrdar committed Aug 23, 2023
1 parent 9efc1ec commit 7893f78
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ idx_t atlas__fs__BStructuredColumns__block_begin(const detail::BlockStructuredCo
idx_t atlas__fs__BStructuredColumns__block_size(const detail::BlockStructuredColumns* This, idx_t jblk) {
return This->block_size(jblk);
}
idx_t atlas__fs__BStructuredColumns__nproma(const detail::BlockStructuredColumns* This) {
return This->nproma();
}
idx_t atlas__fs__BStructuredColumns__nblks(const detail::BlockStructuredColumns* This) {
return This->nblks();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ idx_t atlas__fs__BStructuredColumns__i_end_halo(const detail::BlockStructuredCol
idx_t atlas__fs__BStructuredColumns__levels(const detail::BlockStructuredColumns* This);
idx_t atlas__fs__BStructuredColumns__block_begin(const detail::BlockStructuredColumns* This, idx_t jblk);
idx_t atlas__fs__BStructuredColumns__block_size(const detail::BlockStructuredColumns* This, idx_t jblk);
idx_t atlas__fs__BStructuredColumns__nproma(const detail::BlockStructuredColumns* This);
idx_t atlas__fs__BStructuredColumns__nblks(const detail::BlockStructuredColumns* This);

field::FieldImpl* atlas__fs__BStructuredColumns__xy(const detail::BlockStructuredColumns* This);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module atlas_functionspace_BlockStructuredColumns_module
procedure :: levels
procedure :: block_begin
procedure :: block_size
procedure :: nproma
procedure :: nblks

procedure :: xy
Expand Down Expand Up @@ -554,6 +555,13 @@ function block_size(this,j) result(i)
i = atlas__fs__BStructuredColumns__block_size(this%CPTR_PGIBUG_A,j-1)
end function

function nproma(this) result(i)
use atlas_functionspace_BlockStructuredColumns_c_binding
integer(ATLAS_KIND_IDX) :: i
class(atlas_functionspace_BlockStructuredColumns), intent(in) :: this
i = atlas__fs__BStructuredColumns__nproma(this%CPTR_PGIBUG_A)
end function

function nblks(this) result(i)
use atlas_functionspace_BlockStructuredColumns_c_binding
integer(ATLAS_KIND_IDX) :: i
Expand Down

0 comments on commit 7893f78

Please sign in to comment.