New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5779 for branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90 – NEMO

Ignore:
Timestamp:
2015-10-06T18:28:13+02:00 (9 years ago)
Author:
mathiot
Message:

ISF coupling branch: correct some compilation issues, remove code related to MISOMIP/ISOMIP+ and polishing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90

    r5619 r5779  
    472472         risfdep(:,:)=0.e0 
    473473         misfdep(:,:)=1 
    474          ! 
    475          ! (ISF) TODO build ice draft netcdf file for isomip and build the corresponding part of code 
    476          IF( cp_cfg == "isomip" .AND. ln_isfcav ) THEN  
    477             risfdep(:,:)=200.e0  
    478             misfdep(:,:)=1  
    479             ij0 = 1 ; ij1 = 40  
    480             DO jj = mj0(ij0), mj1(ij1)  
    481                risfdep(:,jj)=700.0_wp-(gphit(:,jj)+80.0_wp)*125.0_wp  
    482             END DO  
    483             WHERE( bathy(:,:) <= 0._wp )  risfdep(:,:) = 0._wp  
    484          !  
    485          ELSEIF ( cp_cfg == "isomip2" .AND. ln_isfcav ) THEN 
    486          !  
    487             risfdep(:,:)=0.e0 
    488             misfdep(:,:)=1 
    489             ij0 = 1 ; ij1 = 40 
    490             DO jj = mj0(ij0), mj1(ij1) 
    491                risfdep(:,jj)=700.0_wp-(gphit(:,jj)+80.0_wp)*125.0_wp 
    492             END DO 
    493             WHERE( bathy(:,:) <= 0._wp )  risfdep(:,:) = 0._wp 
    494          END IF 
    495474         ! 
    496475         DEALLOCATE( idta, zdta ) 
     
    549528               CALL iom_close( inum ) 
    550529               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 
    551536            END IF 
    552             ! set grounded point to 0 
    553             WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 ) 
    554                misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp 
    555                mbathy (:,:) = 0 ; bathy  (:,:) = 0._wp 
    556             END WHERE 
    557537            !        
    558538            IF( cp_cfg == "orca" .AND. jp_cfg == 2 ) THEN    ! ORCA R2 configuration 
     
    12601240      END WHERE   
    12611241 
    1262       ! set grounded point to 0 
    1263       WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 ) 
    1264          misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp 
    1265          mbathy (:,:) = 0 ; bathy  (:,:) = 0._wp 
    1266       END WHERE 
    1267  
    12681242      ! Compute misfdep for ocean points (i.e. first wet level)  
    12691243      ! find the first ocean level such that the first level thickness  
     
    12781252      END WHERE 
    12791253 
    1280       ! remove very shallow ice shelf (less than ~ 10m if 75L) 
    1281       IF ( cp_cfg .NE. "isomip" ) THEN 
    1282          WHERE (risfdep(:,:) < 100 ) 
    1283             misfdep = 1; risfdep = 0.0_wp; 
    1284          END WHERE 
    1285       END IF 
    1286   
    12871254! 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 
    12881255      icompt = 0  
    12891256! run the bathy check 10 times to be sure all the modif in the bathy or iceshelf draft are compatible together 
    12901257      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) 
    12911259         WHERE (bathy(:,:) .LE. risfdep(:,:)+1e-2 ) 
    12921260            misfdep(:,:) = 0 ; risfdep(:,:) = 0._wp 
Note: See TracChangeset for help on using the changeset viewer.