-
Notifications
You must be signed in to change notification settings - Fork 245
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
Floating divide-by-zero MOM_continuity_PPM.90:830 #372
Comments
What test case is this occurring in, please? |
Hi @Hallberg-NOAA this is the circle_obcs test case. Thanks for the explanation, it seems I was jumping to conclusions about visc_rem. Another possibility is that Newton's method is hitting a stationary point... Strangely I notice that this only happens in debug mode. Anyway I'll take a closer look in light of your explanation. |
circle_obcs. I presume it's something to do with the recently fixing the Dr Alistair Adcroft (Alistair.Adcroft@noaa.gov) On Mon, Oct 24, 2016 at 9:01 AM, Robert Hallberg notifications@github.com
|
Hey! Why did my email arrive 24 hours after I sent it. No fair! I've found the problem: the logic for Flather OBCs outside of the domain is broken in zonal_mass_flux(). The correct logic is in meridional_mass_flux() so this is an example where a symmetry test would have caught this. Committing fix shortly... |
Well done. I spent some time with totalview yesterday but no success - happy to see this message! |
Part experience but mostly luck! Did you note my comment that the symmetry tests would catch this. @Hallberg-NOAA and I have have a bet that the symmetry tests will reveal a dozen and six (respectively) similar bugs. |
Yes, I saw that. My bet would be in the same ball-park, but to make it interesting I'll go high - 15+ for symmetry and units tests. I'm winding up to full-time on MOM6 so hopefully we can resolve this bet soon. |
As described in issue mom-ocean#372, I would like to be able to create restart files that contain information about the particle location. These files will be written at the same time as other restart files. I cannot add these calls directly to the driver, because the driver does not have information about the particle location. We have added save_MOM6_internal_state as a subroutine in MOM.F90, and we added calls to this subroutine from each of the drivers. We hope this will allow for more new packages to write restart files in the future. Co-authored by Spencer Jones <spencerjones@tamu.edu>
As described in issue mom-ocean#372, I would like to be able to create restart files that contain information about the particle location. These files will be written at the same time as other restart files. I cannot add these calls directly to the driver, because the driver does not have information about the particle location. We have added save_MOM6_internal_state as a subroutine in MOM.F90, and we added calls to this subroutine from each of the drivers. We hope this will allow for more new packages to write restart files in the future. Co-authored by Spencer Jones <spencerjones@tamu.edu>
As described in issue mom-ocean#372, I would like to be able to create restart files that contain information about the particle location. These files will be written at the same time as other restart files. I cannot add these calls directly to the driver, because the driver does not have information about the particle location. We have added save_MOM6_internal_state as a subroutine in MOM.F90, and we added calls to this subroutine from each of the drivers. We hope this will allow for more new packages to write restart files in the future. Co-authored by Spencer Jones <spencerjones@tamu.edu>
This can be traced back to MOM_continuity_PPM.F90:644 where d(uh) / du is set to 0 through visc_rem = 0.0. From the comments it seems there's nothing stopping visc_rem from being zero, i.e.
real, dimension(SZIB_(G)), intent(in) :: visc_rem
"...Non-dimensional between 0 (at the bottom) and 1 (far above the bottom)"
Error message with stack tracer here:
https://climate-cms.nci.org.au/jenkins/job/mom-ocean.org/job/MOM6_run/build=DEBUG,compiler=intel,experiment=ocean_only-circle_obcs,memory_type=dynamic_symmetric/36/console
The text was updated successfully, but these errors were encountered: