%--------------------------------------------------------------------------
% INDEX.ADD_DOF
%--------------------------------------------------------------------------
% Add degrees of freedom to the system
%--------------------------------------------------------------------------
% Syntax
%--------------------------------------------------------------------------
[IN,new_num] = ADD_DOF(IN,loc_dof,cur_node)
[IN,new_num] = INDEX.ADD_DOF(IN,loc_dof,cur_node)
%--------------------------------------------------------------------------
% Description
%--------------------------------------------------------------------------
% INDEX.ADD_DOF allows to update the indexation table when adding new
% degrees of freedom in the system. This method is used when applying
% Dirichlet boundary conditions for instance.
%--------------------------------------------------------------------------
% Input arguments
%--------------------------------------------------------------------------
% IN : INDEX object
% loc_dof : local number of degrees of freedom (type)
% cur_node : set of NODE objects
%--------------------------------------------------------------------------
% Output arguments
%--------------------------------------------------------------------------
% IN : INDEX object - updated object
% new_num : scalar - updated number of degrees of freedom
%--------------------------------------------------------------------------
% Example
%--------------------------------------------------------------------------
[IN,new_num] = ADD_DOF(IN,loc_dof,cur_node)
IN =
INDEX with properties:
tab_index: [477x3 double]
dof_number: 476
lag_number1: 1
lag_number2: 0
idx_phys: []
idx_Lag1: []
idx_Lag2: []
dof_Rela: []
new_num =
477