[Petsc-trilinos-discussion] Scope and requirements

Jed Brown jedbrown at mcs.anl.gov
Fri Nov 22 17:44:36 CST 2013


Matthew Knepley <knepley at gmail.com> writes:
> http://en.wikipedia.org/wiki/Dependency_injection Yes, we use plugins in
> exactly the same way. They obey the top-level interface,
> just like your Stratimikos interfaces, and we instantiate the concrete type
> dynamically (we can load the appropriate DLL with a
> runtime option if necessary). It has been this way since I was in grad
> school in 1996.

PETSc's system is closer to what Martin Fowler refers to as "service
locator" in his essay which seems to be a popular reference, though the
techniques had been around for decades by the time he wrote the essay.

http://www.martinfowler.com/articles/injection.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-trilinos-discussion/attachments/20131122/737a34d8/attachment.pgp>


More information about the Petsc-trilinos-discussion mailing list