Naive block partitioning

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Bobopart
Posts: 8
Joined: Fri Feb 15, 2013 12:13 pm

Naive block partitioning

Post 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
Attachments
Partitioning_1.png
(9.3 KiB) Not downloaded yet
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Naive block partitioning

Post 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
Bobopart
Posts: 8
Joined: Fri Feb 15, 2013 12:13 pm

Re: Naive block partitioning

Post by Bobopart »

Hello Yvan,

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

Regards

Boris
Bobopart
Posts: 8
Joined: Fri Feb 15, 2013 12:13 pm

Re: Naive block partitioning

Post by Bobopart »

I changed the occurrence rank in my *.unv, it works !

Thanks a lot
Post Reply