1! 2! CalculiX - A 3-dimensional finite element program 3! Copyright (C) 1998-2021 Guido Dhondt 4! 5! This program is free software; you can redistribute it and/or 6! modify it under the terms of the GNU General Public License as 7! published by the Free Software Foundation(version 2); 8! 9! 10! This program is distributed in the hope that it will be useful, 11! but WITHOUT ANY WARRANTY; without even the implied warranty of 12! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13! GNU General Public License for more details. 14! 15! You should have received a copy of the GNU General Public License 16! along with this program; if not, write to the Free Software 17! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18! 19 subroutine addimd(imd,nmd,node) 20! 21! adds entity "node" to field imd. imd contains the 22! entities selected by the user in which results are to be 23! calculated in a modal dynamics calculation 24! 25 implicit none 26! 27 integer imd(*),nmd,node,id,l 28! 29 call nident(imd,node,nmd,id) 30 do 31 if(id.gt.0) then 32 if(imd(id).eq.node)exit 33 endif 34 nmd=nmd+1 35 do l=nmd,id+2,-1 36 imd(l)=imd(l-1) 37 enddo 38 imd(id+1)=node 39 exit 40 enddo 41! 42 return 43 end 44