TreeMig Code
Loading...
Searching...
No Matches
ReadNewBioclimIfNecessary.f90
Go to the documentation of this file.
1
!==============================================================================
20
!===============================================================
21
22
SUBROUTINE
readnewbioclimifnecessary
(year)
23
24
25
use
all_par
,
only
:
simustartyear
,
newbioclim
,
oldbioclim
,
envfromfile
26
27
IMPLICIT NONE
28
29
! Passed variables>--------------------------------------------------------------------------------
30
31
INTEGER
,
INTENT(in)
:: year
32
33
! Local variables>---------------------------------------------------------------------------------
34
INTEGER
:: actualyear
35
36
! Here the SUBROUTINE starts>**********************************************************************
37
38
actualyear = year +
simustartyear
! current year in real years
39
if
(
envfromfile
)
then
40
do
while
(actualyear .ge.
newbioclim
%cctime)
! if current year > last read in year then read new bioclim data
41
oldbioclim
=
newbioclim
42
call
readnewbioclim
43
end do
44
end if
45
end SUBROUTINE
readnewbioclimifnecessary
46
! done
readnewbioclim
subroutine readnewbioclim
ReadNewBioClim
Definition
ReadNewBioClim.f90:25
readnewbioclimifnecessary
subroutine readnewbioclimifnecessary(year)
ReadNewBioClimIfNecessary.
Definition
ReadNewBioclimIfNecessary.f90:23
all_par
Definition
All_par.f90:20
all_par::simustartyear
integer simustartyear
Definition
All_par.f90:27
all_par::envfromfile
logical envfromfile
Definition
All_par.f90:59
all_par::newbioclim
type(bioclimdata) newbioclim
Definition
All_par.f90:351
all_par::oldbioclim
type(bioclimdata) oldbioclim
Definition
All_par.f90:351
sourceTMFFT
ReadNewBioclimIfNecessary.f90
Generated on Wed Mar 27 2024 13:24:05 for TreeMig Code by
1.10.0