#this script is an input for the maddi program
#it decomposes the pipe domain into 1200 subdomains
#using a weight backround grid

read pipe.poly

#read the background grid
read_weights pipe-weightgrid.node

#set min angle to 61
set f=0.34
#set uniform factor to 2
set r=2
#set graded factor to 5
set a=5

dec 1200

write bw-pipe1200.poly
writeSubdomains bw-pipe1200.dat

statistics

exit