Skip to content
Snippets Groups Projects
Commit 48a5a86d authored by RIETTE Sébastien's avatar RIETTE Sébastien
Browse files

S. Riette 28 Nov 2023: #ifdef modified in mode_ice4_sedimentation_split.F90 to ease parsing

parent fb37faff
No related branches found
No related tags found
No related merge requests found
...@@ -388,11 +388,22 @@ DO WHILE (ZANYREMAINT) ...@@ -388,11 +388,22 @@ DO WHILE (ZANYREMAINT)
ENDIF ENDIF
ENDDO ENDDO
ENDDO ENDDO
#ifdef REPRO48
#else
ELSEIF(KSPE==5) THEN ELSEIF(KSPE==5) THEN
! ******* for snow ! ******* for snow
ZWSED(:,:) = 0. ZWSED(:,:) = 0.
#ifdef REPRO48
!The following lines must be kept equal to the computation in the general case ("for other species" case below)
ZFSED=ICEP%XFSEDS
ZEXSED=ICEP%XEXSEDS
DO JK = IKTB,IKTE
DO JIJ = IIJB,IIJE
IF(PRXT(JIJ,JK)>ICED%XRTMIN(KSPE) .AND. ZREMAINT(JIJ)>0.) THEN
ZWSED(JIJ, JK) = ZFSED * PRXT(JIJ, JK)**ZEXSED &
& * PRHODREF(JIJ, JK)**(ZEXSED-ICED%XCEXVT)
ENDIF
ENDDO
ENDDO
#else
DO JK = IKTB,IKTE DO JK = IKTB,IKTE
DO JIJ = IIJB,IIJE DO JIJ = IIJB,IIJE
IF(PRXT(JIJ,JK)> ICED%XRTMIN(KSPE) .AND. ZREMAINT(JIJ)>0.) THEN IF(PRXT(JIJ,JK)> ICED%XRTMIN(KSPE) .AND. ZREMAINT(JIJ)>0.) THEN
...@@ -419,12 +430,6 @@ DO WHILE (ZANYREMAINT) ...@@ -419,12 +430,6 @@ DO WHILE (ZANYREMAINT)
CASE(3) CASE(3)
ZFSED=ICEP%XFSEDR ZFSED=ICEP%XFSEDR
ZEXSED=ICEP%XEXSEDR ZEXSED=ICEP%XEXSEDR
#ifdef REPRO48
CASE(5)
ZFSED=ICEP%XFSEDS
ZEXSED=ICEP%XEXSEDS
#else
#endif
CASE(6) CASE(6)
ZFSED=ICEP%XFSEDG ZFSED=ICEP%XFSEDG
ZEXSED=ICEP%XEXSEDG ZEXSED=ICEP%XEXSEDG
......
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