~ubuntu-branches/ubuntu/trusty/rheolef/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/usrman/poisson-dirichlet.icc

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2010-06-12 09:08:59 UTC
  • Revision ID: james.westby@ubuntu.com-20100612090859-8gpm2gc7j3ab43et
Tags: upstream-5.89
ImportĀ upstreamĀ versionĀ 5.89

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
void poisson_dirichlet (field fh, field& uh) {
 
2
    const space& Vh = uh.get_space();
 
3
    form a (Vh, Vh, "grad_grad");
 
4
    form m (Vh, Vh, "mass");
 
5
    ssk<Float> fact = ldlt(a.uu);
 
6
    uh.u = fact.solve (m.uu*fh.u + m.ub*fh.b - a.ub*uh.b);
 
7
}