APSIMInitiative / APSIM710

APSIM
https://www.apsim.info
33 stars 48 forks source link

I need help #2257

Open TC-02-tceh opened 3 weeks ago

TC-02-tceh commented 3 weeks ago

I often get errors when setting up intercropping between cotton and mung beans. How should I modify it. 微信截图_20241108104429

peter-devoil commented 2 weeks ago

The issue is that the sowing rules are unaware that the cotton module also defines a variable "crop_in" that is of a different type, and get confused.

You could try to change all references to "crop_in" to something else (eg cropin, cropIsPlanted) so that the managers and the cotton crop dont try to use the same variable.

It was a bit "wild west" regarding names in those days, and also regarding the intercropping methods: you'll have to check (eg run a test) to be sure that the light interception rules are partitioning radiation interception correctly between the two crops - that was a function of the canopy module that the cotton crop may not be listening to.