So to continue along these lines I just submitted a patch to the DofMap that
will allow user-provided objects instead of function pointers to augment the
send list and sparsity pattern.

These are implemented in much the same way as the nonlinear solver stuff -
just a pure virtual function in a shell class the user can inherit from and
implement.

I opted for a named function like this:

foo->augment_send_list(send_list);

because it seemed a lot more self-documenting in this case than

foo(send_list);

For this application a functor seemed like it would complicate the intention
of the function.

Just wanted to give you a heads up in case those of you using the function
pointers have a desire to port the implementation.

-Ben


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to