From: Manav B. <bha...@gm...> - 2018-01-29 18:09:22
|
I see. So, I am defining a class that inherits from nonlinear_implicit_system, and calling get_linear_solver() on that. This gets to the implementation in implicit_system, since the nonlinear_implicit_system does not define an overriding function. Instead, there is one defined in linear_implicit_system, but that is a different code path. -Manav > On Jan 29, 2018, at 11:12 AM, John Peterson <jwp...@gm...> wrote: > > > > On Mon, Jan 29, 2018 at 9:59 AM, Manav Bhatia <bha...@gm... <mailto:bha...@gm...>> wrote: > Hi, > > The source code says that the following method is deprecated: > > ImplicitSystem::get_linear_solver() > > This is, however, extensively being used in implicit_system.C. > > Is there a different method that I should be looking to use? > > > Hmm... "deprecated" is a bit of a misnomer here, I think what will eventually happen is that the base class implementation will be changed into a libmesh_error() to prevent it from being accidentally called. > > The usage you are referring to in implicit_system.C therefore represents calls to derived class implementations, and should remain as-is. > > If you are currently seeing a deprecation message from calling this function, you are probably doing something wrong and need to fix your code, but I doubt that's the case? > > -- > John |