~ubuntu-branches/ubuntu/wily/dolfin/wily-proposed

« back to all changes in this revision

Viewing changes to demo/documented/nonlinear-poisson/cpp/main.cpp

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2015-03-17 07:57:11 UTC
  • mfrom: (1.1.18) (19.1.24 experimental)
  • Revision ID: package-import@ubuntu.com-20150317075711-1v207zbty9qmygow
Tags: 1.5.0-1
* New upstream release (closes: #780359).
* debian/control:
  - Bump Standards-Version to 3.9.6 (no changes needed).
  - Bump X-Python-Version to >= 2.7.
  - Update package names for new SONAME 1.5 (libdolfin1.4 ->
    libdolfin1.5, libdolfin1.4-dbg -> libdolfin1.5-dbg and
    libdolfin1.4-dev -> libdolfin1.5-dev).
  - Bump minimum required version for python-instant, python-ufl and
    python-ffc to 1.5.0.
  - Add python-sympy and python-six to Depends for binary package
    python-dolfin.
  - Add dh-python to Build-Depends.
  - Remove libcgal-dev from {Build-}Depends.
* Remove CSGCGALMeshGenerator3D-oom.patch since CGAL is no longer used
  by DOLFIN.
* Move debian/libdolfin1.4.install -> debian/libdolfin1.5.install.
* debian/rules: No longer any non DFSG-free stuff to remove, so update
  get-orig-source target (update debian/watch accordingly).
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
int main()
70
70
{
71
 
  // Use Trilinos if available
72
 
  #ifdef HAS_TRILINOS
73
 
  parameters["linear_algebra_backend"] = "Epetra";
74
 
  #endif
75
 
 
76
71
  // Create mesh and define function space
77
72
  UnitSquareMesh mesh(16, 16);
78
73
  NonlinearPoisson::FunctionSpace V(mesh);
88
83
 
89
84
  // Create residual form defining (nonlinear) variational problem
90
85
  NonlinearPoisson::LinearForm F(V);
91
 
  F.u = u; F.f = f;
 
86
  F.u = u;
 
87
  F.f = f;
92
88
 
93
89
  // Create Jacobian form J = F' (for use in nonlinear solver).
94
90
  NonlinearPoisson::JacobianForm J(V, V);