> I would like to build a sparsity pattern from an existing sparsity
> pattern. For example
>
> the existing pattern is for this system
>
> (A B C)
> (D E F) now the new system should be (A B)
> (G H I) (D E)
>
> How can I build a sparsity pattern form the existing system?
You could do
new_block_sparsity.reinit (2,2);
for (i=0,1)
for (j=0,1)
new_block_sparsity.block(i,j).copy_from (old_block_sparsity.block(i,j));
new_block_sparsity.collect_sizes();
Would that help?
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.tamu.edu/~bangerth/
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii