-
Notifications
You must be signed in to change notification settings - Fork 17
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
Set flag transition ocean continent #57
Conversation
Thanks @anne-glerum. I'm not very familiar with the marine component but it seems to make more sense delineating the land/ocean interface using elevation and sea-level than using a flux. Some quick thoughts / questions (I haven't looked in detail yet):
|
Dear Anne, I have checked your statement, and agree with it. As we have discussed, this flag setting is important to make a more realistic boundary between ocean and continent. Otherwise, there will be ‘automatic' diffusion along this boundary which will cause your unrealistic red-interface simulation. For Benoit’s questions,
All the best, |
Thanks @xpyuan1 for your input.
OK, good. Maybe it would be nice to add a small comment explaining that just above the lines computing the flag values.
OK. Not sure to really see what is the point to create outside of a function an internal variable that is used only within that function, but if it is more readable to define the continent / ocean boundary where it is currently defined lets keep it there then. If these two tiny concerns could be addressed, that would be great and I'd be happy to merge this PR promptly! |
Hi @benbovy, apologies for the late reply.
I've added a small comment about how the flag is computed and I've changed the flag's name to
I agree that either the COTflag array could be filled directly in SiltSandCouplingDiffusion or only the if-statement itself could be done in SiltSandCouplingDiffusion. However, for simplicity, I've kept the filling of the array in the location is was before. Let me know if you want anything else to be changed. |
Do I need to worry about the one failing test? The error messages don't seem to be related to my changes. |
315507f
to
db4cf92
Compare
Anything else I need to address @benbovy ? |
Thanks @anne-glerum, I think it is all good. The failing test is not related to this PR, I'll investigate this in #59 next week and merge this as well. |
#59 is merged and this should be good to go in now. Thanks again @anne-glerum and sorry for the delay. |
I noticed that the amount of sediments in the marine domain increases for increasing the marine diffusivity, even for zero continental sediment input. I also noticed that the flag that defines whether a node is on the boundary between the continental and the marine domain is used, but not set to something other than its default value 0.
After discussing this with Xiaoping, he suggested making this modification to Marine.f90 that does set the flag to 1 at the boundary. Xiaoping has used this fix in his version of the code as well. I verified that the flag values change in space over time following the boundary.
The snapshot below shows the surface of two simulations without continental erosion and a very small continent at a certain moment in time. One run does not change the flag from 0 (i.e., current version, red interface), while the other sets the flag to 1 at the transition from continent to ocean (green interface). The initially vertical margin does not change over time in the green version, as there is no continental input. In the red simulation artificial sediment is built up as the margin diffuses.
I will add more examples demonstrating the difference later.