This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
trainingtutorial:tutorial_1:chapter2 [2009/12/01 15:40] shona.weldon created |
trainingtutorial:tutorial_1:chapter2 [2012/03/01 16:55] (current) deryn.crockett |
||
---|---|---|---|
Line 3: | Line 3: | ||
Open demogVer1.DMM in Documentor. | Open demogVer1.DMM in Documentor. | ||
- | Double click on the Calculator node Population. The Population [[trainingtutorial:documentor_tour#calculator diagram]] appears. | + | Double click on the Calculator node Population. The Population [[trainingtutorial:documenter_tour#calculator diagram]] appears. |
- | Double click on the Evolve Population procedure. The Evolve Population [[trainingtutorial:documentor_tour#procedure editor dialogue]] appears. | + | Double click on the Evolve Population procedure. The Evolve Population [[trainingtutorial:documenter_tour#procedure editor dialogue]] appears. |
===== Creating the code ===== | ===== Creating the code ===== | ||
Line 50: | Line 50: | ||
</code> | </code> | ||
- | In the first of these TOOL statements the create tool is being used to create the local object "fert[t,a]". The parameter "dimFrom1=totPeriodFert[t]" gets fert’s first dimension from the first dimension of "totPeriodFert[t]", the parameter "dimFrom3=mortality[g,t,a]" gets fert’s second dimension from the third dimension of "mortality[g,t,a]" and the parameter "entityFrom=totPeriodFert[t]" gets fert’s entity from "totPeriodFert[t]" (note: \ is the line continuation mark). At this point "fert[t,a]" is an empty object. The TOOL statement uses the insert tool to insert the product (* tool used with infix notation) of "fertShr[t,ma]" and "totPeriodFert[t]" into "fert[t,a]" starting at age 15 (determined by the parameter "age->age:15"). | + | In the first of these TOOL statements the create tool is being used to create the local object "fert[t,a]". \\ |
+ | The parameter "dimFrom1=totPeriodFert[t]" gets fert’s first dimension from the first dimension of "totPeriodFert[t]", \\ | ||
+ | the parameter "dimFrom3=mortality[g,t,a]" gets fert’s second dimension from the third dimension of "mortality[g,t,a]" and \\ | ||
+ | the parameter "entityFrom=totPeriodFert[t]" gets fert’s entity from "totPeriodFert[t]" (note: \ is the line continuation mark).\\ | ||
+ | |||
+ | At this point "fert[t,a]" is an empty object. The TOOL statement uses the insert tool to insert the product (* tool used with infix notation) of "fertShr[t,ma]" and "totPeriodFert[t]" into "fert[t,a]" starting at age 15 (determined by the parameter "age->age:15"). | ||
5. Output Object - population[g,t,a] | 5. Output Object - population[g,t,a] | ||
Line 69: | Line 74: | ||
{{trainingtutorial:procedureeditor.jpg}} | {{trainingtutorial:procedureeditor.jpg}} | ||
+ | |||
+ | ===== Running the code ===== | ||
+ | |||
+ | Running code in Documenter is for testing the code structure and doing dimensional analysis (unit/shape checking) without any data. | ||
+ | |||
+ | Click on the running man button. The single man is for running just the current calculator and the multiple men button runs all the calculators. | ||
+ | {{:trainingtutorial:runbuttons.jpg|}} | ||
+ | |||
+ | |||