Skip to content
Snippets Groups Projects
Commit 39405132 authored by Dave Whipp's avatar Dave Whipp
Browse files

Modified to use surface0

parent d5d448ff
No related branches found
No related tags found
No related merge requests found
...@@ -295,12 +295,13 @@ do while (istep.le.params%nstep) ...@@ -295,12 +295,13 @@ do while (istep.le.params%nstep)
!------------------------------------------------------------------------! !------------------------------------------------------------------------!
ref_count=1 ref_count=1
nadd=1 nadd=1
do while (nadd>0) nrem=1
do while (nadd+nrem>0)
call show_time (total,step,inc,1,'refine surface$') call show_time (total,step,inc,1,'refine surface$')
call refine_surface(params,surface(is),threadinfo,nadd,is,istep,ref_count) call refine_surface(params,surface(is),surface0(is),threadinfo,nadd,nrem,is,istep,ref_count)
call show_time (total,step,inc,1,'check delaunay$') call show_time (total,step,inc,1,'check delaunay$')
call check_delaunay (params,surface(is),is,istep,'delaunay_after_refine',ref_count) call check_delaunay (params,surface(is),is,istep,'delaunay_after_refine',ref_count)
call DoRuRe_surf_stats (params%doDoRuRe,istep,ref_count,is,surface(is)%nt,surface(is)%nsurface,nedge,nadd) call DoRuRe_surf_stats (params%doDoRuRe,istep,ref_count,is,surface(is)%nt,surface(is)%nsurface,nedge,nadd+nrem)
ref_count=ref_count+1 ref_count=ref_count+1
end do end do
endif endif
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
!------------------------------------------------------------------------------| !------------------------------------------------------------------------------|
!------------------------------------------------------------------------------| !------------------------------------------------------------------------------|
subroutine refine_surface (params,surface,threadinfo,nadd,is,istep,ref_count) subroutine refine_surface(params,surface,surface0,threadinfo,nadd,nrem,is,&
istep,ref_count)
!------------------------------------------------------------------------------| !------------------------------------------------------------------------------|
!(((((((((((((((( Purpose of the routine )))))))))))))))))))))))))))))))))))))) !(((((((((((((((( Purpose of the routine ))))))))))))))))))))))))))))))))))))))
...@@ -167,7 +168,7 @@ distmin=1.d0/(2.d0**surface%levelt+4)*sqrt(2.d0) ...@@ -167,7 +168,7 @@ distmin=1.d0/(2.d0**surface%levelt+4)*sqrt(2.d0)
allocate (refine(nedge),stat=err) allocate (refine(nedge),stat=err)
allocate (refinep(nedge),stat=err) allocate (refinep(nedge),stat=err)
allocate (remove(nedge),stat=err) allocate (remove(nedge),stat=err)
allocate (removep(ndege),stat=err) allocate (removep(nedge),stat=err)
refine=.false. refine=.false.
refinep=.false. refinep=.false.
...@@ -335,7 +336,7 @@ do i=1,nrem ...@@ -335,7 +336,7 @@ do i=1,nrem
iedge=remove_list(i) iedge=remove_list(i)
i1=ed(iedge)%n1 i1=ed(iedge)%n1
i2=ed(iedge)%n2 i2=ed(iedge)%n2
call remove_point(i1,surface,1,surface0) call remove_point(i1,surface,0,surface0)
end do end do
if (.not.params%normaladvect) then if (.not.params%normaladvect) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment