-
Notifications
You must be signed in to change notification settings - Fork 46
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
Moving nest test case #1237
Comments
@danielabdi-noaa -- let me start by apologizing -- I really dropped the ball on this one. @AMLattanzi has been doing a lot of work on the data structures so let me ask him to pick up the ball and run with it (to complete my sports analogy!) I know he's run test cases with max_level > 0 but they may not be in the repo right now. In the meantime I'll try to get the DensityCurrent case working. |
@danielabdi-noaa -- I just realized @AMLattanzi is on vacation this week, and I'm on travel as well. Let me look at that DC case though. |
@asalmgren No problem, it can wait until both of you are back to work. Thanks for looking into it! |
@danielabdi-noaa Ok now I'm confused -- did you look at Exec/RegTests/DynamicRefinement? That has two inputs files with refinement -- one with max_level = 1 (inputs_onelevel) and one with max_level = 2 (inputs_twolevel). It appears to "just work" -- this is the one I set up for you a while back. I'm curious you didn't see this directory -- are you working with an old version of the code? |
@asalmgren Indeed it looks like I am working with an older clone that did not have the |
Unfortunately I didn't fix the DensityCurrent case yet but go ahead and play with DynamicRefinement and I'll let you know when the other cases are working with refinement... |
Ok thanks! It looks like my modified density current test case works with the newly built binaries! I can see the statically refined mesh at the center and the simulation runs for the whole 900 steps. However, the |
Nevermind, |
@danielabdi-noaa -- I'm very surprised you're seeing different behavior with amrex.fpe_trap_invalid set to 0 vs 1. Locally, DynamicRefinement runs fine with either option for me. What behavior do you see when it fails? |
I am getting erroneous operation error when it is set to 1
This is actually better than what I got for the modified DensityCurrent problem where it displayed and undefined Slow dt value as shown below
The log in
|
That comment about "slow dt would be undefined" is only telling us that velocity == 0 so dt / velocity would be undefined -- so that is correct and not an issue. The error that I see with the DensityCurrent run is in the refluxing, which I'm in the process of fixing. Could you try setting erf.coupling_type = OneWay and see if that "just works"? Also -- could you build the DynamicRefinement case in Debug mode? That will give a more detailed backtrace |
Here is the Backtrace file for DynamicRefinement test case after rebuilding binaries in Debug mode. For the DensityCurrent setting erf.coupling_type = OneWay does not seem to help. It still fails unles I turn off the FPE trap. |
Ok I don't know what's going on with that flag -- I'll need to play around to see if I can get it to fail locally. What kind of machine are you running on? With/without mpi and if with, how many ranks? |
I run the test case with 1 mpi rank like this
|
I'm really curious what's going on -- I also see that you and I get slightly different initial mass (I have 330.4109109 instead of your 330.4117604) -- which suggests that something is ever so slightly different in our initialization. |
@asalmgren It looks like when I turn off |
I can not reproduce the 330.4109109 initial mass with the Release mode any more. Both Release/Debug modes now give initial mass 330.4117604 whether the FPE trap is set to 0 or 1, and both run successfully with FPE trap set to 0. However, I did see an initial mass of 330.4109109 for a successful run I did in release mode earlier. Unfortunately I have lost that run now. |
Ooops this was all for nothing. The |
Ah -- we were comparing two different inputs file? that makes sense...
So which case dies for you with amrex.fpe_trap_invalid = 1?
…On Wed, Sep 13, 2023 at 8:09 AM danielabdi-noaa ***@***.***> wrote:
Ooops this was all for nothing. The input_onelevel file gives an initial
mass of 330.4109109 and the input_twolevel file gives 330.4117604.
—
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRE6YWC4DRINWNOKYEPG7DX2HED5ANCNFSM6AAAAAA4U5Q6W4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Ann Almgren
Senior Scientist; Dept. Head, Applied Mathematics
Pronouns: she/her/hers
|
Both test cases fail if I don't set the variable to 0. |
I still can't break it ... I'm going to try a different machine
…On Wed, Sep 13, 2023 at 8:27 AM danielabdi-noaa ***@***.***> wrote:
Both test cases fail if I don't set the variable to 0.
—
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACRE6YS5W4EOCEZUCSDESRLX2HGE5ANCNFSM6AAAAAA4U5Q6W4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Ann Almgren
Senior Scientist; Dept. Head, Applied Mathematics
Pronouns: she/her/hers
|
Success! In the sense that I can now reproduce the erroneous arithmetic error on a different machine -- will let you know when I've got a fix for you to try out |
@danielabdi-noaa -- so the failure I got was because on the second machine I was using an old version of amrex in the submodule. Can you see what version of amrex you have in your repo? You may need to explicitly try "git submodule update" to get the most recent version. Then see if that fixes the issue? |
@asalmgren Thank you that solved the problem! I had 23.07 before and after the update now have 23.09. Both test cases for |
awesome! Shall we close this issue? |
Yes. Thanks again!
On Wed, Sep 13, 2023 at 12:38 PM Ann Almgren ***@***.***> wrote:
awesome! Shall we close this issue?
—
Reply to this email directly, view it on GitHub
<#1237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMM2KEH4RNBON5NI7N6WMC3X2H4RDANCNFSM6AAAAAA4U5Q6W4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Daniel S. Abdi, PhD
email: ***@***.***
Global Systems Division
voice: (831)-582-7010
NOAA Earth System Research Laboratory, Office: 2B:523
325 Broadway
Boulder, CO 80303
|
Hi,
I am trying to run an adaptive moving nest test case preferably one that tracks a tropical cyclone.
Is there a test case somewhere that I can use?
Also, I could not find a test case among the
RegTests
whereamr.max_level
is set above 0. I tried modifyingthe
DensityCurrent
test case for this purpose to do static AMR but it fails complaining about division by 0.Turning the FPE trap off does help a little bit but it fails after a few time steps. I do not know how to setup
an AMR test case and probably missed setting an AMR variable. I have attached the modified DensityCurrent problem.
DensityCurrent.txt
Could you please help me setup either a tropical cyclone test case, if possible, or the density current problem with dynamic AMR
capability -- e.g. one that is able to track the temperature field or some other criteria?
This is not an issue so please let me know if I should move the question elsewhere.
Thanks
Daniel
The text was updated successfully, but these errors were encountered: