Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc3dd04

Browse files
committedMar 3, 2017
modelosv2.f90: se corrige bug por el cual cuando no se seteaba la variable de entorno models.return = 1, la separacion de hidrografa por tipo de lluvia fallaba
1 parent e724265 commit dc3dd04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎wmf/modelosv2.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ subroutine shia_v1(ruta_bin,ruta_hdr,calib,N_cel,N_cont,N_contH,N_reg,Q,&
308308
hflux_s = 0
309309
Conv = 0
310310
Stra = 0
311+
Qsep_byrain = 0
311312
!Lectura de posiciones de eventos en el tiempo de cada caso.
312313
call rain_read_ascii_table_separate(ruta_hdrConv,ruta_hdrStra,N_reg)
313314
endif
@@ -408,7 +409,8 @@ subroutine shia_v1(ruta_bin,ruta_hdr,calib,N_cel,N_cont,N_contH,N_reg,Q,&
408409
Storage_stra(i+1,celda)=Storage_stra(i+1,celda)+(vflux(i)-vflux(i+1))*St ![mm]
409410
enddo
410411
!Actualiza si hay retorno
411-
if (Ret .ne. 0.0) then
412+
!if (Ret .ne. 0.0) then
413+
if (retorno .gt. 0) then
412414
Storage_conv(2,celda) = Storage_conv(2,celda) + Ret*Co ![mm]
413415
Storage_conv(3,celda) = Storage_conv(3,celda) - Ret*Co ![mm]
414416
Storage_stra(2,celda) = Storage_stra(2,celda) + Ret*St ![mm]

0 commit comments

Comments
 (0)
Please sign in to comment.