Skip to content

Check borders#601

Merged
jhdark merged 9 commits into
festim-dev:fenicsxfrom
jhdark:check_borders
Oct 13, 2023
Merged

Check borders#601
jhdark merged 9 commits into
festim-dev:fenicsxfrom
jhdark:check_borders

Conversation

@jhdark
Copy link
Copy Markdown
Collaborator

@jhdark jhdark commented Oct 13, 2023

Proposed changes

A small feature to test the borders of the volume subdomains. Additional tests have been added to ensure it works. The current implementation only works in the case that only VolumeSubdomain1D are used, This will need to be accounted for in the future.

Types of changes

What types of changes does your code introduce to FESTIM?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code refactoring
  • Documentation Update (if none of the other choices apply)
  • New tests

Checklist

  • Black formatted
  • Unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (f6f4590) 94.08% compared to head (e14b31b) 94.44%.

Additional details and impacted files
@@             Coverage Diff             @@
##           fenicsx     #601      +/-   ##
===========================================
+ Coverage    94.08%   94.44%   +0.35%     
===========================================
  Files            9        9              
  Lines          186      198      +12     
===========================================
+ Hits           175      187      +12     
  Misses          11       11              
Files Coverage Δ
festim/hydrogen_transport_problem.py 96.70% <100.00%> (+0.07%) ⬆️
festim/mesh/mesh_1d.py 100.00% <100.00%> (ø)

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

Copy link
Copy Markdown
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments:

  • refactoring suggestions
  • maybe check_borders should be a method of Mesh1D and takes as argument a list of Subdomain1D

Comment thread festim/hydrogen_transport_problem.py Outdated
Comment thread festim/hydrogen_transport_problem.py Outdated
Comment thread festim/hydrogen_transport_problem.py Outdated
Comment thread festim/hydrogen_transport_problem.py Outdated
Copy link
Copy Markdown
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better name space

Comment thread festim/mesh/mesh_1d.py Outdated
Comment thread festim/mesh/mesh_1d.py Outdated
jhdark and others added 3 commits October 13, 2023 14:34
Co-authored-by: Rémi Delaporte-Mathurin <40028739+RemDelaporteMathurin@users.noreply.github.com>
@jhdark jhdark merged commit 83bd638 into festim-dev:fenicsx Oct 13, 2023
@jhdark jhdark deleted the check_borders branch October 13, 2023 18:44
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.

2 participants