Skip to content

Commit

Permalink
make loops OMP conform, reduce allocation of bottomdrag and UVBT_har…
Browse files Browse the repository at this point in the history
…mvisc array
  • Loading branch information
patrickscholz committed Sep 14, 2023
1 parent 6c364b2 commit 2bcb58b
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 55 deletions.
9 changes: 9 additions & 0 deletions src/MOD_DYN.F90
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ MODULE MOD_DYN
! UBTmean_mean... Mean BT velocity to trim 3D velocity in tracers
real(kind=WP), allocatable, dimension(:,:) :: se_uvBT, se_uvBT_theta, se_uvBT_mean, se_uvBT_12

! array that are needed for viscosity and bottomdrag stabilization of
! split-expl subcycling method
real(kind=WP), allocatable, dimension(:,:) :: se_uvBT_stab_hvisc
real(kind=WP), allocatable, dimension(:) :: se_uvBT_stab_bdrag

!___________________________________________________________________________
! summarizes solver input parameter
type(t_solverinfo) :: solverinfo
Expand Down Expand Up @@ -290,6 +295,8 @@ subroutine WRITE_T_DYN(dynamics, unit, iostat, iomsg)
call write_bin_array(dynamics%se_uvBT_theta, unit, iostat, iomsg)
call write_bin_array(dynamics%se_uvBT_mean , unit, iostat, iomsg)
call write_bin_array(dynamics%se_uvBT_12 , unit, iostat, iomsg)
call write_bin_array(dynamics%se_uvBT_stab_hvisc , unit, iostat, iomsg)
call write_bin_array(dynamics%se_uvBT_stab_bdrag , unit, iostat, iomsg)
end if


Expand Down Expand Up @@ -346,6 +353,8 @@ subroutine READ_T_DYN(dynamics, unit, iostat, iomsg)
call read_bin_array(dynamics%se_uvBT_theta, unit, iostat, iomsg)
call read_bin_array(dynamics%se_uvBT_mean , unit, iostat, iomsg)
call read_bin_array(dynamics%se_uvBT_12 , unit, iostat, iomsg)
call read_bin_array(dynamics%se_uvBT_stab_hvisc , unit, iostat, iomsg)
call read_bin_array(dynamics%se_uvBT_stab_bdrag , unit, iostat, iomsg)
end if

end subroutine READ_T_DYN
Expand Down
Loading

0 comments on commit 2bcb58b

Please sign in to comment.