Could we add the additional form names "F" and "J" to UFL to be used
for nonlinear problems? These would then be mapped (typedeffed) to
"ResidualForm" and "JacobianForm" by the DOLFIN C++ wrappers.

Then one can use F and J in the .ufl file and then initialize the
forms in C++ by

  NonlinearPoisson::ResidualForm F(V);
  NonlinearPoisson::JacobianForm J(V, V);

instead of using L and a and then initializing by

  NonlinearPoisson::LinearForm F(V);
  NonlinearPoisson::BilinearForm J(V, V);

Any objections?

--
Anders

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to