Skip to content

Commit

Permalink
When removing patches, set null pointers to the end-points.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Apr 27, 2018
1 parent 4209292 commit b92e726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions biogeochem/EDPatchDynamicsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ subroutine fuse_2_patches(csite, dp, rp)
! to be set, and it is set as the patch older than dp. That patch
! already knows it's older patch (so no need to set or change it)
csite%youngest_patch => olderp
olderp%younger => null()
end if


Expand All @@ -1676,6 +1677,7 @@ subroutine fuse_2_patches(csite, dp, rp)
! to be set, and it is set as the patch younger than dp. That patch already
! knows it's younger patch, no need to set
csite%oldest_patch => youngerp
youngerp%older => null()
end if


Expand Down

0 comments on commit b92e726

Please sign in to comment.