Skip to content
Snippets Groups Projects
Commit 275c8706 authored by RODIER Quentin's avatar RODIER Quentin
Browse files

Expand by hand functions COUNT() for ISIZE micro + add limits for ANY() on ice4_pack

parent b09f777b
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,7 @@ IF(PARAMI%LPACK_MICRO) THEN ...@@ -234,7 +234,7 @@ IF(PARAMI%LPACK_MICRO) THEN
! Setup packing parameters ! Setup packing parameters
OUTER_LOOP: DO JK = ISTK, IKTE OUTER_LOOP: DO JK = ISTK, IKTE
IF (ANY(ODMICRO(:,JK))) THEN IF (ANY(ODMICRO(IIJB:IIJE,JK))) THEN
DO JIJ = ISTIJ, IIJE DO JIJ = ISTIJ, IIJE
IF (ODMICRO(JIJ,JK)) THEN IF (ODMICRO(JIJ,JK)) THEN
IC=IC+1 IC=IC+1
......
...@@ -493,7 +493,12 @@ ENDIF ...@@ -493,7 +493,12 @@ ENDIF
! ---------------------- ! ----------------------
! !
IF(PARAMI%LPACK_MICRO) THEN IF(PARAMI%LPACK_MICRO) THEN
ISIZE=COUNT(LLMICRO) ! Number of points with active microphysics ISIZE=0
DO JK=1,D%NKT
DO JIJ=1,D%NIJT
IF(LLMICRO(JIJ,JK)) ISIZE=ISIZE+1 ! Number of points with active microphysics
END DO
END DO
!PARAMI%NPROMICRO is the requested size for cache_blocking loop !PARAMI%NPROMICRO is the requested size for cache_blocking loop
!IPROMA is the effective size !IPROMA is the effective size
!This parameter must be computed here because it is used for array dimensioning in ice4_pack !This parameter must be computed here because it is used for array dimensioning in ice4_pack
......
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