@@ -298,7 +298,7 @@ namespace
298298 Core::IO::InputParameterContainer data;
299299 linedef.fully_parse (element_parser, data);
300300
301- ele->set_node_ids_one_based_index (distype, data);
301+ ele->set_node_ids (distype, data);
302302 ele->read_element (eletype, distype, data);
303303
304304 // add element to discretization
@@ -690,7 +690,7 @@ namespace
690690
691691 if (type == " NODE" )
692692 {
693- int nodeid = parser.read <int >() - 1 ;
693+ const int nodeid = parser.read <int >();
694694 parser.consume (" COORD" );
695695 auto coords = parser.read <std::vector<double >>(3 );
696696
@@ -709,13 +709,13 @@ namespace
709709 // this node is a Nurbs control point
710710 else if (type == " CP" )
711711 {
712- int cpid = parser.read <int >() - 1 ;
712+ const int cpid = parser.read <int >();
713713 parser.consume (" COORD" );
714714 auto coords = parser.read <std::vector<double >>(3 );
715715 double weight = parser.read <double >();
716716
717717 max_node_id = std::max (max_node_id, cpid) + 1 ;
718- if (cpid != line_count)
718+ if (cpid != line_count + 1 )
719719 FOUR_C_THROW (
720720 " Reading of control points {} failed: They must be numbered consecutive!!" , cpid);
721721 std::vector<std::shared_ptr<Core::FE::Discretization>> diss =
@@ -745,7 +745,7 @@ namespace
745745 std::vector<std::array<double , 3 >> fibers;
746746 std::map<Core::Nodes::AngleType, double > angles;
747747
748- int nodeid = parser.read <int >() - 1 ;
748+ const int nodeid = parser.read <int >();
749749 parser.consume (" COORD" );
750750 auto coords = parser.read <std::vector<double >>(3 );
751751 max_node_id = std::max (max_node_id, nodeid) + 1 ;
0 commit comments