Skip to content

Periodic BCs in DofManager#312

Merged
cmhamel merged 3 commits into
mainfrom
dofmanager/periodic-bcs
Jun 10, 2026
Merged

Periodic BCs in DofManager#312
cmhamel merged 3 commits into
mainfrom
dofmanager/periodic-bcs

Conversation

@cmhamel

@cmhamel cmhamel commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Heavy rework of DofManager and how dofs are handled/calculated in ass…emblers. This is a push towards fully supporting periodic boundary conditions in multiple ways. This likely sped up set up times for update_dofs! due to the removal of insorted method calls in favor of a dof_to_unknown layout that explicitly flags dofs as unknowns, dirichlet bcs, or side_b periodic dofs. Also fixed a minor issue that showed in juliac with the new differentiable expression function capability.

Introduces function

dof_to_unknown_index(dof::DofManager, dof::Int)

which returns the unknown id when the dof is an unknown, -1 when it is a dof associated with a Dirichlet bc, and the side_a dof when the dof is a side_b dof in a periodic boundary condition.

…emblers. This is a push towards fully supporting periodic boundary conditions in multiple ways. This likely sped up set up times for update_dofs! due to the removal of insorted method calls in favor of a dof_to_unknown layout that explicitly flags dofs as unknowns, dirichlet bcs, or side_b periodic dofs. Also fixed a minor issue that showed in juliac with the new differentiable expression function capability.
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.63830% with 69 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.35%. Comparing base (e3ae1bf) to head (57b7e72).

Files with missing lines Patch % Lines
src/bcs/PeriodicBCs.jl 64.22% 39 Missing ⚠️
src/DofManagers.jl 75.00% 19 Missing ⚠️
src/Parameters.jl 40.00% 9 Missing ⚠️
src/AppTools.jl 75.00% 1 Missing ⚠️
src/assemblers/SparseMatrixAssembler.jl 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   71.88%   71.35%   -0.53%     
==========================================
  Files          53       53              
  Lines        5207     5321     +114     
==========================================
+ Hits         3743     3797      +54     
- Misses       1464     1524      +60     

☔ View full report in Codecov by Harness.
📢 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.

@cmhamel cmhamel merged commit 20aabf1 into main Jun 10, 2026
9 of 13 checks passed
@cmhamel cmhamel deleted the dofmanager/periodic-bcs branch June 10, 2026 22: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