08.09.2014 Views

On the Ecology of Mountainous Forests in a Changing Climate: A ...

On the Ecology of Mountainous Forests in a Changing Climate: A ...

On the Ecology of Mountainous Forests in a Changing Climate: A ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

214 Appendix<br />

AddW<strong>in</strong>dowHandler( w, clickedInContent, CloseStartupW<strong>in</strong>dow, 1 );<br />

AddKeyboardHandler( CloseStartupW<strong>in</strong>dowByKeyboard, 1 );<br />

UseW<strong>in</strong>dowModally( w , ok, ok );<br />

END ShowStartupPicture;<br />

PROCEDURE DeclForClim;<br />

BEGIN<br />

useFe := TRUE;<br />

useFp := TRUE;<br />

useFs := FALSE;<br />

InstallAbout( "About ForClim…", 0, 0, ShowStartupPicture );<br />

ExecuteAbout;<br />

InstallMenu( fMenu, "ForClim", enabled );<br />

InstallCommand( fMenu, configCmd, "Configure ForClim…", ConfigureForClim,<br />

enabled, unchecked );<br />

InstallAliasChar( fMenu, configCmd, "F" );<br />

DeclForestBase;<br />

ConfigureForClim;<br />

END DeclForClim;<br />

BEGIN<br />

RunSimEnvironment( DeclForClim );<br />

END ForClim.<br />

Module ForClimE<br />

DEFINITION MODULE ForClimE;<br />

(****************************************<br />

Module ForClim-E (Version 2.4)<br />

Copyright ©1994 by Harald Bugmann and Swiss<br />

Federal Institute <strong>of</strong> Technology Zürich ETHZ<br />

Version written for:<br />

'Dialog Mach<strong>in</strong>e' DM_V2.2 (User <strong>in</strong>terface)<br />

MacMETH_V3.2.1 (1-Pass Modula-2 implementation)<br />

ModelWorks_V2.2 (Modell<strong>in</strong>g & Simulation)<br />

Purpose Provides a model <strong>of</strong> <strong>the</strong> abiotic forest environment,<br />

consist<strong>in</strong>g <strong>of</strong><br />

- <strong>the</strong> generation <strong>of</strong> wea<strong>the</strong>r data<br />

- <strong>the</strong> calculation <strong>of</strong> bioclimatic output variables<br />

Programm<strong>in</strong>g<br />

• Design<br />

H. Bugmann 18.1.1991<br />

• Implementation<br />

H. Bugmann 18.1.1991<br />

Swiss Federal Institute <strong>of</strong> Technology Zurich ETHZ<br />

CH-8092 Zurich<br />

Switzerland<br />

Last revision <strong>of</strong> def<strong>in</strong>ition: 23.9.1993 hb<br />

****************************************)<br />

PROCEDURE DeclForClimE;<br />

PROCEDURE RemoveForClimE;<br />

END ForClimE.<br />

IMPLEMENTATION MODULE ForClimE;<br />

(*<br />

*)<br />

Implementation and Revisions:<br />

============================<br />

Author Date Description<br />

------ ---- -----------<br />

hb 18. 1.1991 First implementation (V0.1, DM 2.02, MacMETH 2.6.2)<br />

hb 21. 3.1991 New structure for V0.4<br />

hb<br />

hb<br />

hb<br />

hb<br />

hb<br />

hb<br />

12. 6.1991 V1.0 implemented <strong>in</strong>clud<strong>in</strong>g wea<strong>the</strong>r data from file<br />

25. 3.1992 Inconsistencies with TableFunctions fixed (TabFs are now<br />

removed when a new model is declared)<br />

realistic values <strong>of</strong> uDD, kDryDays are calculated from site<br />

data if <strong>the</strong> constant wea<strong>the</strong>r model is declared<br />

26. 5.1992 calculation <strong>of</strong> new drought <strong>in</strong>dex (drIndx) <strong>in</strong>troduced<br />

17.12.1992 Adapted for usage with<strong>in</strong> ForClim simulation system,<br />

renamed from FCPInput to ForClimE<br />

10. 3.1993 supports usage <strong>of</strong> StochStat and writ<strong>in</strong>g <strong>of</strong> sim results<br />

to a text file (done by ForestBase)<br />

6.12.1993 Read<strong>in</strong>g <strong>of</strong> wea<strong>the</strong>r data from file implemented<br />

FROM SimMaster<br />

IMPORT CurrentSimNr, ExperimentRunn<strong>in</strong>g,<br />

ExperimentAborted;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!