Skip to content

Commit 6f912dc

Browse files
committed
Clarify set_node_ids_one_based_index
1 parent 2180aae commit 6f912dc

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/core/fem/src/general/element/4C_fem_general_element.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void Core::Elements::Element::set_node_ids(const int nnode, const int* nodes)
198198

199199
/*----------------------------------------------------------------------*/
200200
/*----------------------------------------------------------------------*/
201-
void Core::Elements::Element::set_node_ids(
201+
void Core::Elements::Element::set_node_ids_one_based_index(
202202
const std::string& distype, const Core::IO::InputParameterContainer& container)
203203
{
204204
nodeid_ = container.get<std::vector<int>>(distype);

src/core/fem/src/general/element/4C_fem_general_element.hpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -721,12 +721,11 @@ might become invalid after a redistribution of the discretization.
721721
*/
722722
void set_node_ids(const int nnode, const int* nodes);
723723

724-
/*!
725-
\brief Set a list of node ids this element is connected to
726-
727-
Here the node ids are directly taken from an input line.
728-
*/
729-
void set_node_ids(
724+
/**
725+
* Set the list of node ids this element is connected to. Here, the index
726+
* starts at 1, not 0. This is used for the legacy element input.
727+
*/
728+
void set_node_ids_one_based_index(
730729
const std::string& distype, const Core::IO::InputParameterContainer& container);
731730

732731
/*!

src/core/io/src/4C_io_elementreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void Core::IO::ElementReader::get_and_distribute_elements(const int nblock, cons
176176
Core::IO::InputParameterContainer data;
177177
linedef.fully_parse(element_parser, data);
178178

179-
ele->set_node_ids(distype, data);
179+
ele->set_node_ids_one_based_index(distype, data);
180180
ele->read_element(eletype, distype, data);
181181

182182
// add element to discretization

0 commit comments

Comments
 (0)