Skip to content

Fixes for static condensation dof map #4187

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

Merged
merged 2 commits into from
Jun 11, 2025
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Guard n_old_dofs
  • Loading branch information
lindsayad committed Jun 10, 2025
commit 4bd1f7d02afdf52dd27a2d9a807d507303fca1fc
5 changes: 3 additions & 2 deletions include/base/dof_map_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ class DofMapBase : public ParallelObject

virtual void clear();

#ifdef LIBMESH_ENABLE_AMR
/**
* \returns The total number of degrees of freedom on old_dof_objects
*/
dof_id_type n_old_dofs() const { return _n_old_dfs; }

#ifdef LIBMESH_ENABLE_AMR
/**
* \returns The first old dof index that is local to partition \p proc.
*/
Expand Down Expand Up @@ -200,6 +200,7 @@ inline dof_id_type DofMapBase::n_dofs_on_processor(const processor_id_type proc)
return cast_int<dof_id_type>(_end_df[proc] - _first_df[proc]);
}

#ifdef LIBMESH_ENABLE_AMR
inline dof_id_type DofMapBase::first_old_dof(const processor_id_type proc) const
{
libmesh_assert_less(proc, _first_old_df.size());
Expand All @@ -211,6 +212,6 @@ inline dof_id_type DofMapBase::end_old_dof(const processor_id_type proc) const
libmesh_assert_less(proc, _end_old_df.size());
return _end_old_df[proc];
}

#endif // LIBMESH_ENABLE_AMR
}
#endif // LIBMESH_DOF_MAP_BASE_H
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy