Skip to content
Snippets Groups Projects
Commit 70890bd7 authored by Juan Escobar's avatar Juan Escobar
Browse files

Juan 03/08/2020:sources_neg_correct.f90, bug <-> array of size(:,:,:,0) => return if krr=0

parent 7aa115cd
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
! Author: P. Wautelet 25/06/2020 (deduplication of code from advection_metsv, resolved_cloud and turb) ! Author: P. Wautelet 25/06/2020 (deduplication of code from advection_metsv, resolved_cloud and turb)
! Modifications: ! Modifications:
! P. Wautelet 30/06/2020: remove non-local corrections in resolved_cloud for NEGA => new local corrections here ! P. Wautelet 30/06/2020: remove non-local corrections in resolved_cloud for NEGA => new local corrections here
! J. Escobar 21/07/2020: bug <-> array of size(:,:,:,0) => return if krr=0
!----------------------------------------------------------------- !-----------------------------------------------------------------
module mode_sources_neg_correct module mode_sources_neg_correct
...@@ -50,6 +51,8 @@ integer :: jrmax ...@@ -50,6 +51,8 @@ integer :: jrmax
integer :: jsv integer :: jsv
real, dimension(:, :, :), allocatable :: zt, zexn, zlv, zls, zcph, zcor real, dimension(:, :, :), allocatable :: zt, zexn, zlv, zls, zcph, zcor
if (krr .eq. 0 ) return
if ( hbudname /= 'NEADV' .and. hbudname /= 'NECON' .and. hbudname /= 'NEGA' .and. hbudname /= 'NETUR' ) & if ( hbudname /= 'NEADV' .and. hbudname /= 'NECON' .and. hbudname /= 'NEGA' .and. hbudname /= 'NETUR' ) &
call Print_msg( NVERB_WARNING, 'GEN', 'Sources_neg_correct', 'budget '//hbudname//' not yet tested' ) call Print_msg( NVERB_WARNING, 'GEN', 'Sources_neg_correct', 'budget '//hbudname//' not yet tested' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment