← Back to team overview

dolfin team mailing list archive

Re: [Branch ~dolfin-core/dolfin/main] Rev 5463: Change VariationalProblem interface.

 

On Wed, Jan 05, 2011 at 03:51:32PM +0100, Marie E. Rognes wrote:
> On 01/05/2011 03:32 PM, Garth N. Wells wrote:
>
>     I wonder if the distinction now between linear and nonlinear problems is
>     too subtle? Another way would be to have classes
>
>       LinearVariationalProblem
>
>     and
>
>       NonlinearVariationalProblem
>
>
>
>
> I agree that the distinction in the interface can be called subtle (or
> alternatively, "almost seamless"). But, I think I prefer keeping the input
> minimal and rather giving more verbose feedback ("starting linear/nonlinear
> solve", throwing errors if input is inconsistent etc) than increasing the
> verbosity of the required input.
>
> Also cf. thread "VariationalProblem interface(s)" from Oct 20th for more
> motivation behind this change.

I tend to prefer overloading and like the shorter "VariationalProblem"
for both linear and nonlinear problems.

The rationale is that the most important argument is placed first:

  F, F'
  a, L

--
Anders



Follow ups

References