Changeset 2633 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC
- Timestamp:
- 2011-02-28T18:23:23+01:00 (13 years ago)
- Location:
- branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90
r2620 r2633 64 64 !! References : Shine and Hendersson-Sellers 1985, JGR, 90(D1), 2243-2250. 65 65 !!---------------------------------------------------------------------- 66 USE wrk_nemo, ONLY: wrk_ use, wrk_release, llwrk_use, llwrk_release66 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released, llwrk_in_use, llwrk_not_released 67 67 USE wrk_nemo, ONLY: wrk_3d_6, wrk_3d_7 ! 3D workspace 68 68 !! … … 90 90 ijpl = SIZE( pt_ice, 3 ) ! number of ice categories 91 91 92 IF( (.not. llwrk_use(3,1)) .OR. (.not. wrk_use(3, 6,7)) ) THEN92 IF( llwrk_in_use(3,1) .OR. wrk_in_use(3, 6,7) ) THEN 93 93 CALL ctl_stop('albedo_ice: requested workspace arrays are unavailable') ; RETURN 94 94 ENDIF … … 172 172 pa_ice_os(:,:,:) = pa_ice_cs(:,:,:) + rn_cloud ! Oberhuber correction 173 173 ! 174 IF( .not. wrk_release(3, 6,7) ) CALL ctl_stop('albedo_ice: failed to release workspace arrays')174 IF( wrk_not_released(3, 6,7) ) CALL ctl_stop('albedo_ice: failed to release workspace arrays') 175 175 ! 176 176 END SUBROUTINE albedo_ice -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/cpl_oasis4.F90
r2620 r2633 110 110 !! ** Method : OASIS4 MPI communication 111 111 !!-------------------------------------------------------------------- 112 USE wrk_nemo, ONLY: wrk_ use, wrk_release112 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 113 113 USE wrk_nemo, ONLY: zclo => wrk_3d_1, zcla => wrk_3d_2 114 114 USE wrk_nemo, ONLY: zlon => wrk_2d_1, zlat => wrk_2d_2 … … 146 146 !!-------------------------------------------------------------------- 147 147 148 IF( .NOT. wrk_use(3, 1,2) .OR. .NOT. wrk_use(2, 1,2) )THEN148 IF( wrk_in_use(3, 1,2) .OR. wrk_in_use(2, 1,2) )THEN 149 149 CALL ctl_stop('cpl_prism_define: ERROR: requested workspace arrays are unavailable.') ; RETURN 150 150 ENDIF … … 321 321 IF ( nerror /= PRISM_Success ) CALL prism_abort ( ncomp_id, 'cpl_prism_define', 'Failure in prism_enddef') 322 322 323 IF( .not. wrk_release(3, 1,2) .OR. &324 .not. wrk_release(2, 1,2) ) CALL ctl_stop('cpl_prism_define: failed to release workspace arrays')323 IF( wrk_not_released(3, 1,2) .OR. & 324 wrk_not_released(2, 1,2) ) CALL ctl_stop('cpl_prism_define: failed to release workspace arrays') 325 325 ! 326 326 END SUBROUTINE cpl_prism_define -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/fldread.F90
r2620 r2633 587 587 !! ** Purpose : Vector fields may need to be rotated onto the local grid direction 588 588 !!---------------------------------------------------------------------- 589 USE wrk_nemo, ONLY: wrk_ use, wrk_release589 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 590 590 USE wrk_nemo, ONLY: utmp => wrk_2d_4, vtmp => wrk_2d_5 ! 2D workspace 591 591 !! … … 600 600 !!--------------------------------------------------------------------- 601 601 602 IF( .not. wrk_use(2, 4,5) ) THEN602 IF(wrk_in_use(2, 4,5) ) THEN 603 603 CALL ctl_stop('fld_rot: ERROR: requested workspace arrays are unavailable.') ; RETURN 604 604 END IF … … 637 637 END DO 638 638 ! 639 IF( .not. wrk_release(2, 4,5) ) CALL ctl_stop('fld_rot: ERROR: failed to release workspace arrays.')639 IF(wrk_not_released(2, 4,5) ) CALL ctl_stop('fld_rot: ERROR: failed to release workspace arrays.') 640 640 ! 641 641 END SUBROUTINE fld_rot … … 804 804 !! file, restructuring as required 805 805 !!---------------------------------------------------------------------- 806 USE wrk_nemo, ONLY: wrk_ use, wrk_release, iwrk_use, iwrk_release806 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released, iwrk_in_use, iwrk_not_released 807 807 USE wrk_nemo, ONLY: data_tmp => wrk_2d_1 808 808 USE wrk_nemo, ONLY: data_src => iwrk_2d_1 … … 820 820 !!---------------------------------------------------------------------- 821 821 ! 822 IF( .NOT. wrk_use(2, 1) .OR. .NOT. iwrk_use(2,1)) THEN822 IF( wrk_in_use(2, 1) .OR. iwrk_in_use(2,1) ) THEN 823 823 CALL ctl_stop('fld_weights: requested workspace arrays are unavailable.') ; RETURN 824 824 END IF … … 934 934 ENDIF 935 935 936 IF( .NOT. wrk_release(2, 1) .OR. &937 .NOT.iwrk_release(2, 1) ) CALL ctl_stop('fld_weights: failed to release workspace arrays')936 IF( wrk_not_released(2, 1) .OR. & 937 iwrk_not_released(2, 1) ) CALL ctl_stop('fld_weights: failed to release workspace arrays') 938 938 ! 939 939 END SUBROUTINE fld_weight -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_clio.F90
r2620 r2633 210 210 !! ** Nota : sf has to be a dummy argument for AGRIF on NEC 211 211 !!---------------------------------------------------------------------- 212 USE wrk_nemo, ONLY: wrk_ use, wrk_release212 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 213 213 USE wrk_nemo, ONLY: zqlw => wrk_2d_1 ! long-wave heat flux over ocean 214 214 USE wrk_nemo, ONLY: zqla => wrk_2d_2 ! latent heat flux over ocean … … 232 232 !!--------------------------------------------------------------------- 233 233 234 IF( .not. wrk_use(3, 1,2,3))THEN234 IF(wrk_in_use(3, 1,2,3))THEN 235 235 CALL ctl_stop('blk_oce_clio: requested workspace arrays are unavailable.') 236 236 RETURN … … 386 386 ENDIF 387 387 388 IF( .not. wrk_release(3, 1,2,3))THEN388 IF(wrk_not_released(3, 1,2,3))THEN 389 389 CALL ctl_stop('blk_oce_clio: failed to release workspace arrays.') 390 390 END IF … … 420 420 !! 421 421 !!---------------------------------------------------------------------- 422 USE wrk_nemo, ONLY: wrk_ use, wrk_release422 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 423 423 USE wrk_nemo, ONLY: ztatm => wrk_2d_1 ! Tair in Kelvin 424 424 USE wrk_nemo, ONLY: zqatm => wrk_2d_2 ! specific humidity … … 457 457 !!--------------------------------------------------------------------- 458 458 459 IF( ( .NOT. wrk_use(2, 1,2,3,4)) .OR. (.NOT. wrk_use(3, 1,2)) )THEN459 IF( (wrk_in_use(2, 1,2,3,4)) .OR. (wrk_in_use(3, 1,2)) )THEN 460 460 CALL ctl_stop('blk_ice_clio: requested workspace arrays are unavailable.') 461 461 RETURN … … 637 637 ENDIF 638 638 639 IF( ( .NOT. wrk_release(2, 1,2,3,4)) .OR. (.NOT. wrk_release(3, 1,2)) )THEN639 IF( (wrk_not_released(2, 1,2,3,4)) .OR. (wrk_not_released(3, 1,2)) )THEN 640 640 CALL ctl_stop('blk_ice_clio: failed to release workspace arrays.') 641 641 END IF … … 654 654 !! - also initialise sbudyko and stauc once for all 655 655 !!---------------------------------------------------------------------- 656 USE wrk_nemo, ONLY: wrk_ use, wrk_release656 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 657 657 USE wrk_nemo, ONLY: zev => wrk_2d_1 ! vapour pressure 658 658 USE wrk_nemo, ONLY: zdlha => wrk_2d_2, zlsrise => wrk_2d_3, zlsset => wrk_2d_4 … … 679 679 !!--------------------------------------------------------------------- 680 680 681 IF( .NOT. wrk_use(2, 1,2,3,4,5,6))THEN681 IF(wrk_in_use(2, 1,2,3,4,5,6))THEN 682 682 CALL ctl_stop('blk_clio_qsr_oce: requested workspace arrays unavailable.') 683 683 RETURN … … 796 796 END DO 797 797 798 IF( .NOT. wrk_release(2, 1,2,3,4,5,6))THEN798 IF(wrk_not_released(2, 1,2,3,4,5,6))THEN 799 799 CALL ctl_stop('blk_clio_qsr_oce: failed to release workspace arrays.') 800 800 END IF … … 813 813 !! - also initialise sbudyko and stauc once for all 814 814 !!---------------------------------------------------------------------- 815 USE wrk_nemo, ONLY: wrk_ use, wrk_release815 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 816 816 USE wrk_nemo, ONLY: zev => wrk_2d_1 ! vapour pressure 817 817 USE wrk_nemo, ONLY: zdlha => wrk_2d_2 ! 2D workspace … … 839 839 !!--------------------------------------------------------------------- 840 840 841 IF( .NOT. wrk_use(2, 1,2,3,4,5,6))THEN841 IF(wrk_in_use(2, 1,2,3,4,5,6))THEN 842 842 CALL ctl_stop('blk_clio_qsr_ice: requested workspace arrays unavailable.') 843 843 RETURN … … 945 945 END DO 946 946 ! 947 IF( .NOT. wrk_release(2, 1,2,3,4,5,6))THEN947 IF(wrk_not_released(2, 1,2,3,4,5,6))THEN 948 948 CALL ctl_stop('blk_clio_qsr_ice: failed to release workspace arrays.') 949 949 END IF -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_core.F90
r2620 r2633 208 208 !! ** Nota : sf has to be a dummy argument for AGRIF on NEC 209 209 !!--------------------------------------------------------------------- 210 USE wrk_nemo, ONLY: wrk_ use, wrk_release210 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 211 211 USE wrk_nemo, ONLY: zwnd_i => wrk_2d_1, zwnd_j => wrk_2d_2 ! wind speed components at T-point 212 212 USE wrk_nemo, ONLY: zqsatw => wrk_2d_3 ! specific humidity at pst … … 230 230 !!--------------------------------------------------------------------- 231 231 232 IF( .NOT. wrk_use(2, 1,2,3,4,5,6,7,8,9,10,11,12,13))THEN232 IF(wrk_in_use(2, 1,2,3,4,5,6,7,8,9,10,11,12,13))THEN 233 233 CALL ctl_stop('blk_oce_core: requested workspace arrays unavailable.') 234 234 RETURN … … 383 383 ENDIF 384 384 ! 385 IF( .NOT. wrk_release(2, 1,2,3,4,5,6,7,8,9,10,11,12,13))THEN385 IF(wrk_not_released(2, 1,2,3,4,5,6,7,8,9,10,11,12,13))THEN 386 386 CALL ctl_stop('blk_oce_core: failed to release workspace arrays.') 387 387 END IF … … 407 407 !! caution : the net upward water flux has with mm/day unit 408 408 !!--------------------------------------------------------------------- 409 USE wrk_nemo, ONLY: wrk_ use, wrk_release409 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 410 410 USE wrk_nemo, ONLY: z_wnds_t => wrk_2d_1 ! wind speed ( = | U10m - U_ice | ) at T-point 411 411 USE wrk_nemo, ONLY: wrk_3d_4, wrk_3d_5, wrk_3d_6, wrk_3d_7 … … 447 447 448 448 ! Set-up access to workspace arrays 449 IF( (.NOT. wrk_use(2, 1)) .OR. (.NOT. wrk_use(3, 4,5,6,7)) )THEN449 IF( wrk_in_use(2, 1) .OR. wrk_in_use(3, 4,5,6,7) )THEN 450 450 CALL ctl_stop('blk_ice_core: requested workspace arrays unavailable.') 451 451 RETURN … … 608 608 ENDIF 609 609 610 IF( (.NOT. wrk_release(2, 1)) .OR. (.NOT. wrk_release(3, 4,5,6,7)) )THEN610 IF( wrk_not_released(2, 1) .OR. wrk_not_released(3, 4,5,6,7) )THEN 611 611 CALL ctl_stop('blk_ice_core: failed to release workspace arrays.') 612 612 END IF … … 635 635 !! 9.0 ! 05-08 (L. Brodeau) Rewriting and optimization 636 636 !!---------------------------------------------------------------------- 637 USE wrk_nemo, ONLY: wrk_ use, wrk_release, iwrk_use, iwrk_release637 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released, iwrk_in_use, iwrk_not_released 638 638 USE wrk_nemo, ONLY: dU10 => wrk_2d_14 ! dU [m/s] 639 639 USE wrk_nemo, ONLY: dT => wrk_2d_15 ! air/sea temperature difference [K] … … 675 675 !!---------------------------------------------------------------------- 676 676 677 IF( (.NOT. wrk_use(2, 14,15,16,17,18,&678 19,20,21,22,23,24,&679 25,26,27,28,29,30,&680 31,32)) .OR. &681 (.NOT. iwrk_use(2, 1)) )THEN677 IF( wrk_in_use(2, 14,15,16,17,18, & 678 19,20,21,22,23,24, & 679 25,26,27,28,29,30, & 680 31,32) .OR. & 681 iwrk_in_use(2, 1) )THEN 682 682 CALL ctl_stop('TURB_CORE_1Z: requested workspace arrays unavailable.') 683 683 RETURN … … 743 743 END DO 744 744 !! 745 IF( (.NOT. wrk_release(2, 14,15,16,17,18,&746 19,20,21,22,23,24, &747 25,26,27,28,29,30, &748 31,32)).OR. &749 (.NOT. iwrk_release(2, 1)) )THEN745 IF( wrk_not_released(2, 14,15,16,17,18, & 746 19,20,21,22,23,24, & 747 25,26,27,28,29,30, & 748 31,32) .OR. & 749 iwrk_not_released(2, 1) )THEN 750 750 CALL ctl_stop('TURB_CORE_1Z: failed to release workspace arrays.') 751 751 END IF … … 772 772 !! 9.0 ! 06-12 (L. Brodeau) Original code for 2Z 773 773 !!---------------------------------------------------------------------- 774 USE wrk_nemo, ONLY: wrk_ use, wrk_release, iwrk_use, iwrk_release774 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released, iwrk_in_use, iwrk_not_released 775 775 USE wrk_nemo, ONLY: dU10 => wrk_2d_1 ! dU [m/s] 776 776 USE wrk_nemo, ONLY: dT => wrk_2d_2 ! air/sea temperature difference [K] … … 816 816 !! * Start 817 817 818 IF( (.NOT. wrk_use(2, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21)) .OR. &819 (.NOT. iwrk_use(2, 1)) )THEN818 IF( wrk_in_use(2, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21) .OR. & 819 iwrk_in_use(2, 1) )THEN 820 820 CALL ctl_stop('TURB_CORE_2Z: requested workspace arrays unavailable.') 821 821 RETURN … … 895 895 END DO 896 896 !! 897 IF( (.NOT. wrk_release(2, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21)) .OR. &898 (.NOT. iwrk_release(2, 1)) )THEN897 IF( wrk_not_released(2, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21) .OR. & 898 iwrk_not_released(2, 1) )THEN 899 899 CALL ctl_stop('TURB_CORE_2Z: requested workspace arrays unavailable.') 900 900 END IF … … 905 905 FUNCTION psi_m(zta) !! Psis, L & Y eq. (8c), (8d), (8e) 906 906 !------------------------------------------------------------------------------- 907 USE wrk_nemo, ONLY: wrk_ use, wrk_release907 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 908 908 USE wrk_nemo, ONLY: X2 => wrk_2d_33 909 909 USE wrk_nemo, ONLY: X => wrk_2d_34 … … 916 916 !------------------------------------------------------------------------------- 917 917 918 IF( .NOT. wrk_use(2, 33,34,35))THEN918 IF(wrk_in_use(2, 33,34,35))THEN 919 919 CALL ctl_stop('psi_m: requested workspace arrays unavailable.') 920 920 RETURN … … 926 926 & + (1. - stabit)*(2*log((1. + X)/2) + log((1. + X2)/2) - 2*atan(X) + pi/2) ! Unstable 927 927 928 IF( .NOT. wrk_release(2, 33,34,35))THEN928 IF(wrk_not_released(2, 33,34,35))THEN 929 929 CALL ctl_stop('psi_m: failed to release workspace arrays.') 930 930 RETURN … … 936 936 FUNCTION psi_h(zta) !! Psis, L & Y eq. (8c), (8d), (8e) 937 937 !------------------------------------------------------------------------------- 938 USE wrk_nemo, ONLY: wrk_ use, wrk_release938 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 939 939 USE wrk_nemo, ONLY: X2 => wrk_2d_33 940 940 USE wrk_nemo, ONLY: X => wrk_2d_34 … … 946 946 !------------------------------------------------------------------------------- 947 947 948 IF( .NOT. wrk_use(2, 33,34,35))THEN948 IF(wrk_in_use(2, 33,34,35))THEN 949 949 CALL ctl_stop('psi_h: requested workspace arrays unavailable.') 950 950 RETURN … … 956 956 & + (1. - stabit)*(2.*log( (1. + X2)/2. )) ! Unstable 957 957 958 IF( .NOT. wrk_release(2, 33,34,35))THEN958 IF(wrk_not_released(2, 33,34,35))THEN 959 959 CALL ctl_stop('psi_h: failed to release workspace arrays.') 960 960 RETURN -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r2620 r2633 206 206 !! * initialise the OASIS coupler 207 207 !!---------------------------------------------------------------------- 208 USE wrk_nemo, ONLY: wrk_ use, wrk_release208 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 209 209 USE wrk_nemo, ONLY: zacs => wrk_2d_1, zaos => wrk_2d_2 ! clear & overcast sky albedos 210 210 !! … … 223 223 !!--------------------------------------------------------------------- 224 224 225 IF( .NOT. wrk_use(2,1,2) ) THEN225 IF(wrk_in_use(2,1,2) ) THEN 226 226 CALL ctl_stop('sbc_cpl_init: requested workspace arrays unavailable.') ; RETURN 227 227 END IF … … 563 563 & CALL ctl_stop( 'sbc_cpl_init: diurnal cycle reconstruction (ln_dm2dc) needs daily couping for solar radiation' ) 564 564 565 IF( .not. wrk_release(2,1,2))THEN565 IF(wrk_not_released(2,1,2))THEN 566 566 CALL ctl_stop('sbc_cpl_init: failed to release workspace arrays.') 567 567 END IF … … 612 612 !! emp = emps evap. - precip. (- runoffs) (- calving) ('ocean only case) 613 613 !!---------------------------------------------------------------------- 614 USE wrk_nemo, ONLY: wrk_ use, wrk_release614 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 615 615 USE wrk_nemo, ONLY: ztx => wrk_2d_1, zty => wrk_2d_2 616 616 !! … … 629 629 !!---------------------------------------------------------------------- 630 630 631 IF( .not. wrk_use(2, 1,2))THEN631 IF(wrk_in_use(2, 1,2))THEN 632 632 CALL ctl_stop('sbc_cpl_rcv: requested workspace arrays unavailable.') 633 633 RETURN … … 820 820 ENDIF 821 821 ! 822 IF( .not. wrk_release(2, 1,2))THEN822 IF(wrk_not_released(2, 1,2))THEN 823 823 CALL ctl_stop('sbc_cpl_rcv: failed to release workspace arrays.') 824 824 END IF … … 860 860 !! ** Action : return ptau_i, ptau_j, the stress over the ice at cp_ice_msh point 861 861 !!---------------------------------------------------------------------- 862 USE wrk_nemo, ONLY: wrk_ use, wrk_release862 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 863 863 USE wrk_nemo, ONLY: ztx => wrk_2d_1, zty => wrk_2d_2 864 864 !! … … 870 870 !!---------------------------------------------------------------------- 871 871 872 IF( .not. wrk_use(2,1,2))THEN872 IF(wrk_in_use(2,1,2))THEN 873 873 CALL ctl_stop('sbc_cpl_ice_tau: requested workspace arrays unavailable.') 874 874 RETURN … … 1041 1041 ENDIF 1042 1042 ! 1043 IF( .not. wrk_release(2,1,2))THEN1043 IF(wrk_not_released(2,1,2))THEN 1044 1044 CALL ctl_stop('sbc_cpl_ice_tau: failed to release workspace arrays.') 1045 1045 END IF … … 1093 1093 !! sprecip solid precipitation over the ocean 1094 1094 !!---------------------------------------------------------------------- 1095 USE wrk_nemo, ONLY: wrk_ use, wrk_release1095 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 1096 1096 USE wrk_nemo, ONLY: zcptn => wrk_2d_1 ! rcp * tn(:,:,1) 1097 1097 USE wrk_nemo, ONLY: ztmp => wrk_2d_2 ! temporary array … … 1118 1118 !!---------------------------------------------------------------------- 1119 1119 1120 IF( (.not. wrk_use(2,1,2,3)) .OR. (.not. wrk_use(3,1)) )THEN1120 IF( wrk_in_use(2,1,2,3) .OR. wrk_in_use(3,1) )THEN 1121 1121 CALL ctl_stop('sbc_cpl_ice_flx: requested workspace arrays unavailable.') 1122 1122 RETURN … … 1240 1240 END SELECT 1241 1241 1242 IF( (.not. wrk_release(2,1,2,3)) .OR. (.not. wrk_release(3,1)) )THEN1242 IF( wrk_not_released(2,1,2,3) .OR. wrk_not_released(3,1) )THEN 1243 1243 CALL ctl_stop('sbc_cpl_ice_flx: failed to release workspace arrays.') 1244 1244 END IF … … 1256 1256 !! all the needed fields (as defined in sbc_cpl_init) 1257 1257 !!---------------------------------------------------------------------- 1258 USE wrk_nemo, ONLY: wrk_ use, wrk_release1258 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 1259 1259 USE wrk_nemo, ONLY: zfr_l => wrk_2d_1 ! 1. - fr_i(:,:) 1260 1260 USE wrk_nemo, ONLY: ztmp1 => wrk_2d_2, ztmp2 => wrk_2d_3 … … 1268 1268 !!---------------------------------------------------------------------- 1269 1269 1270 IF( .NOT. wrk_use(2, 1,2,3,4,5,6,7,8,9))THEN1270 IF(wrk_in_use(2, 1,2,3,4,5,6,7,8,9))THEN 1271 1271 CALL ctl_stop('sbc_cpl_snd: requested workspace arrays are unavailable.'); 1272 1272 RETURN … … 1445 1445 ENDIF 1446 1446 ! 1447 IF( .NOT. wrk_release(2, 1,2,3,4,5,6,7,8,9))THEN1447 IF(wrk_not_released(2, 1,2,3,4,5,6,7,8,9))THEN 1448 1448 CALL ctl_stop('sbc_cpl_snd: failed to release workspace arrays.'); 1449 1449 RETURN -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbcfwb.F90
r2620 r2633 58 58 !! & spread out over erp area depending its sign 59 59 !!---------------------------------------------------------------------- 60 USE wrk_nemo, ONLY: wrk_ use, wrk_release60 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 61 61 USE wrk_nemo, ONLY: ztmsk_neg => wrk_2d_1, ztmsk_pos=> wrk_2d_2 62 62 USE wrk_nemo, ONLY: ztmsk_tospread => wrk_2d_3 … … 73 73 !!---------------------------------------------------------------------- 74 74 ! 75 IF( .NOT. wrk_use(2, 1,2,3,4,5) ) THEN75 IF( wrk_in_use(2, 1,2,3,4,5) ) THEN 76 76 CALL ctl_stop('sbc_fwb: requested workspace arrays are unavailable') ; RETURN 77 77 END IF … … 196 196 END SELECT 197 197 ! 198 IF( .NOT. wrk_release(2, 1,2,3,4,5) ) CALL ctl_stop('sbc_fwb: failed to release workspace arrays')198 IF( wrk_not_released(2, 1,2,3,4,5) ) CALL ctl_stop('sbc_fwb: failed to release workspace arrays') 199 199 ! 200 200 END SUBROUTINE sbc_fwb -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim.F90
r2620 r2633 89 89 !! utau, vtau, taum, wndm, qns , qsr, emp , emps 90 90 !!--------------------------------------------------------------------- 91 USE wrk_nemo, ONLY: wrk_ use, wrk_release91 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 92 92 USE wrk_nemo, ONLY: zalb_ice_os => wrk_3d_1 ! albedo of the ice under overcast sky 93 93 USE wrk_nemo, ONLY: zalb_ice_cs => wrk_3d_2 ! albedo of ice under clear sky … … 100 100 !!---------------------------------------------------------------------- 101 101 102 IF( .NOT. wrk_use(3, 1,2) ) THEN102 IF( wrk_in_use(3, 1,2) ) THEN 103 103 CALL ctl_stop( 'sbc_ice_lim: requested workspace arrays are unavailable.' ) ; RETURN 104 104 ENDIF … … 252 252 !!gm remark, the ocean-ice stress is not saved in ice diag call above ..... find a solution!!! 253 253 ! 254 IF( .NOT. wrk_release(3, 1,2) ) CALL ctl_stop( 'sbc_ice_lim: failed to release workspace arrays.' )254 IF( wrk_not_released(3, 1,2) ) CALL ctl_stop( 'sbc_ice_lim: failed to release workspace arrays.' ) 255 255 ! 256 256 END SUBROUTINE sbc_ice_lim -
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_lim_2.F90
r2620 r2633 83 83 !! utau, vtau, taum, wndm, qns , qsr, emp , emps 84 84 !!--------------------------------------------------------------------- 85 USE wrk_nemo, ONLY: wrk_ use, wrk_release85 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 86 86 USE wrk_nemo, ONLY: wrk_3d_1, wrk_3d_2, wrk_3d_3 ! 3D workspace 87 87 !! … … 96 96 !!---------------------------------------------------------------------- 97 97 98 IF( .NOT. wrk_use(3, 1,2,3) ) THEN98 IF(wrk_in_use(3, 1,2,3) ) THEN 99 99 CALL ctl_stop('sbc_ice_lim_2: requested workspace arrays are unavailable.') ; RETURN 100 100 END IF … … 228 228 IF( ln_limdyn ) CALL lim_sbc_tau_2( kt, ub(:,:,1), vb(:,:,1) ) ! using before instantaneous surf. currents 229 229 ! 230 IF( .NOT. wrk_release(3, 1,2,3) ) CALL ctl_stop('sbc_ice_lim_2: failed to release workspace arrays')230 IF(wrk_not_released(3, 1,2,3) ) CALL ctl_stop('sbc_ice_lim_2: failed to release workspace arrays') 231 231 ! 232 232 END SUBROUTINE sbc_ice_lim_2
Note: See TracChangeset
for help on using the changeset viewer.