Skip to content

Commit 20b53cb

Browse files
committed
updating test script
1 parent 9ef07ff commit 20b53cb

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

examples/test_surfsmooth.f90

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ program smoother
4747
! the go3 format
4848
!
4949
!
50-
nrefine = 0
50+
nrefine = 2
5151
! nrefine=1
5252

5353
! this is to enable adaptativity (otherwise sigma is constant)
@@ -63,7 +63,7 @@ program smoother
6363
! in relation to triangle diameter
6464
! \sigma_{j} = D_{j}/rlam
6565
!
66-
rlam = 2.5d0 !(usual value)
66+
rlam = 10.0d0 !(usual value)
6767

6868
!rlam = .5d0
6969
!rlam = 1
@@ -105,7 +105,7 @@ program smoother
105105

106106

107107
nombre='./geometries/cuboid_a1_b2_c1p3.tri'
108-
filename='./Geometries_go3/cuboid_a1_b2_c1p3'
108+
filename='./geometries_go3/cuboid_a1_b2_c1p3'
109109
!!! point inside to check Gauss integral
110110
! x0=0.0d0
111111
! y0=0.0d0
@@ -122,9 +122,9 @@ program smoother
122122
! nombre='./geometries/goyle.tri'
123123
! filename='./geometries_go3/goyle_smooth'
124124
!!! point inside to check Gauss integral
125-
x0=0.0d0
126-
y0=0.0d0
127-
z0=1.5d0
125+
x0=0.1d0
126+
y0=0.1d0
127+
z0=0.1d0
128128

129129
! nombre = './geometries/FORK.a.tri'
130130
! filename= './geometries_go3/fork_smooth'
@@ -424,6 +424,18 @@ program smoother
424424
call prin2('error_report=*',error_report,nrefine+1)
425425
write (*,*) 'error_report final: ',error_report
426426

427+
ifplot = 1
428+
if (ifplot .eq. 1) then
429+
print *
430+
print *
431+
print *, '. . . plotting vtk smoothed geometry'
432+
433+
plot_name = 'smoothed_final.vtk'
434+
call plotsmoothgeometryvtk(Geometry1, plot_name)
435+
print *, '. . . finished plotting vtk smoothed geometry'
436+
end if
437+
438+
! write (*,*) 'Empezando la parte critica de refinar'
427439

428440
write (*,*) 'FINAL REPORT'
429441
do count=0,nrefine

src/cisurf_loadmsh.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ subroutine readtri(Geometry1,filename, norder_skel, norder_smooth)
791791

792792
do j=1,m
793793
read(8,*) Geometry1%Points(1,j),Geometry1%Points(2,j),Geometry1%Points(3,j)
794-
Geometry1%Points(1:3,j) = Geometry1%Points(1:3,j)*1.0d7
794+
Geometry1%Points(1:3,j) = Geometry1%Points(1:3,j)
795795
enddo
796796

797797

0 commit comments

Comments
 (0)