~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to sandbox/ilmarw/test/main.cpp

  • Committer: Ilmar Wilbers
  • Date: 2008-05-23 10:52:27 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: ilmarw@simula.no-20080523105227-vctvs79hp30m47se
Added test to sandbox/ilmarw.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <dolfin.h>
 
2
#include "Poisson.h"
 
3
 
 
4
using namespace dolfin;
 
5
 
 
6
int main()
 
7
 
8
  dolfin_set("linear algebra backend", "Assembly");
 
9
  
 
10
  PoissonBilinearForm a;
 
11
  UnitCube mesh(100, 100, 100);
 
12
  Matrix A;
 
13
 
 
14
  Assembler assembler(mesh);
 
15
  assembler.assemble(A, a);
 
16
 
 
17
  A.disp();
 
18
 
 
19
  return 0;
 
20
}