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 extrapol_tel0(vel,nef,nkfa,
20     &     nkfb,vold,ikf,ratio,konl,mi)
21!
22!     interpolation of the element center values of the pressure to
23!     the nodes
24!
25      implicit none
26!
27      integer i,nef,nkfa,nkfb,ikf(*),konl(4,*),mi(*)
28!
29      real*8 vel(nef,0:7),ratio(4,*),vold(0:mi(2),*)
30!
31!
32!
33      do i=nkfa,nkfb
34        vold(0,ikf(i))=ratio(1,i)*vel(konl(1,i),0)+
35     &       ratio(2,i)*vel(konl(2,i),0)+
36     &       ratio(3,i)*vel(konl(3,i),0)+
37     &       ratio(4,i)*vel(konl(4,i),0)
38      enddo
39!
40      return
41      end
42