TreeMig Code
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | writestate (year, latstart, latend, lonstart, lonend, nspc) |
WriteState. | |
subroutine | writestatefile (statefile, year, latstart, latend, lonstart, lonend, nspc) |
WriteStateFile. | |
subroutine | writestateloops (year, latstart, latend, lonstart, lonend, nspc, unit) |
WriteStateLoops. | |
subroutine writestate | ( | integer, intent(in) | year, |
integer, intent(in) | latstart, | ||
integer, intent(in) | latend, | ||
integer, intent(in) | lonstart, | ||
integer, intent(in) | lonend, | ||
integer, intent(in) | nspc ) |
WriteState.
Writes out the state at the current year to the statefile This can be either in regular intervals for backup, to be able to start a new simulation from this state in case the simulation crashes or at predefined time points or not, e.g. to start new simulation from a state after spinup or for coupling to another model
nspc | : number of species |
year | : year (relative years) |
latStart,latEnd,lonStart,lonEnd | : start and end of total simulated area |
Definition at line 32 of file WriteState.f90.
subroutine writestatefile | ( | type(file), intent(in) | statefile, |
integer, intent(in) | year, | ||
integer, intent(in) | latstart, | ||
integer, intent(in) | latend, | ||
integer, intent(in) | lonstart, | ||
integer, intent(in) | lonend, | ||
integer, intent(in) | nspc ) |
WriteStateFile.
Opens, writes and closes the statefile
nspc | : number of species |
year | : year (relative years) |
latStart,latEnd,lonStart,lonEnd | : start and end of total simulated area |
TYPE(FILE) | : stateFile : the statefile to be written |
Definition at line 109 of file WriteState.f90.
subroutine writestateloops | ( | integer, intent(in) | year, |
integer, intent(in) | latstart, | ||
integer, intent(in) | latend, | ||
integer, intent(in) | lonstart, | ||
integer, intent(in) | lonend, | ||
integer, intent(in) | nspc, | ||
integer, intent(in) | unit ) |
WriteStateLoops.
Loops over the states of the species in the gridcells and writes them out, one line per species
nspc | : number of species |
year | : year (relative years) |
latStart,latEnd,lonStart,lonEnd | : start and end of total simulated area |
unit | : unit number of the statefile to be written to |
output only the stockable cells
one line per species
convert the species specific max. number of height classes to character
Definition at line 146 of file WriteState.f90.