← Back to team overview

dolfin team mailing list archive

Adding form names F and J

 

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


Follow ups