Skip to content

Commit 5dba51c

Browse files
committed
Rename n_dofs_on_each_processor -> n_dofs_per_processor
1 parent eef686c commit 5dba51c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/base/dof_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ class DofMap : public ReferenceCountedObject<DofMap>,
719719
* \returns The number of degrees of freedom on each partition for a
720720
* particular variable \p vn.
721721
*/
722-
std::vector<dof_id_type> n_dofs_on_each_processor(const unsigned int vn) const
722+
std::vector<dof_id_type> n_dofs_per_processor(const unsigned int vn) const
723723
{
724724
std::vector<dof_id_type> n_local_dofs(this->n_processors(), 0);
725725
this->comm().allgather(this->n_local_dofs(vn), n_local_dofs);

tests/systems/systems_test.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public:
604604
for (const Node * node : mesh.node_ptr_range())
605605
CPPUNIT_ASSERT_EQUAL(dof_id_type(node->n_vars(0)), n_dofs);
606606

607-
std::vector<dof_id_type> each = sys.get_dof_map().n_dofs_on_each_processor(888);
607+
std::vector<dof_id_type> each = sys.get_dof_map().n_dofs_per_processor(888);
608608
CPPUNIT_ASSERT_EQUAL(std::accumulate(each.begin(), each.end(), dof_id_type(0)), dof_id_type(5));
609609
CPPUNIT_ASSERT_EQUAL(sys.get_dof_map().n_dofs(888), dof_id_type(5));
610610
}

0 commit comments

Comments
 (0)