FABM 3.0: Runtime error during initialize #149
|
Hi, I tried to update my environment to FABM 3.0 but I am getting a I noticed that FABM 2 called Cheers, |
Replies: 2 comments 3 replies
|
Hi Fabian, Thanks for reporting. Could you compile with runtime compiler checks on and rerun, to see if you can get a full traceback to the line causing the issue? Alternatively, I'd be happy to try and reproduce the issue, so I can then explore it in detail, but then it'd be useful to know which host and biogeochemical model(s) (fabm.yaml) you are using. Cheers, Jorn |
|
Hi Jorn, Thank you for the quick response and the suggestion re. compiler checks. I didn't get a full traceback but still managed to resolve the issue with some additional compiler flags and The problem was that, in one of the models I inherited, the macros Cheers, |
Thanks for the update! Yes, FABM now makes an early call to all "do" routines to check which routines are implemented by each biogeochemical model. As the call is made before the model domain is defined, any variable accesses that are incorrectly placed outside
_BEGIN_LOOP_/_END_LOOP_will trigger an array-out-of-bounds error. Unfortunately, we have not found a way to detect this error in the biogechemical model at compile time, and explicit detection and reporting at runtime would come with a massive performance penalty. Hence this issue will for now show up as a runtime "access violation" or similar.