On Tue, Aug 4, 2015 at 1:07 PM, Junchao Zhang <junchao.zh...@gmail.com>
wrote:

> Hello,
>    I am writing a simple AMR code with libmesh. My input mesh has 4
> elements. I use ParallelMesh.  I found I could not distribute it to more
> than four processes even after refinement.
>    In my code, I firstly do mesh.read("mesh.xda"). I find libmesh reads the
> data and distributes it on four processes, and mesh._is_serial is set to
> false.  After that, I call mesh_refinement.refine_and_coarsen_elements(),
> which calls _mesh.prepare_for_use (), and then this->partition().  But in
> mesh_base.C, since this->is_serial() is false, the partitioner never gets
> called.
>


What happens if you call mesh.partition(n) directly?

Please post your entire code so we can take a look.

-- 
John
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to