[Petsc-trilinos-discussion] Scope and requirements

Barry Smith bsmith at mcs.anl.gov
Fri Nov 22 19:02:23 CST 2013


On Nov 22, 2013, at 6:48 PM, Bartlett, Roscoe A. <bartlettra at ornl.gov> wrote:

> Then what is the issue with shared vs static libs? Why can't downstream client app just compile the petsc ml adapter, call the registration func then use ml under petsc like before?

   They can. Our objection to this is 

> call the registration func.

    Barry


> 
> -Ross
> 
> -----Original Message-----
> From: Jed Brown [jedbrown at mcs.anl.gov]
> Sent: Friday, November 22, 2013 06:44 PM Eastern Standard Time
> To: Matthew Knepley; Bartlett, Roscoe A.
> Cc: Barry Smith; petsc-trilinos-discussion at lists.mcs.anl.gov
> Subject: Re: [Petsc-trilinos-discussion] Scope and requirements
> 
> 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
> 



More information about the Petsc-trilinos-discussion mailing list