Changeset 1442 for trunk/UTIL
- Timestamp:
- Jun 4, 2015, 4:23:32 PM (10 years ago)
- Location:
- trunk/UTIL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/compile
r1366 r1442 4 4 # > compile zrecast 5 5 6 # pgf sur les machines du LMD :7 #----------------------------- 6 # pgf sur les machines du LMD (ferme): 7 #------------------------------------- 8 8 #pgf95 -Bstatic $1.F90 \ 9 9 #-I/distrib/local/netcdf/pgi_7.1-6_64/include \ 10 10 #-L/distrib/local/netcdf/pgi_7.1-6_64/lib -lnetcdf -o $1.e 11 11 12 # gfortran au LMD 13 #---------------- 14 gfortran $1.F90 \ 15 -I/d2/emlmd/netcdf64-4.0.1_gfortran/include \ 16 -L/d2/emlmd/netcdf64-4.0.1_gfortran/lib -lnetcdf -o $1.e 17 12 18 # ifort 13 19 #------ 14 ifort $1.F90 \15 -I$NETCDF/include \16 -L$NETCDF/lib -lnetcdf -o $1.e20 #ifort $1.F90 \ 21 #-I$NETCDF/include \ 22 #-L$NETCDF/lib -lnetcdf -o $1.e 17 23 18 24 #----------------------------------------------------------------- -
trunk/UTIL/zrecast.F90
r1366 r1442 80 80 81 81 character (len=64) :: text ! to store some text 82 character (len=64) :: timeunit ! to store the units for time axis 82 83 character (len=64) :: tmpvarname ! temporarily store a variable name 83 84 integer tmpvarid ! temporarily store a variable ID … … 459 460 endif 460 461 endif 462 timeunit=" " 463 ierr=NF_GET_ATT_TEXT(infid,tmpvarid,'units',timeunit) 461 464 462 465 ! altlength … … 1400 1403 stop "Error: Problem writing long_name for Time" 1401 1404 endif 1402 text='days since 0000-01-1 00:00:00' 1403 ierr=NF_PUT_ATT_TEXT(outfid,time_varid,'units',len_trim(text),text) 1405 ierr=NF_PUT_ATT_TEXT(outfid,time_varid,'units',len_trim(timeunit),timeunit) 1404 1406 if (ierr.ne.NF_NOERR) then 1405 1407 stop "Error: Problem writing units for Time"
Note: See TracChangeset
for help on using the changeset viewer.