Hopefully, this is an easy question to answer. How do you properly
partition a mesh? I have a simple test program that is failing to run, it
gives the following compile error:
.../test_vtkio.cpp:31:12: error: request for member ‘partition’ in
‘pmetis’, which is of non-class type ‘libMesh::ParmetisPartitioner()’
I have also tried using the default partitioner, comment out the two lines
prior to mesh.prepare_for_use(), which complies but it fails to partition
the mesh. I in this case I am running with mpiexec -n 2, but the print
message just indicate that the mesh is the same on all processors. The
libMesh configuration indicates states: "<<< Configuring library with
Parmetis support >>>", so Parmetis is installed, I also checked that my
makefile is properly linked to Parmetis, which it is.
Thanks,
Andrew
---- PROGRAM ----
#include <libmesh.h>
#include <mesh.h>
#include <mesh_generation.h>
#include <partitioner.h>
#include <parmetis_partitioner.h>
using namespace libMesh;
int main(int argc, char** argv){
// Initilize libMesh
LibMeshInit init (argc, argv);
// Create the mesh
Mesh mesh;
MeshTools::Generation::build_square(mesh, 100, 100, 0, 1, 0, 1, QUAD4);
ParmetisPartitioner pmetis();
pmetis.partition(mesh);
mesh.prepare_for_use();
printf("Is serial: %s\n", (mesh.is_serial())?"true":"false");
printf("No. of partions: %d\n", mesh.n_partitions());
printf("n_processors() %d\n", mesh.n_processors());
printf("processor_id: %d\n", mesh.processor_id());
}
--
Andrew E. Slaughter, PhD
[email protected]
Materials Process Design and Control Laboratory
Sibley School of Mechanical and Aerospace Engineering
169 Frank H. T. Rhodes Hall
Cornell University
Ithaca, NY 14853-3801
(607) 229-1829
http://aeslaughter.github.com/
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users