It says the following after I run your suggestion:

class "dealii::TrilinosWrappers::SparseMatrix" has no member 
"print_formatted"
  system_matrix.print_formatted(pcout.get_stream(),2,true,2,"0",1);

Am Freitag, 9. Dezember 2016 16:46:26 UTC+1 schrieb mohseng...@gmail.com:
>
> Hi,
>
> I am wondering, if there is a possibility to output matrices and vectors 
> for parallel code.
> For instance I already read in previous topics here that you can use:
>
> system_matrix.print_formatted(cout,2,true,2,"0",1) 
>
> or
>
> system_rhs.print(cout).
>
> Unfortunately, it is not possible to use pcout here, if I am not mistaken.
>
> Another issue:
>
> template<int dim>
> SymmetricTensor<4, dim> get_stress_strain_tensor(const double lambda,
> const double mu) {
> SymmetricTensor<4, dim> tmp;
> for (unsigned int i = 0; i < dim; ++i)
> for (unsigned int j = 0; j < dim; ++j)
> for (unsigned int k = 0; k < dim; ++k)
> for (unsigned int l = 0; l < dim; ++l)
> tmp[i][j][k][l] = (((i == k) && (j == l) ? mu : 0.0)
> + ((i == l) && (j == k) ? mu : 0.0)
> + ((i == j) && (k == l) ? lambda : 0.0));
> return tmp;
> }
>
> If I have such a tensor like the above from step-18. How am I able to 
> output it to the terminal?
>
> Any help is highly appreciated ;)
>
> Kind regards,
> S. A. Mohseni
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to