Re: [Libmesh-users] How to partition a mesh.

2012-11-13 Thread Derek Gaston
Makes sense! I was just making sure you weren't doing unnecessary work! In that case - my favorite way to manually do a partitioning is creating a Partitioner manually... then attaching it to the mesh like so: mesh.partitioner() = AutoPtr(new CentroidPartitioner(CentroidPartitioner::X));

Re: [Libmesh-users] How to partition a mesh.

2012-11-13 Thread Andrew E Slaughter
Currently, I am working a writing a new VTKIO class for writing, in parallel, the vtk file format. I was having trouble with the libMesh VTKIO class, so I am writing my own (I wrote code for another project that does this, so I am just adapting it for libMesh; it will write the file directly, w/o V

Re: [Libmesh-users] How to partition a mesh.

2012-11-13 Thread Derek Gaston
Andrew, You shouldn't need to use a partitioner directly... unless you're doing something funky. Partitioning just happens "automagically" with libMesh for most use cases. For instance you should be able to run any of the examples in parallel (using mpiexec) and you'll see the mesh is automatica

Re: [Libmesh-users] How to partition a mesh.

2012-11-13 Thread Roy Stogner
On Tue, 13 Nov 2012, Andrew E Slaughter wrote: > Thanks for fixing my stupid mistake (3 weeks of classdef's in MATLAB > has messed with me). The program now runs but when I run: mpiexec -n > 2 I just get the following, which is showing the mesh is not > parallel. Your previous code instantiated

Re: [Libmesh-users] How to partition a mesh.

2012-11-13 Thread Andrew E Slaughter
Thanks for fixing my stupid mistake (3 weeks of classdef's in MATLAB has messed with me). The program now runs but when I run: mpiexec -n 2 I just get the following, which is showing the mesh is not parallel. I must be missing something else. Thanks. Is serial: true No. of partions: 1 n_processors

Re: [Libmesh-users] How to partition a mesh.

2012-11-12 Thread Roy Stogner
On Mon, 12 Nov 2012, Andrew E Slaughter wrote: .../test_vtkio.cpp:31:12: error: request for member ‘partition’ in ‘pmetis’, which is of non-class type ‘libMesh::ParmetisPartitioner()’ ParmetisPartitioner pmetis(); This declares a function that returns a ParmetisPartitioner. Omit the paren

[Libmesh-users] How to partition a mesh.

2012-11-12 Thread Andrew E Slaughter
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::Parmetis