20 integer,
intent(in) :: np
21 integer,
intent(in) :: nodes(np)
22 integer,
intent(in) :: dofs(np)
23 real(kind=
kreal),
intent(in) :: values(np+1)
26 integer :: i, n_mpc, old_size, new_size
32 old_size = mpcs%mpc_index( n_mpc )
33 new_size = old_size+np
38 mpcs%mpc_index(mpcs%n_mpc) = mpcs%mpc_index(mpcs%n_mpc-1)+np
39 mpcs%mpc_const(mpcs%n_mpc) = values(np+1)
41 mpcs%mpc_item(old_size+i) = nodes(i)
42 mpcs%mpc_dof(old_size+i) = dofs(i)
43 mpcs%mpc_val(old_size+i) = values(i)
54 integer,
intent(in) :: np
57 integer :: n_mpc, old_size, nitem
59 old_size = mpcs%mpc_index( n_mpc )
60 nitem = old_size- mpcs%mpc_index( n_mpc-np )
This module provides functions to modify MPC conditions.
subroutine fstr_delete_mpc(np, mpcs)
Delete last n equation conditions from current mpc condition.
subroutine fstr_append_mpc(np, nodes, dofs, values, mpcs)
Append new equation condition at end of existing mpc conditions.
This module contains auxiliary functions in calculation setup.
This module contains auxiliary functions in calculation setup.
subroutine hecmw_expand_integer_array(array, old_size, new_size)
subroutine hecmw_expand_real_array(array, old_size, new_size)
subroutine hecmw_delete_integer_array(array, old_size, nitem)
subroutine hecmw_expand_index_array(array, old_size, new_size)
subroutine hecmw_delete_real_array(array, old_size, nitem)
subroutine hecmw_delete_index_array(array, old_size, nindex)
integer(kind=4), parameter kreal