On 11/30/2017 03:05 PM, Juan Carlos Araujo Cabarcas wrote:
When using the PETSc wrappers as in step-36 (installed with PetscScalar =
complex<double>) and using MappingCollection as discussed before. I now try:
|
//static std::map<types::global_dof_index, double> bval;
staticstd::map<types::global_dof_index,PetscScalar>bval;
This is unrelated to the error, but why do you make this variable `static`?
ZeroFunction<dim> homogeneous_dirichlet_bc;
consttypenameFunctionMap<dim>::type dirichlet_boundary_functions
={{types::boundary_id(0),&homogeneous_dirichlet_bc }};
If you use a map for `bval` that has complex-valued keys, then you also need
to use a FunctionMap<dim,PetscScalar>::type object here so that the boundary
functions are complex-valued as well.
In other words, the scalar type of the function object and of the boundary
values must match.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
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.