Changeset 1713
- Timestamp:
- 2009-11-05T14:49:10+01:00 (14 years ago)
- Location:
- trunk/NEMO
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OFF_SRC/daymod.F90
r1450 r1713 56 56 REAL(wp), PUBLIC, DIMENSION(0:13) :: rmonth_end !: second since the beginning of the year and the end of the months 57 57 REAL(wp), PUBLIC :: sec1jan000 !: second since Jan. 1st 00h of nit000 year and Jan. 1st 00h of the current year 58 59 ! this two variables are wrong DO NOT USE THEM !!!60 INTEGER, PUBLIC, DIMENSION(12) :: nbiss = (/ 31, 29, 31, 30, 31, 30, & !: number of days per month61 & 31, 31, 30, 31, 30, 31 /) !: (leap-year)62 INTEGER, PUBLIC, DIMENSION(12) :: nobis = (/ 31, 28, 31, 30, 31, 30, & !: number of days per month63 & 31, 31, 30, 31, 30, 31 /) !: (365 days a year)64 65 58 66 59 !!---------------------------------------------------------------------- -
trunk/NEMO/OPA_SRC/BDY/bdydta.F90
r1241 r1713 107 107 iman = INT( raamo ) ! Number of months in a year 108 108 109 i15 = INT( 2* FLOAT( nday ) / ( FLOAT( nobis(nmonth)) + 0.5 ) )109 i15 = INT( 2*REAL( nday, wp ) / ( REAL( nmonth_len(nmonth), wp ) + 0.5 ) ) 110 110 ! i15=0 if the current day is in the first half of the month, else i15=1 111 111 … … 140 140 IF(lwp) WRITE(numout,*) ' Bdy data are read in netcdf files' 141 141 ! 142 dayfrac = adatrj - FLOAT( itimer) / 86400. ! day fraction at time step kt-1143 dayfrac = dayfrac - INT ( dayfrac )!144 totime = ( nitend - nit000 + 1 ) * rdt ! Total time of the run to verify that all the145 ! ! necessary time dumps in file are included142 dayfrac = adatrj - REAL( itimer, wp ) / 86400. ! day fraction at time step kt-1 143 dayfrac = dayfrac - INT ( dayfrac ) ! 144 totime = ( nitend - nit000 + 1 ) * rdt ! Total time of the run to verify that all the 145 ! ! necessary time dumps in file are included 146 146 ! 147 147 clfile(1) = filbdy_data_T … … 178 178 ! Convert time origin in file to julian days 179 179 isec0 = isec0 + ihours0*60.*60. + iminutes0*60. 180 CALL ymds2ju(iyear0, imonth0, iday0, real(isec0), dayjul0)180 CALL ymds2ju(iyear0, imonth0, iday0, REAL(isec0, wp), dayjul0) 181 181 ! Compute model initialization time 182 182 iyear = ndastp / 10000 … … 184 184 iday = ndastp - iyear * 10000 - imonth * 100 185 185 isecs = dayfrac * 86400 186 CALL ymds2ju(iyear, imonth, iday, real(isecs) , zdayjulini)186 CALL ymds2ju(iyear, imonth, iday, REAL(isecs, wp) , zdayjulini) 187 187 ! offset from initialization date: 188 188 zoffset = (dayjul0-zdayjulini)*86400 … … 560 560 ! ******************** 561 561 ! 562 IF( ln_bdy_clim ) THEN ; zxy = FLOAT( nday ) / FLOAT( nobis(nbdy_b)) + 0.5 - i15563 ELSE ; zxy = FLOAT( istep(nbdy_b) - itimer ) / FLOAT( istep(nbdy_b) - istep(nbdy_a))562 IF( ln_bdy_clim ) THEN ; zxy = REAL( nday , wp ) / REAL( nmonth_len(nbdy_b), wp ) + 0.5 - i15 563 ELSE ; zxy = REAL( istep(nbdy_b) - itimer, wp ) / REAL( istep(nbdy_b) - istep(nbdy_a), wp ) 564 564 END IF 565 565 … … 660 660 iman = INT( raamo ) ! Number of months in a year 661 661 662 i15 = INT( 2* FLOAT( nday ) / ( FLOAT( nobis(nmonth)) + 0.5 ) )662 i15 = INT( 2*REAL( nday, wp ) / ( REAL( nmonth_len(nmonth), wp ) + 0.5 ) ) 663 663 ! i15=0 if the current day is in the first half of the month, else i15=1 664 664 … … 708 708 IF(lwp) WRITE(numout,*) 'Bdy data are read in netcdf files' 709 709 710 dayfrac = adatrj -float(itimer)/86400. ! day fraction at time step kt-1711 dayfrac = dayfrac - INT (dayfrac)!712 totime = (nitend-nit000+1)*rdt ! Total time of the run to verify that all the713 ! necessary time dumps in file are included710 dayfrac = adatrj - REAL(itimer,wp)/86400. ! day fraction at time step kt-1 711 dayfrac = dayfrac - INT (dayfrac) ! 712 totime = (nitend-nit000+1)*rdt ! Total time of the run to verify that all the 713 ! necessary time dumps in file are included 714 714 715 715 clfile(1) = filbdy_data_bt_T … … 735 735 ! Convert time origin in file to julian days 736 736 isec0 = isec0 + ihours0*60.*60. + iminutes0*60. 737 CALL ymds2ju(iyear0, imonth0, iday0, real(isec0), dayjul0)737 CALL ymds2ju(iyear0, imonth0, iday0, REAL(isec0, wp), dayjul0) 738 738 ! Compute model initialization time 739 739 iyear = ndastp / 10000 … … 741 741 iday = ndastp - iyear * 10000 - imonth * 100 742 742 isecs = dayfrac * 86400 743 CALL ymds2ju(iyear, imonth, iday, real(isecs) , zdayjulini)743 CALL ymds2ju(iyear, imonth, iday, REAL(isecs, wp) , zdayjulini) 744 744 ! zoffset from initialization date: 745 745 zoffset = (dayjul0-zdayjulini)*86400 … … 1060 1060 1061 1061 IF (ln_bdy_clim) THEN 1062 zxy = FLOAT( nday ) / FLOAT( nobis(nbdy_b_bt)) + 0.5 - i151062 zxy = REAL( nday, wp ) / REAL( nmonth_len(nbdy_b_bt), wp ) + 0.5 - i15 1063 1063 ELSE 1064 zxy = FLOAT(istep_bt(nbdy_b_bt)-itimer) / FLOAT(istep_bt(nbdy_b_bt)-istep_bt(nbdy_a_bt))1064 zxy = REAL(istep_bt(nbdy_b_bt)-itimer, wp) / REAL(istep_bt(nbdy_b_bt)-istep_bt(nbdy_a_bt), wp) 1065 1065 END IF 1066 1066 -
trunk/NEMO/OPA_SRC/daymod.F90
r1559 r1713 58 58 REAL(wp), PUBLIC :: sec1jan000 !: second since Jan 1st 0h of nit000 year and Jan 1st 0h the current year 59 59 60 ! this two variables are wrong DO NOT USE THEM !!!61 INTEGER, PUBLIC, DIMENSION(12) :: nbiss = (/ 31, 29, 31, 30, 31, 30, & !: number of days per month62 & 31, 31, 30, 31, 30, 31 /) !: (leap-year)63 INTEGER, PUBLIC, DIMENSION(12) :: nobis = (/ 31, 28, 31, 30, 31, 30, & !: number of days per month64 & 31, 31, 30, 31, 30, 31 /) !: (365 days a year)65 66 60 !!---------------------------------------------------------------------- 67 61 !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009)
Note: See TracChangeset
for help on using the changeset viewer.