Hi gk,

> I am solving simple poisson equation using IPDG. I have two questions when I
> try to model my equation on step 40. I hope someone can help me with this.
>
> 1. I get this error when I say make_flux_sparsity_pattern.
>     ExcMessage ("Can't ask for DoF indices on artificial cells.")

Okay, the make_flux_sparsity_pattern() was not adapted for distributed
meshes, yet. Please update to the latest svn and see if my commit
fixes your problem. If not, can you send me a minimal example please?

> 2. On a related note, I don't use the sparsity pattern and just reinit
> system_matrix using dof_handler.n_dofs(). But when I run this it assembles
> fine and gives me the right results when I run with 1 processor but when I
> use more than     1 processor, I get the following error:
>
> [0]PETSC ERROR: Incompatible partition of A (4500) and xx (2250)!

I am not sure how you set up your matrix here, but the parallel
partitioning of the vectors and the matrix do not match. How did you
specify the local rows (or how did you create the matrix)? Note that
using n_dofs() is always a bad idea for performance reasons.

Best,
Timo

-- 
Timo Heister
http://num.math.uni-goettingen.de/~heister
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to