Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWIM3 not working with Canola #8736

Closed
Kadogo1 opened this issue Mar 7, 2024 · 5 comments
Closed

SWIM3 not working with Canola #8736

Kadogo1 opened this issue Mar 7, 2024 · 5 comments
Assignees
Labels

Comments

@Kadogo1
Copy link

Kadogo1 commented Mar 7, 2024

What happened?

I'm running the Canola Example (from APSIM Examples folder) with SWIM3 in APSIM NG v7349 but it fails with the message "A canopy was found that isn't a plant. Name: EnergyBalance" A similar issue was raised in the past and it appears closed (solved) but the model still gives an error. How can I get SWIM3 to work with v7349.0?
Thanks

The full error message is as shown below.
Models.Core.SimulationException
---> System.Exception: A canopy was found that isn't a plant. Name: EnergyBalance
at Models.Soils.Swim3.GetCropVariables() in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Soils\SWIM\Swim.cs:line 1888
at Models.Soils.Swim3.OnProcess() in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Soils\SWIM\Swim.cs:line 1179
at Models.Soils.Swim3.OnDoSoilWaterMovement(Object sender, EventArgs e) in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Soils\SWIM\Swim.cs:line 1155
at Models.Clock.OnDoCommence(Object _, CommenceArgs e) in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Clock.cs:line 360
at Models.Core.Simulation.Run(CancellationTokenSource cancelToken) in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Core\Simulation.cs:line 320
--- End of inner exception stack trace ---
at Models.Core.Simulation.Run(CancellationTokenSource cancelToken) in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\Models\Core\Simulation.cs:line 320
at APSIM.Shared.JobRunning.JobRunner.RunActualJob(IRunnable job, IJobManager jobManager) in C:\Users\ContainerAdministrator\AppData\Local\Temp\ApsimX\APSIM.Shared\JobRunning\JobRunner.cs:line 214

What Operating System are you on?

Windows

@Kadogo1 Kadogo1 added the Bug label Mar 7, 2024
@KeLiu7
Copy link

KeLiu7 commented Mar 7, 2024

This problem should be already solved? #8626

@par456 par456 self-assigned this Mar 7, 2024
@par456
Copy link
Collaborator

par456 commented Mar 7, 2024

The current apsim version is 7419, so you should just need to update to the newer version (use the update button within the program), as the bug causing this was only found and fixed a few weeks ago.

@Kadogo1
Copy link
Author

Kadogo1 commented Mar 7, 2024

So there is no way to get the lower version to work with swim3 apart from upgrading it?
Thanks

@par456
Copy link
Collaborator

par456 commented Mar 7, 2024

Unfortunately not, is there a reason you have to stick with the older version?

@Kadogo1
Copy link
Author

Kadogo1 commented Mar 8, 2024

I prefer to stick with the older version because our team has been using that version for different crops and we need to compare results using the same model version.
Thanks

@par456 par456 closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants