On Wed, Aug 17, 2011 at 3:25 AM, robert <robert.bod...@unil.ch> wrote: > Am Montag, den 15.08.2011, 08:03 -0600 schrieb John Peterson: >> On Fri, Aug 12, 2011 at 4:21 AM, robert <robert.bod...@unil.ch> wrote: >> > Hello, >> > >> > again, I have a question as far as reading meshes with tetgen is >> > concered. >> > I read a mesh by >> > >> > Mesh new_mesh; >> > EquationSystems new_equation_systems (new_mesh); >> > TetGenIO TETGEN(new_mesh); >> > >> > OStringStream inmesh; >> > inmesh<<"geometry_wings/export_pov/out/"<<ReadMesh[actual_pulse]<<"_box.1.ele"; >> > TETGEN.read(inmesh.str().c_str()); >> > >> > Afterwards, if I look at the equation system I get n_dofs() = 0; >> >> This makes sense, you haven't added any Systems to your >> EquationSystems object. All the n_dofs() function does is loop over >> the Systems stored in the EquationSystems object and add up the dofs >> of each... >> > > But even if I add a system I get the same:
You'll need to add a call to mesh.prepare_for_use() some time before the EquationSystems init() call. We could probably do this automatically in the IO classes but for the most part we don't, one reason is to let the user control whether libmesh renumber the nodes and elements or not... > Furthermore, I have another question. I recently discussed with the > responsible person for the 'blue gene/p' computer which we have here at > university. He told me that for libraries like Petsc they often have > problems to get it work on multiple clusters. Do you have any experience > with this kind of supercomputer and libmesh? The responsible professor > doesn't know libmesh and this was one of the first questions he asked. Pretty sure PETSc works just fine on Blue Gene, but none of the primary libmesh developers has ever had access to one to ensure that libmesh compiles there. Chances are good if PETSc is already working and they have a modern C++ compiler... -- John ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users