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 2636 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/fldread.F90 – NEMO

Ignore:
Timestamp:
2011-03-01T20:04:06+01:00 (13 years ago)
Author:
gm
Message:

dynamic mem: #785 ; move ctl_stop & warn in lib_mpp to avoid a circular dependency + ctl_stop improvment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/SBC/fldread.F90

    r2633 r2636  
    1515   USE oce             ! ocean dynamics and tracers 
    1616   USE dom_oce         ! ocean space and time domain 
    17    USE ioipsl, ONLY :   ymds2ju, ju2ymds   ! for calendar 
    1817   USE phycst          ! ??? 
    1918   USE in_out_manager  ! I/O manager 
    2019   USE iom             ! I/O manager library 
    2120   USE geo2ocean       ! for vector rotation on to model grid 
     21   USE lib_mpp         ! MPP library 
     22   USE ioipsl, ONLY :   ymds2ju, ju2ymds   ! for calendar 
    2223 
    2324   IMPLICIT NONE 
     
    391392         CALL fld_clopn( sdjf, iyear, imonth, iday ) 
    392393      ENDIF  
    393  
     394      ! 
    394395   END SUBROUTINE fld_init 
    395396 
     
    804805      !!                file, restructuring as required 
    805806      !!---------------------------------------------------------------------- 
    806       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released, iwrk_in_use, iwrk_not_released 
    807       USE wrk_nemo, ONLY: data_tmp => wrk_2d_1 
    808       USE wrk_nemo, ONLY: data_src => iwrk_2d_1 
     807      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released, iwrk_in_use, iwrk_not_released 
     808      USE wrk_nemo, ONLY:   data_tmp =>  wrk_2d_1     ! 2D real    workspace 
     809      USE wrk_nemo, ONLY:   data_src => iwrk_2d_1     ! 2D integer workspace 
    809810      !! 
    810811      TYPE( FLD ), INTENT(in) ::   sd   ! field with name of weights file 
     
    822823      IF(  wrk_in_use(2, 1)  .OR.  iwrk_in_use(2,1) ) THEN 
    823824         CALL ctl_stop('fld_weights: requested workspace arrays are unavailable.')   ;   RETURN 
    824       END IF 
     825      ENDIF 
    825826      ! 
    826827      IF( nxt_wgt > tot_wgts ) THEN 
     
    934935      ENDIF 
    935936 
    936       IF( wrk_not_released(2, 1) .OR.    & 
     937      IF(  wrk_not_released(2, 1) .OR.    & 
    937938          iwrk_not_released(2, 1)   )   CALL ctl_stop('fld_weights: failed to release workspace arrays') 
    938939      ! 
Note: See TracChangeset for help on using the changeset viewer.