Changeset 367 for IOIPSL/trunk/src/flincom.f90
- Timestamp:
- 07/28/08 10:28:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
IOIPSL/trunk/src/flincom.f90
r11 r367 368 368 !- 369 369 INTEGER :: iret, vid, fid, nbdim, i, iilast, jjlast 370 INTEGER :: it, len,gdtt_id, old_id, iv, gdtmaf_id370 INTEGER :: gdtt_id, old_id, iv, gdtmaf_id 371 371 CHARACTER(LEN=250) :: name 372 372 CHARACTER(LEN=80) :: units, calendar … … 391 391 iideb, iilen, iilast, jjdeb, jjlen, jjlast 392 392 !- 393 ! 1.0 get all infos on the file we if it is not yet opened393 ! 1.0 get all infos on the file 394 394 !- 395 395 ! Either the fid_out has not been initialized (0 or very large) … … 599 599 !--- 600 600 ALLOCATE(vec_tmp(ttm)) 601 iret = NF90_GET_VAR (fid, vid, vec_tmp, & 602 start=(/ 1 /), count=(/ ttm /)) 601 iret = NF90_GET_VAR (fid,vid,vec_tmp,start=(/ 1 /),count=(/ ttm /)) 603 602 itaus(1:ttm) = NINT(vec_tmp(1:ttm)) 604 603 DEALLOCATE(vec_tmp) … … 609 608 !--- 610 609 !-- Find the calendar 611 calendar='XXXX' 612 iret = NF90_GET_ATT (fid, gdtmaf_id, 'calendar', calendar) 613 IF ( INDEX(calendar,'XXXX') < 1 ) THEN 614 CALL ioconf_calendar(calendar) 610 iret = NF90_GET_ATT (fid,gdtmaf_id,'calendar',calendar) 611 IF (iret == NF90_NOERR) THEN 612 CALL ioconf_calendar(calendar) 615 613 ENDIF 616 614 !-- 617 615 units = '' 618 iret = NF90_GET_ATT (fid, vid, 'units',units)616 iret = NF90_GET_ATT (fid,vid,'units',units) 619 617 IF (gdtt_id > 0) THEN 620 618 units = units(INDEX(units,'since')+6:LEN_TRIM(units)) … … 1629 1627 LOGICAL :: check = .FALSE. 1630 1628 !--------------------------------------------------------------------- 1629 IF (check) THEN 1630 WRITE (*,*) 'flinget_scal in file with id ',fid_in 1631 ENDIF 1632 !- 1631 1633 fid = ncids(fid_in) 1632 1634 !-
Note: See TracChangeset
for help on using the changeset viewer.