Demo entry 6643948



Submitted by anonymous on Sep 30, 2017 at 04:14
Language: C++. Code size: 343 Bytes.

FiniteElementSpace *fespace = new FiniteElementSpace(mesh, fec);
Array<int> ess_tdof_list;
Vector x, b;


Operator *A;
Vector B, X;

BilinearForm *a = new BilinearForm(ofespace);

a->AddDomainIntegrator(new DiffusionIntegrator(1.0));
a->FormLinearSystem(ess_tdof_list, x, b, A, X, B);

CG(*A, B, X, 1, 500, 1e-12, 0.0);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).