Page 1 of 1

Naive block partitioning

Posted: Mon Nov 30, 2015 3:45 pm
by Bobopart
Hello,

I do parallel computation of the flow in a rectangular parallelepiped. For the partitioning, I would like to divide the domain in only one direction. I therefore used the block partitioning, it does the job but the domain is cut in the z-direction (see the attached image) while I would prefer to cut it in the x-direction to decrease the communication. I tried to number differently the elements of my "unv" mesh but it doesn't work.
I did have a look to the cs_partition.c but I do not really understand the part that deals with the block partitioner.

So, is there a simple way to force the block partioner to cut my domain in one direction ?

Thanks a lot

Boris

Re: Naive block partitioning

Posted: Mon Nov 30, 2015 10:34 pm
by Yvan Fournier
Hello,

The block partitioning should indeed depend on the initial numbering, but for a unv mesh, I do not remember whether cells initial numbering is based on occurence rank in the unv file or by element label... So I you tried one, I recommend trying the other....

At some point, we should add a user subroutine for partitioning, but have not done it yet...

Regards,

Yvan

Re: Naive block partitioning

Posted: Tue Dec 01, 2015 2:38 pm
by Bobopart
Hello Yvan,

Thanks for your reply. I will try to modify my *.unv file.

Regards

Boris

Re: Naive block partitioning

Posted: Tue Dec 01, 2015 2:54 pm
by Bobopart
I changed the occurrence rank in my *.unv, it works !

Thanks a lot