APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
138 stars 167 forks source link

APSIM looks for removed soil layers #4873

Closed BrianCollinss closed 4 years ago

BrianCollinss commented 4 years ago

In the following simulation, I removed 5 bottom layers from soil profile, but APSIM still looks for those layers when I 'Check Soil'. Initial soil water is also strange. I think the problem is that I have not removed the whole table and missed a few already-empty cells. I think APSIM should ignore a row if nothing is on it.

TemplateNG20112012 2020.03.10.zip

OC value missing in layer 3
OC value missing in layer 4
OC value missing in layer 5
OC value missing in layer 6
OC value missing in layer 7
hol430 commented 4 years ago

When you want to delete a layer, you need to select every cell in the row by shift clicking and then hit delete. Otherwise, you'll end up with something looking like this (note all the empty rows):

image

Ideally the gui would realise when there's nothing left in a row and delete that row - I'll see what I can do.

hol430 commented 4 years ago

Hi Ben, in #4880 I've implemented automatic empty row detection/deletion which triggers whenever you click away from the profile view. Once merged, you should be able to just click around your soil nodes such as physical/soilwater/initialN/etc and they should fix themselves up. Let me know if it gives you any problems.