Skip to content

Commit

Permalink
DBM: Workaround CCE error
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jan 18, 2022
1 parent 17d88d9 commit 3a0bea3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/dbm/dbm_api.F
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,17 @@ SUBROUTINE dbm_create_from_template(matrix, name, template)
CHARACTER(len=*), INTENT(IN) :: name
TYPE(dbm_type), INTENT(IN) :: template
INTEGER, CONTIGUOUS, DIMENSION(:), POINTER :: col_block_sizes, row_block_sizes
! Store pointers in intermediate variables to workaround a CCE error.
row_block_sizes => dbm_get_row_block_sizes(template)
col_block_sizes => dbm_get_col_block_sizes(template)
CALL dbm_create(matrix, &
name=name, &
dist=dbm_get_distribution(template), &
row_block_sizes=dbm_get_row_block_sizes(template), &
col_block_sizes=dbm_get_col_block_sizes(template))
row_block_sizes=row_block_sizes, &
col_block_sizes=col_block_sizes)
END SUBROUTINE dbm_create_from_template
Expand Down

0 comments on commit 3a0bea3

Please sign in to comment.