@@ -28,21 +28,21 @@ function PlantSimEngine.run!(m::ToyInternodeCrazyEmergence, models, status, mete
2828
2929 if length (MultiScaleTreeGraph. children (status. node)) == 1 && status. TT_cu - status. TT_cu_emergence >= m. TT_emergence
3030
31- status_new_internode = add_organ! (status. node, sim_object, " <" , " Internode" , 2 , index= 1 )
32- add_organ! (status_new_internode. node, sim_object, " +" , " Leaf" , 2 , index= 1 )
31+ status_new_internode = add_organ! (status. node, sim_object, " <" , : Internode , 2 , index= 1 )
32+ add_organ! (status_new_internode. node, sim_object, " +" , : Leaf , 2 , index= 1 )
3333 status_new_internode. TT_cu_emergence = status. TT_cu
3434 elseif (length (MultiScaleTreeGraph. children (status. node)) >= 2 && length (MultiScaleTreeGraph. children (status. node)) < 7 ) && status. TT_cu - status. TT_cu_emergence >= m. TT_emergence
35- status_new_internode = add_organ! (status. node, sim_object, " <" , " Internode" , 2 , index= 1 )
36- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 4 )
37- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 5 )
35+ status_new_internode = add_organ! (status. node, sim_object, " <" , : Internode , 2 , index= 1 )
36+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 4 )
37+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 5 )
3838 status_new_internode. TT_cu_emergence = status. TT_cu
3939 elseif (length (MultiScaleTreeGraph. children (status. node)) >= 7 && length (MultiScaleTreeGraph. children (status. node)) < 30 ) && status. TT_cu - status. TT_cu_emergence >= m. TT_emergence
40- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 6 )
41- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 7 )
42- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 8 )
43- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 9 )
44- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 10 )
45- add_organ! (status. node, sim_object, " +" , " Leaf" , 2 , index= 11 )
40+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 6 )
41+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 7 )
42+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 8 )
43+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 9 )
44+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 10 )
45+ add_organ! (status. node, sim_object, " +" , : Leaf , 2 , index= 11 )
4646
4747 end
4848
@@ -60,62 +60,62 @@ function do_benchmark_on_heavier_mtg()
6060
6161 # similar to the mtg growth test but with a much lower emergence threshold
6262 mapping = ModelMapping (
63- " Scene" => ToyDegreeDaysCumulModel (),
64- " Plant" => (
63+ : Scene => ToyDegreeDaysCumulModel (),
64+ : Plant => (
6565 MultiScaleModel (
6666 model= ToyLAIModel (),
6767 mapped_variables= [
68- :TT_cu => " Scene" ,
68+ :TT_cu => : Scene ,
6969 ],
7070 ),
7171 PlantSimEngine. Examples. Beer (0.6 ),
7272 MultiScaleModel (
7373 model= ToyCAllocationModel (),
7474 mapped_variables= [
75- :carbon_assimilation => [" Leaf" ],
76- :carbon_demand => [" Leaf" , " Internode" ],
77- :carbon_allocation => [" Leaf" , " Internode" ]
75+ :carbon_assimilation => [: Leaf ],
76+ :carbon_demand => [: Leaf, : Internode ],
77+ :carbon_allocation => [: Leaf, : Internode ]
7878 ],
7979 ),
8080 MultiScaleModel (
8181 model= ToyPlantRmModel (),
82- mapped_variables= [:Rm_organs => [" Leaf" => :Rm , " Internode" => :Rm ],],
82+ mapped_variables= [:Rm_organs => [: Leaf => :Rm , : Internode => :Rm ],],
8383 ),
8484 ),
85- " Internode" => (
85+ : Internode => (
8686 MultiScaleModel (
8787 model= ToyCDemandModel (optimal_biomass= 10.0 , development_duration= 200.0 ),
88- mapped_variables= [:TT => " Scene" ,],
88+ mapped_variables= [:TT => : Scene ,],
8989 ),
9090 MultiScaleModel (
9191 model= ToyInternodeCrazyEmergence (TT_emergence= 1.0 ),
92- mapped_variables= [:TT_cu => " Scene" ],
92+ mapped_variables= [:TT_cu => : Scene ],
9393 ),
9494 ToyMaintenanceRespirationModel (1.5 , 0.06 , 25.0 , 0.6 , 0.004 ),
9595 Status (carbon_biomass= 1.0 )
9696 ),
97- " Leaf" => (
97+ : Leaf => (
9898 MultiScaleModel (
9999 model= ToyAssimModel (),
100- mapped_variables= [:soil_water_content => " Soil" , :aPPFD => " Plant" ],
100+ mapped_variables= [:soil_water_content => : Soil , :aPPFD => : Plant ],
101101 ),
102102 MultiScaleModel (
103103 model= ToyCDemandModel (optimal_biomass= 10.0 , development_duration= 200.0 ),
104- mapped_variables= [:TT => " Scene" ,],
104+ mapped_variables= [:TT => : Scene ,],
105105 ),
106106 ToyMaintenanceRespirationModel (2.1 , 0.06 , 25.0 , 1.0 , 0.025 ),
107107 Status (carbon_biomass= 1.0 )
108108 ),
109- " Soil" => (
109+ : Soil => (
110110 ToySoilWaterModel (),
111111 ),
112112 )
113113
114114 out_vars = Dict (
115- " Leaf" => (:carbon_assimilation , :carbon_demand , :soil_water_content , :carbon_allocation ),
116- " Internode" => (:carbon_allocation , :TT_cu_emergence ),
117- " Plant" => (:carbon_allocation ,),
118- " Soil" => (:soil_water_content ,),
115+ : Leaf => (:carbon_assimilation , :carbon_demand , :soil_water_content , :carbon_allocation ),
116+ : Internode => (:carbon_allocation , :TT_cu_emergence ),
117+ : Plant => (:carbon_allocation ,),
118+ : Soil => (:soil_water_content ,),
119119 )
120120
121121 out = run! (mtg, mapping, meteo_day, tracked_outputs= out_vars, executor= SequentialEx ())
0 commit comments