Changeset 257 for branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/hydrol.f90
- Timestamp:
- 2011-06-17T14:02:17+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/hydrol.f90
r112 r257 3 3 !! 4 4 !! @author Marie-Alice Foujols and Jan Polcher 5 !! @Version : $Revision: 1.36 $, $Date: 2009/01/07 13:39:45$5 !! @Version : $Revision: 45 $, $Date: 2011-01-01 21:30:44 +0100 (Sat, 01 Jan 2011) $ 6 6 !! 7 !! $Header: /home/ssipsl/CVSREP/ORCHIDEE/src_sechiba/hydrol.f90,v 1.36 2009/01/07 13:39:45 ssipsl Exp $ 7 !< $HeadURL: http://forge.ipsl.jussieu.fr/orchidee/svn/trunk/ORCHIDEE/src_sechiba/hydrol.f90 $ 8 !< $Date: 2011-01-01 21:30:44 +0100 (Sat, 01 Jan 2011) $ 9 !< $Author: mmaipsl $ 10 !< $Revision: 45 $ 8 11 !! IPSL (2006) 9 12 !! This software is governed by the CeCILL licence see ORCHIDEE/ORCHIDEE_CeCILL.LIC … … 224 227 !! We consider that any water on the ice is snow and we only peforme a water balance to have consistency. 225 228 !! The water balance is limite to + or - 10^6 so that accumulation is not endless 229 REAL(r_std),DIMENSION (kjpindex), INTENT (inout) :: runoff !! Complete runoff 230 REAL(r_std),DIMENSION (kjpindex), INTENT (inout) :: drainage !! Drainage 231 REAL(r_std),DIMENSION (kjpindex,nbdl), INTENT (inout):: shumdiag !! relative soil moisture 226 232 ! output fields 227 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: runoff !! Complete runoff228 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: drainage !! Drainage229 233 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (out) :: humrel !! Relative humidity 230 234 REAL(r_std),DIMENSION (kjpindex,nvm), INTENT (out) :: vegstress !! Veg. moisture stress (only for vegetation growth) 231 235 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: drysoil_frac !! function of litter wetness 232 REAL(r_std),DIMENSION (kjpindex,nbdl), INTENT (out):: shumdiag !! relative soil moisture233 236 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: litterhumdiag !! litter humidity 234 237 REAL(r_std),DIMENSION (kjpindex), INTENT (out) :: tot_melt !! Total melt … … 1082 1085 ! 1083 1086 DO jsl=1,nslm 1084 CALL setvar_p (us(:,:,:,jsl), val_exp, 'US_INIT', 0.0_r_std)1087 CALL setvar_p (us(:,:,:,jsl), val_exp, 'US_INIT', zero) 1085 1088 ENDDO 1086 1089 ! … … 1101 1104 !Config started without a restart file. 1102 1105 ! 1103 CALL setvar_p (ae_ns, val_exp, 'EVAPNU_SOIL', 0.0_r_std)1106 CALL setvar_p (ae_ns, val_exp, 'EVAPNU_SOIL', zero) 1104 1107 ! 1105 1108 !Config Key = HYDROL_SNOW … … 1110 1113 !Config started without a restart file. 1111 1114 ! 1112 CALL setvar_p (snow, val_exp, 'HYDROL_SNOW', 0.0_r_std)1115 CALL setvar_p (snow, val_exp, 'HYDROL_SNOW', zero) 1113 1116 ! 1114 1117 !Config Key = HYDROL_SNOWAGE … … 1119 1122 !Config started without a restart file. 1120 1123 ! 1121 CALL setvar_p (snow_age, val_exp, 'HYDROL_SNOWAGE', 0.0_r_std)1124 CALL setvar_p (snow_age, val_exp, 'HYDROL_SNOWAGE', zero) 1122 1125 ! 1123 1126 !Config Key = HYDROL_SNOW_NOBIO … … 1128 1131 !Config started without a restart file. 1129 1132 ! 1130 CALL setvar_p (snow_nobio, val_exp, 'HYDROL_SNOW_NOBIO', 0.0_r_std)1133 CALL setvar_p (snow_nobio, val_exp, 'HYDROL_SNOW_NOBIO', zero) 1131 1134 ! 1132 1135 !Config Key = HYDROL_SNOW_NOBIO_AGE … … 1137 1140 !Config started without a restart file. 1138 1141 ! 1139 CALL setvar_p (snow_nobio_age, val_exp, 'HYDROL_SNOW_NOBIO_AGE', 0.0_r_std)1142 CALL setvar_p (snow_nobio_age, val_exp, 'HYDROL_SNOW_NOBIO_AGE', zero) 1140 1143 ! 1141 1144 ! … … 1148 1151 !Config the model is started without a restart file. 1149 1152 ! 1150 CALL setvar_p (qsintveg, val_exp, 'HYDROL_QSV', 0.0_r_std)1153 CALL setvar_p (qsintveg, val_exp, 'HYDROL_QSV', zero) 1151 1154 ! 1152 1155 ! There is no need to configure the initialisation of resdist. If not available it is the vegetation map … … 1717 1720 IF (snow(ji).GT.sneige) THEN 1718 1721 ! 1719 snowmelt(ji) = ( 1.- frac_nobio(ji,iice))*(temp_sol_new(ji) - tp_00) * soilcap(ji) / chalfu01722 snowmelt(ji) = (un - frac_nobio(ji,iice))*(temp_sol_new(ji) - tp_00) * soilcap(ji) / chalfu0 1720 1723 ! 1721 1724 ! 1.3.1.1 enough snow for melting or not … … 1890 1893 REAL(r_std), DIMENSION (kjpindex,nvm) :: zqsintvegnew 1891 1894 LOGICAL, SAVE :: firstcall=.TRUE. 1892 ! REAL(r_std), SAVE, DIMENSION(nvm) :: throughfall_by_pft1893 1895 1894 1896 IF ( firstcall ) THEN … … 2078 2080 DO jv = 1, nvm 2079 2081 DO ji = 1, kjpindex 2080 IF ( ABS(qsintveg(ji,jv)) > 0..AND. ABS(qsintveg(ji,jv)) < EPS1 ) THEN2082 IF ( ABS(qsintveg(ji,jv)) > zero .AND. ABS(qsintveg(ji,jv)) < EPS1 ) THEN 2081 2083 qsintveg(ji,jv) = EPS1 2082 2084 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.