58 character(len=:),
allocatable :: name
59 character(len=:),
allocatable :: attr_unit
61 REAL ,
allocatable :: values2d(:,:)
62 REAL ,
allocatable :: values3d(:,:,:)
63 REAL ,
allocatable :: values4d(:,:,:,:)
135 character(len=128) :: controlFileName
136 character(len=128) :: workingDir
137 character(len=:),
allocatable :: FileOutID, FileOutID2
140 character(len=2) :: structID
144 call loginfo(
"Starting TreeMig v2.0")
145 call loginfo(
"Initializing files...")
148 call get_command_argument(1, controlfilename)
149 call get_command_argument(2, workingdir)
150 if (trim(workingdir) /=
'')
then
151 call chdir(workingdir)
154 if (trim(controlfilename) ==
'')
then
156 write(*,*)
'Please enter control-file name:'
157 read(*,*) controlfilename
212 write(structid,
"(I2.2)") i
232 write(structid,
"(I2.2)") i
subroutine readcontrolpars()
ReadControlPars
character(len=:), allocatable experimentid
character(len=:), allocatable landcoverfilterfilename
character(len=:), allocatable bioclimfilename
character(len=:), allocatable specfilename
character(len=:), allocatable stockareafilename
character(len=:), allocatable immifilename
character(2) relativepathletter
subroutine closefile(thefile)
closeFile
subroutine openfiler(thefile, err)
openFileR
type(file) statebackupout_file_0
type(ncvar) antagonist_nc
type(file) stockarea_file
type(ncvar), dimension(16) heightstruct_nc
subroutine readcontrolparsandinitfiles()
ReadControlParsAndInitFiles
type(file) dispersalkernelnew_file
type(file) landcoverfilter_file
type(file) lightdistrperhcloutfile
type(file) biomassoutfile
type(file) immigrationout_file
character(len=:), allocatable statepath
type(file) bioclimate_file
type(file) heightperhcloutfile
type(file) ingrowthoutfile
type(file) dispersalkernel_file
type(file) seedprodfractpertreehcloutfile
character(len=:), allocatable resultpath
type(file) controlpars_file
character(len=:), allocatable nc_file_name
type(file), dimension(16) heightstructoutfiles
type(file) statebackupout_file_1
type(file) immigration_file
type(file) lightandleafareaperlightclass
character(len=:), allocatable resultpath_h
type(file) biompertreehcloutfile
type(file) statebackupout_file
type(file) controlparsout_file
type(file) laipertreehcloutfile
type(file) speciesout_file
type(file) basareaoutfile
type(file) dbhpertreehcloutfile
subroutine loginfo(msg)
LogInfo
subroutine initlogger(log_file)
InitLogger