PETScLUSolver constructor, cpp
The following code snippet -- adapted from the Poisson demo won't compile.
====
// Create mesh and function space
UnitSquareMesh mesh(1024, 1024);
Poisson:
// Define boundary condition
Constant u0(0.0);
DirichletBoundary boundary;
DirichletBC bc(V, u0, boundary);
// Define variational forms
Poisson:
Poisson:
Source f;
dUdN g;
L.f = f;
L.g = g;
// Compute solution
Function u(V);
PETScMatrix A;
PETScVector b;
assemble_
PETScLUSolver lu(A,"mumps");
lu.solve(
====
Here's the error:
====
$ make
[100%] Building CXX object CMakeFiles/
/home/paulcon/
PETScLUSolver lu(A,"mumps");
compilation aborted for /home/paulcon/
make[2]: *** [CMakeFiles/
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
====
What am I missing? The documentation online is unclear, and there aren't any examples of PETScLUSolver in the demos.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Paul Constantine
- Solved:
- Last query:
- Last reply: