This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
trainingtutorial:tutorial_1:chapter2 [2009/12/22 15:18] shona.weldon |
trainingtutorial:tutorial_1:chapter2 [2012/03/01 16:55] (current) deryn.crockett |
||
---|---|---|---|
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 72: | Line 77: | ||
===== Running the code ===== | ===== Running the code ===== | ||
- | Running code in Documenter is for testing the code structure and doing dimensional analysis (unit/shape checking) without any data. | + | 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|}} | ||