Skip to content
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

Print global number of cells and dofs #1865

Merged
merged 25 commits into from
Jun 7, 2024
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
954a502
switch to global count of cells
benegee Mar 7, 2024
ed6d5a9
introduce ndofsglobal for generic types as fallback
benegee Mar 7, 2024
0fd2376
switch to ndofsglobal for console output
benegee Mar 7, 2024
51127eb
add ncellsglobal
benegee Mar 7, 2024
eef69b9
Merge branch 'main' into bg/print-global-number-of-cells-dofs
benegee Mar 7, 2024
2efdfd8
Update src/semidiscretization/semidiscretization.jl
benegee Mar 8, 2024
b883b3a
remove docstring
benegee Mar 8, 2024
6a48c77
ndofsglobal in analysis callback
benegee Mar 8, 2024
d82aff5
remove unnecessary fallback
benegee Mar 26, 2024
a158728
Merge branch 'main' into bg/print-global-number-of-cells-dofs
benegee Mar 26, 2024
6c4d1d1
Merge branch 'main' into bg/print-global-number-of-cells-dofs
benegee May 29, 2024
b8dbb4a
Update src/semidiscretization/semidiscretization.jl
benegee May 29, 2024
0ad58de
Merge branch 'bg/print-global-number-of-cells-dofs' of github.com:tri…
benegee May 29, 2024
0d6c935
Update src/semidiscretization/semidiscretization_coupled.jl
benegee May 29, 2024
60ed55f
missing calls to *global functions
benegee May 29, 2024
e0df3b4
sum up and print global element count per level
benegee May 29, 2024
5c9e8a3
Merge branch 'bg/print-global-number-of-cells-dofs' of github.com:tri…
benegee May 29, 2024
a773257
formatter
benegee May 29, 2024
e217ab3
simplify
benegee May 29, 2024
97c1c2d
revert change in relative runtime
benegee May 29, 2024
9301e65
add nelementsglobal in analogy to ndofsglobal
benegee May 29, 2024
9282cb6
fix signature
benegee May 29, 2024
710c9c3
add mesh parameter to nelementsglobal
benegee May 29, 2024
db3bf43
:/
benegee May 29, 2024
bded959
Update src/callbacks_step/analysis.jl
benegee May 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
@@ -123,6 +123,14 @@ end
sum(ndofs, semi.semis)
end

"""
ndofsglobal(semi::SemidiscretizationCoupled)

Return the global number of degrees of freedom associated with each scalar variable across all MPI ranks, and summed up over all coupled systems.
This is the same as [`ndofs`](@ref) for simulations running in serial or
parallelized via threads. It will in general be different for simulations
running in parallel with MPI.
"""
@inline function ndofsglobal(semi::SemidiscretizationCoupled)
sum(ndofsglobal, semi.semis)
end