34#include "implicit_f.inc"
42#include "intstamp_c.inc"
46 INTEGER NODGLOB(*),WEIGHT(*)
48 . cont(3,*),fcontg(3,*),fcont_max(3,*)
52 . ,
DIMENSION(:,:),
ALLOCATABLE :: fcont_tmp,fcont_tmp_p
55 IF(nintstamp == 0)
THEN
57 IF(weight(n) == 1)
THEN
58 fnew = cont(1,n)**2 + cont(2,n)**2 +cont(3,n)**2
59 fold = fcont_max(1,n)**2 + fcont_max(2,n)**2 +fcont_max(3,n)**2
62 fcont_max(1:3,n) = cont(1:3,n)
70 ALLOCATE(fcont_tmp(3,numnod))
71 ALLOCATE(fcont_tmp_p(3,numnodg))
75 fcont_tmp(1,i) = cont(1,i) + fcontg(1,k)
76 fcont_tmp(2,i) = cont(2,i) + fcontg(2,k)
77 fcont_tmp(3,i) = cont(3,i) + fcontg(3,k)
87 fnew = fcont_tmp_p(1,n)**2 + fcont_tmp_p(2,n)**2 +fcont_tmp_p(3,n)**2
88 fold = fcont_max(1,n)**2 + fcont_max(2,n)**2 +fcont_max(3,n)**2
91 fcont_max(1:3,n) = fcont_tmp_p(1:3,n)
97 IF(weight(n) /= 1) cycle
98 fnew = fcont_tmp(1,n)**2 + fcont_tmp(2,n)**2 +fcont_tmp(3,n)**2
99 fold = fcont_max(1,n)**2 + fcont_max(2,n)**2 +fcont_max(3,n)**2
100 fmax =
max(fnew,fold)
102 fcont_max(1:3,n) = fcont_tmp(1:3,n)
106 DEALLOCATE( fcont_tmp_p, fcont_tmp)