Changeset 881 for IOIPSL/trunk/src/histcom.f90
- Timestamp:
- 02/03/10 16:54:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
IOIPSL/trunk/src/histcom.f90
r879 r881 110 110 & last_opp,last_wrt,last_opp_chk,last_wrt_chk,nb_opp,nb_wrt 111 111 !- For future optimization 112 REAL, ALLOCATABLE,DIMENSION(:) :: t_bf112 REAL,POINTER,DIMENSION(:) :: t_bf 113 113 !# REAL,ALLOCATABLE,DIMENSION(:) :: V_1_D 114 114 !# REAL,ALLOCATABLE,DIMENSION(:,:) :: V_2_D … … 692 692 dims(1:1) = (/ W_F(idf)%xid /) 693 693 ENDIF 694 iret = NF90_DEF_VAR (nfid,lon_name,NF90_ FLOAT,dims(1:ndim),nlonid)694 iret = NF90_DEF_VAR (nfid,lon_name,NF90_REAL4,dims(1:ndim),nlonid) 695 695 IF (rectilinear) THEN 696 696 iret = NF90_PUT_ATT (nfid,nlonid,'axis',"X") … … 713 713 dims(1:1) = (/ W_F(idf)%yid /) 714 714 ENDIF 715 iret = NF90_DEF_VAR (nfid,lat_name,NF90_ FLOAT,dims(1:ndim),nlatid)715 iret = NF90_DEF_VAR (nfid,lat_name,NF90_REAL4,dims(1:ndim),nlatid) 716 716 IF (rectilinear) THEN 717 717 iret = NF90_PUT_ATT (nfid,nlatid,'axis',"Y") … … 867 867 IF (l_dbg) WRITE(*,*) "histhori_irregular 2.0" 868 868 !- 869 iret = NF90_DEF_VAR (nfid,lon_name,NF90_ FLOAT,dims(1:ndim),nlonid)869 iret = NF90_DEF_VAR (nfid,lon_name,NF90_REAL4,dims(1:ndim),nlonid) 870 870 iret = NF90_PUT_ATT (nfid,nlonid,'standard_name',"longitude") 871 871 iret = NF90_PUT_ATT (nfid,nlonid,'units',"degrees_east") … … 880 880 !- 881 881 iret = NF90_PUT_ATT (nfid,nlonid,'bounds',TRIM(lonbound_name)) 882 iret = NF90_DEF_VAR (nfid,lonbound_name,NF90_ FLOAT, &882 iret = NF90_DEF_VAR (nfid,lonbound_name,NF90_REAL4, & 883 883 & dimsb(1:ndimb),nlonidb) 884 884 longname = 'Boundaries for coordinate variable '//TRIM(lon_name) … … 889 889 IF (l_dbg) WRITE(*,*) "histhori_irregular 3.0" 890 890 !- 891 iret = NF90_DEF_VAR (nfid,lat_name,NF90_ FLOAT,dims(1:ndim),nlatid)891 iret = NF90_DEF_VAR (nfid,lat_name,NF90_REAL4,dims(1:ndim),nlatid) 892 892 iret = NF90_PUT_ATT (nfid,nlatid,'standard_name',"latitude") 893 893 iret = NF90_PUT_ATT (nfid,nlatid,'units',"degrees_north") … … 902 902 !- 903 903 iret = NF90_PUT_ATT (nfid,nlatid,'bounds',TRIM(latbound_name)) 904 iret = NF90_DEF_VAR (nfid,latbound_name,NF90_ FLOAT, &904 iret = NF90_DEF_VAR (nfid,latbound_name,NF90_REAL4, & 905 905 & dimsb(1:ndimb),nlatidb) 906 906 longname = 'Boundaries for coordinate variable '//TRIM(lat_name) … … 1051 1051 leng = MIN(LEN_TRIM(pzaxname),20) 1052 1052 iret = NF90_DEF_DIM (nfid,pzaxname(1:leng),pzsize,zaxid_tmp) 1053 iret = NF90_DEF_VAR (nfid,pzaxname(1:leng),NF90_ FLOAT, &1053 iret = NF90_DEF_VAR (nfid,pzaxname(1:leng),NF90_REAL4, & 1054 1054 & zaxid_tmp,zdimid) 1055 1055 iret = NF90_PUT_ATT (nfid,zdimid,'axis',"Z") … … 1551 1551 str30 = "time_counter" 1552 1552 ENDIF 1553 iret = NF90_DEF_VAR (nfid,str30,NF90_ DOUBLE, &1553 iret = NF90_DEF_VAR (nfid,str30,NF90_REAL8, & 1554 1554 & dims(1),W_F(idf)%W_V(itx)%tdimid) 1555 1555 IF (W_F(idf)%n_tax <= 1) THEN … … 1664 1664 ENDIF 1665 1665 IF (W_F(idf)%W_V(iv)%hist_wrt_rng) THEN 1666 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 1667 & REAL(W_F(idf)%W_V(iv)%hist_minmax(1),KIND=4)) 1668 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 1669 & REAL(W_F(idf)%W_V(iv)%hist_minmax(2),KIND=4)) 1666 IF (W_F(idf)%W_V(iv)%v_typ == hist_r8) THEN 1667 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 1668 & REAL(W_F(idf)%W_V(iv)%hist_minmax(1),KIND=8)) 1669 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 1670 & REAL(W_F(idf)%W_V(iv)%hist_minmax(2),KIND=8)) 1671 ELSE 1672 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 1673 & REAL(W_F(idf)%W_V(iv)%hist_minmax(1),KIND=4)) 1674 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 1675 & REAL(W_F(idf)%W_V(iv)%hist_minmax(2),KIND=4)) 1676 ENDIF 1670 1677 ENDIF 1671 1678 iret = NF90_PUT_ATT (nfid,nvid,'long_name', & … … 2482 2489 !-------- Put the min and max values on the file 2483 2490 nvid = W_F(ifile)%W_V(iv)%ncvid 2484 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 2485 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(1),KIND=4)) 2486 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 2487 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(2),KIND=4)) 2491 IF (W_F(ifile)%W_V(iv)%v_typ == hist_r8) THEN 2492 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 2493 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(1),KIND=8)) 2494 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 2495 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(2),KIND=8)) 2496 ELSE 2497 iret = NF90_PUT_ATT (nfid,nvid,'valid_min', & 2498 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(1),KIND=4)) 2499 iret = NF90_PUT_ATT (nfid,nvid,'valid_max', & 2500 & REAL(W_F(ifile)%W_V(iv)%hist_minmax(2),KIND=4)) 2501 ENDIF 2488 2502 ENDIF 2489 2503 ENDIF 2490 2504 !---- Time-Buffers 2491 IF (A LLOCATED(W_F(ifile)%W_V(iv)%t_bf)) THEN2505 IF (ASSOCIATED(W_F(ifile)%W_V(iv)%t_bf)) THEN 2492 2506 DEALLOCATE(W_F(ifile)%W_V(iv)%t_bf) 2493 2507 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.