Skip to content

Commit

Permalink
- fix convergence table in num. sol. for other processes than rank 0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr-deltares authored Jul 5, 2023
1 parent 799383f commit 319c585
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Solution/NumericalSolution.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3155,21 +3155,25 @@ subroutine sln_get_loc(this, nodesln, str)
integer(I4B) :: istart
integer(I4B) :: iend
integer(I4B) :: noder
integer(I4B) :: nglo
!
! -- initialize dummy variables
str = ''
!
! -- initialize local variables
noder = 0
!
! -- when parallel, account for offset
nglo = nodesln + this%matrix_offset
!
! -- calculate and set offsets
do i = 1, this%modellist%Count()
mp => GetNumericalModelFromList(this%modellist, i)
istart = 0
iend = 0
call mp%get_mrange(istart, iend)
if (nodesln >= istart .and. nodesln <= iend) then
noder = nodesln - istart + 1
if (nglo >= istart .and. nglo <= iend) then
noder = nglo - istart + 1
call mp%get_mcellid(noder, str)
exit
end if
Expand Down

0 comments on commit 319c585

Please sign in to comment.