Thanks for your quick reply. I used static because it was used in one of the dealii steps. As there is no need for it, in the following it is removed.
I must admit that I am a bit lost here. However, I tried your suggestion and used: FunctionMap<dim,PetscScalar>::type, what gave the errors that I attach in errors.txt. By looking at those errors, I also tried: std::map<types::global_dof_index, const dealii::Function<dim, std::complex<double> > > bval; but it seems that this is not the root of the problem (I also attach these errors at the end of the same file). Any ideas? Thanks in advance. El viernes, 1 de diciembre de 2017, 8:09:26 (UTC-5), Wolfgang Bangerth escribió: > > 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: bang...@colostate.edu > <javascript:> > 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.
andres.alf...@correounivalle.edu.co