1
// Copyright (C) 2007 Anders Logg and Marie Rognes
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2007-04-20
5
// Last changed: 2007-04-20
7
// This demo program solves the mixed formulation of
13
// The corresponding weak (variational problem)
15
// <v, q> - <div(v), u> = 0 for all v
16
// <w, div q> = <w, f> for all w
18
// is solved using BDM (Brezzi-Douglas-Marini) elements
19
// of degree 1 (v, q) and DG (discontinuous Galerkin)
20
// elements of degree 0 for (w, u).
23
#include "MixedPoisson.h"
25
using namespace dolfin;
29
UnitSquare mesh(1, 1);
31
MixedPoissonBilinearForm a;
36
// Display matrix values