On Thu, 9 Jan 2014, Ataollah Mesgarnejad wrote: > I was wondering if there is a preprocessor directive for parallel mesh?
Our configure script generates one. If you configure with "--enable-parmesh" then every Mesh object ends up being a shim around ParallelMesh instead of a shim around SerialMesh. Both mesh types are always in the library, though, so you can always add a switch to your user code to pick one or the other. The lack of reflection in C++ makes it hard to have a Mesh which changes behavior at run time, but it wouldn't be hard to have a static AutoPtr<UnstructuredMesh> Mesh::build(); which returns a pointer to ParallelMesh or a pointer to SerialMesh depending on both configure-time and run-time preferences. Would others find such a method useful? --- Roy ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
