Changeset 1319
- Timestamp:
- 2009-02-17T18:58:41+01:00 (15 years ago)
- Location:
- trunk/NEMO/OPA_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/IOM/iom.F90
r1202 r1319 49 49 CONTAINS 50 50 51 SUBROUTINE iom_open( cdname, kiomid, ldwrt, kdom, kiolib, ldstop )51 SUBROUTINE iom_open( cdname, kiomid, ldwrt, kdom, kiolib, ldstop, ldiof ) 52 52 !!--------------------------------------------------------------------- 53 53 !! *** SUBROUTINE iom_open *** … … 61 61 INTEGER , INTENT(in ), OPTIONAL :: kiolib ! library used to open the file (default = jpnf90) 62 62 LOGICAL , INTENT(in ), OPTIONAL :: ldstop ! stop if open to read a non-existing file (default = .TRUE.) 63 LOGICAL , INTENT(in ), OPTIONAL :: ldiof ! Interp On the Fly, needed for AGRIF (default = .FALSE.) 63 64 64 65 CHARACTER(LEN=100) :: clname ! the name of the file based on cdname [[+clcpu]+clcpu] … … 71 72 LOGICAL :: llnoov ! local definition to read overlap 72 73 LOGICAL :: llstop ! local definition of ldstop 74 LOGICAL :: lliof ! local definition of ldiof 73 75 INTEGER :: iolib ! library do we use to open the file 74 76 INTEGER :: icnt ! counter for digits in clcpu (max = jpmax_digits) … … 105 107 ELSE ; iolib = jpnf90 106 108 ENDIF 109 ! are we using interpolation on the fly? 110 IF( PRESENT(ldiof) ) THEN ; lliof = ldiof 111 ELSE ; lliof = .FALSE. 112 ENDIF 107 113 ! do we read the overlap 108 114 ! ugly patch SM+JMM+RB to overwrite global definition in some cases … … 112 118 clname = trim(cdname) 113 119 #if defined key_agrif 114 IF ( .NOT. Agrif_Root() ) THEN120 IF ( .NOT. Agrif_Root() .AND. .NOT. lliof ) THEN 115 121 iln = INDEX(clname,'/') 116 122 cltmpn = clname(1:iln) -
trunk/NEMO/OPA_SRC/SBC/fldread.F90
r1295 r1319 506 506 IF( sdjf%cltype == 'monthly' ) WRITE(sdjf%clname, '(a,"m",i2.2)' ) TRIM( sdjf%clname ), kmonth ! add month 507 507 ENDIF 508 CALL iom_open( sdjf%clname, sdjf%num, ldstop = ldstop )508 CALL iom_open( sdjf%clname, sdjf%num, ldstop = ldstop, ldiof = LEN(TRIM(sdjf%wgtname)) > 0 ) 509 509 ! 510 510 END SUBROUTINE fld_clopn … … 677 677 678 678 !! open input data file (non-model grid) 679 CALL iom_open( sd%clname, inum )679 CALL iom_open( sd%clname, inum, ldiof = LEN(TRIM(sd%wgtname)) > 0 ) 680 680 681 681 !! get dimensions
Note: See TracChangeset
for help on using the changeset viewer.