Skip to content

Commit

Permalink
Merge pull request #536 from FESOM/salinity_blowup_fix
Browse files Browse the repository at this point in the history
consistent blowup check for salinty as clipped in oce_ale_tracer.F90
  • Loading branch information
dsidoren authored Nov 10, 2023
2 parents c5e2f09 + ac16e9c commit 2695a5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/oce_ale_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ subroutine solve_tracers_ale(ice, dynamics, tracers, partit, mesh)
end do
!$OMP END PARALLEL DO
end if


! TODO: do it only when it is coupled to atmosphere
!___________________________________________________________________________
! to avoid crash with high salinities when coupled to atmosphere
! --> if we do only where (tr_arr(:,:,2) < 3._WP ) we also fill up the bottom
Expand Down
2 changes: 1 addition & 1 deletion src/write_step_info.F90
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ subroutine check_blowup(istep, ice, dynamics, tracers, partit, mesh)
!_______________________________________________________________
! check salt
if ( (tracers%data(2)%values(nz, n) /= tracers%data(2)%values(nz, n)) .or. &
tracers%data(2)%values(nz, n) <=3.0_WP .or. tracers%data(2)%values(nz, n)>=45.0_WP ) then
tracers%data(2)%values(nz, n) <3.0_WP .or. tracers%data(2)%values(nz, n) >45.0_WP ) then
!$OMP CRITICAL
found_blowup_loc=1
write(*,*) '___CHECK FOR BLOW UP___________ --> mstep=',istep
Expand Down

0 comments on commit 2695a5d

Please sign in to comment.