- Timestamp:
- 2015-10-06T18:28:13+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90
r5619 r5779 472 472 risfdep(:,:)=0.e0 473 473 misfdep(:,:)=1 474 !475 ! (ISF) TODO build ice draft netcdf file for isomip and build the corresponding part of code476 IF( cp_cfg == "isomip" .AND. ln_isfcav ) THEN477 risfdep(:,:)=200.e0478 misfdep(:,:)=1479 ij0 = 1 ; ij1 = 40480 DO jj = mj0(ij0), mj1(ij1)481 risfdep(:,jj)=700.0_wp-(gphit(:,jj)+80.0_wp)*125.0_wp482 END DO483 WHERE( bathy(:,:) <= 0._wp ) risfdep(:,:) = 0._wp484 !485 ELSEIF ( cp_cfg == "isomip2" .AND. ln_isfcav ) THEN486 !487 risfdep(:,:)=0.e0488 misfdep(:,:)=1489 ij0 = 1 ; ij1 = 40490 DO jj = mj0(ij0), mj1(ij1)491 risfdep(:,jj)=700.0_wp-(gphit(:,jj)+80.0_wp)*125.0_wp492 END DO493 WHERE( bathy(:,:) <= 0._wp ) risfdep(:,:) = 0._wp494 END IF495 474 ! 496 475 DEALLOCATE( idta, zdta ) … … 549 528 CALL iom_close( inum ) 550 529 WHERE( bathy(:,:) <= 0._wp ) risfdep(:,:) = 0._wp 530 531 ! set grounded point to 0 (treshold at 1cm, have to be update after first coupling experience) 532 WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 ) 533 misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp 534 mbathy (:,:) = 0 ; bathy (:,:) = 0._wp 535 END WHERE 551 536 END IF 552 ! set grounded point to 0553 WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 )554 misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp555 mbathy (:,:) = 0 ; bathy (:,:) = 0._wp556 END WHERE557 537 ! 558 538 IF( cp_cfg == "orca" .AND. jp_cfg == 2 ) THEN ! ORCA R2 configuration … … 1260 1240 END WHERE 1261 1241 1262 ! set grounded point to 01263 WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 )1264 misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp1265 mbathy (:,:) = 0 ; bathy (:,:) = 0._wp1266 END WHERE1267 1268 1242 ! Compute misfdep for ocean points (i.e. first wet level) 1269 1243 ! find the first ocean level such that the first level thickness … … 1278 1252 END WHERE 1279 1253 1280 ! remove very shallow ice shelf (less than ~ 10m if 75L)1281 IF ( cp_cfg .NE. "isomip" ) THEN1282 WHERE (risfdep(:,:) < 100 )1283 misfdep = 1; risfdep = 0.0_wp;1284 END WHERE1285 END IF1286 1287 1254 ! basic check for the compatibility of bathy and risfdep. I think it should be offline because it is not perfect and cannot solved all the situation 1288 1255 icompt = 0 1289 1256 ! run the bathy check 10 times to be sure all the modif in the bathy or iceshelf draft are compatible together 1290 1257 DO jl = 1, 10 1258 ! check at each iteration if isf is grounded or not (1cm treshold have to be update after first coupling experiments) 1291 1259 WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 ) 1292 1260 misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp
Note: See TracChangeset
for help on using the changeset viewer.