-
Notifications
You must be signed in to change notification settings - Fork 23
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
Model crashing in winter months #384
Comments
Hi @mpanagi - could you tell me are you running the latest master version? What |
Hi, I'm using the mcm_example.fac because i am only running for photolysis rates and all the other inputs are the originals. The output looks looks the same but the model doesnt go through all the dates that i am setting it up to go. It crashes very early on.
** |
Hmm, I've tried this just now on my Mac, with a clean install of the latest master |
I will try to install it again and see whether that was the problem. I will let you know soon. |
i have also tested it (using |
Update: if This is probably a numerical problem with the calculation of |
@spco We may actually need to sort this out to complete the model runs for the paper. Are you in the position to take a look and see if it is a quick fix? If not we'll figure something out. |
I can't immediately reproduce this. I take the latest
The FPE warnings are often seen, and while they are something we should investigate in time, it's not a big issue. This is on my Mac - I will retry on Alice. |
For reference, the output of the above run starts with
If either of you is able to post the full starting output of your runs in a similar way, that might highlight the difference if any. |
Ok, I've tried with a clean build on Alice too. Still no luck in reproducing this. @rs028, do you get the same error as @mpanagi when you run? What am I missing, beyond the changes to Using the system gfortran:
|
So, the way to get around this seems to be to up the Whether this is the right thing to do is a good question, but I'm not sure what the answer is. As I don't remember there being a particular rationale behind the currently chosen default of A very brief test didn't highlight any particular differences to the output that looked noteworthy, but I have not investigated in detail. So, in short, I think this is just because As to why this only happens in the winter months, I'm not quite sure, but somewhere in our calculations our system gets a bit ill-conditioned because of |
Interesting. Thanks a bunch for looking into this. I am not too familiar with the inner workings of CVODE, tbh, so I am not really sure what (if anything) it means for the model output. Should we consider this resolved or leave it open for a deeper look in the future (in this case it should probably be renamed)? |
I would personally consider it resolved, but perhaps make a note in #265 that this could also feed in - we don't have a handle on what is 'good enough' accuracy of the solver, which plays a part in the numerical stability. |
Sounds good to me. Thanks a lot for looking into it so quickly. |
Hi Sam, Did you mean change the rtol = 1.0e-02? Because i changed the atol but didnt work but when i changed rtol it worked. Thanks. |
Apologies, @mpanagi you are entirely correct! |
I will edit the previous comment so as not to confuse later readers - for them, please note that in #384 (comment) I errantly talked about |
i also met this problem. |
@xcy12 did you manage to solve it by changing |
yes, I tried this solution and it works! Thanks very much! |
Hi, this problem was solved by changing rtol during the test using example mechanism. However, when i use complicated mechanism (mechanism for 67 VOCs), this problem came back. Is there some new solution for this? Thank you. [CVODE ERROR] CVode ier POST FCVODE()= -3 |
Reopening this - with a more general title - as it seems people are still having problems. |
I am running the model with the following parameters:
and it works fine, but when i change the month to 10,11 or 12 the model is crashing.
Any ideas why this is happening?
The text was updated successfully, but these errors were encountered: