#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 1
set r=1
#set graded factor to 4
set a=4

dec 1200

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

statistics

exit