On Wed, 13 Nov 2013, Michael Povolotskyi wrote: > Dear Libmesh developers, > in the libmesh example ex4 > (http://libmesh.sourceforge.net/introduction_ex4.php) there is the > following statement > > Mesh mesh(init.comm()); > > However in the class documentation > (http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1Mesh.php) there > is another constructor > Mesh (unsigned int dim=1)
Yikes; we haven't uploaded the latest Doxygen output since February!? I'll fix that shortly; thanks! > So, what is the correct way to create the Mesh object? Both of those are "correct" in the sense that they're supported by the current default libMesh configuration, but the dim-only constructor is deprecated. Supplying a communicator is recommended for making your code more "future-proof", and supplying a dimension is now only necessary if you need to read from one of a couple file formats where we can't easily infer the dimension from the file. You can also supply both at the same time: Mesh (const Parallel::Communicator &comm_in, unsigned int dim=1) --- Roy ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
