disable threshold in 1step rate and skeletal 2step rates

This commit is contained in:
ignis 2019-08-31 07:54:56 +09:00
parent 1725f1eaf1
commit ea467d5e27

View file

@ -15,12 +15,12 @@ real function rate_1step (yr, theta)
real :: t_reduce
y=yr
if(yr.lt.0.) y=0.
if(yr.gt.1.) y=1.
! if(yr.lt.0.) y=0.
! if(yr.gt.1.) y=1.
t_reduce=theta
if(theta.lt.0.) t_reduce=0.
if(theta.gt.1.) t_reduce=1.
! if(theta.lt.0.) t_reduce=0.
! if(theta.gt.1.) t_reduce=1.
if (t_reduce.gt.c_ref) then
@ -40,4 +40,52 @@ real function rate_1step (yr, theta)
end function rate_1step
real function rate1_2step (ya, yx, theta)
real, intent(in) :: ya
real, intent(in) :: yx
real, intent(in) :: theta
real :: y1
real :: y2
real :: t_reduce
y1=ya
if(ya.lt.0.) y1=0.
if(ya.gt.1.) y1=1.
y2=yx
if(yx.lt.0.) y2=0.
if(yx.gt.1.) y2=1.
t_reduce=theta
if(theta.lt.0.) t_reduce=0.
if(theta.gt.1.) t_reduce=1.
rate1_2step = 0.
end function rate1_2step
real function rate2_2step (yx, theta)
real, intent(in) :: yx
real, intent(in) :: theta
real :: y
real :: t_reduce
y=yx
if(yx.lt.0.) y=0.
if(yx.gt.1.) y=1.
t_reduce=theta
if(theta.lt.0.) t_reduce=0.
if(theta.gt.1.) t_reduce=1.
rate2_2step = 0.
end function rate2_2step
end module m_chemistry