Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcapriot
Copy link
Member

@jcapriot jcapriot commented Sep 12, 2025

Summary

Avoid performing calculations for DC boundary conditions on the top of the mesh, where the simulation always explicitly uses a zero Neumann condition.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

What does this implement/fix?

By avoiding evaluating these locations at the top of the mesh, we avoid the 'DivideByZero' warning.

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@22f8353). Learn more about missing BASE report.
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1698   +/-   ##
=======================================
  Coverage        ?   86.05%           
=======================================
  Files           ?      430           
  Lines           ?    55745           
  Branches        ?     5177           
=======================================
  Hits            ?    47974           
  Misses          ?     6372           
  Partials        ?     1399           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jcapriot jcapriot merged commit fbea6db into simpeg:main Sep 13, 2025
22 checks passed
@jcapriot jcapriot deleted the sim_2d_div_zero_fix branch September 13, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant