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

read pipe.poly

#define the library and the weight function name  
setWeightFunction ../madd/libweight.so pipe2

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

dec 1200

write fw-pipe1200.poly
writeSubdomains fw-pipe1200.dat

statistics

exit