On 12/01/2017 01:29 PM, Juan Carlos Araujo Cabarcas wrote:

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.

Yes. You are now trying assign a `ZeroFunction<dim>` object's address to a FunctionMap<dim,PetscScalar>::type, but this wants the address of a complex-valued function. You need to use
  ZeroFunction<dim,PetscScalar>
now to explain to the compiler that you want a function that returns a std::complex (==PetscScalar)-typed zero, rather than a real-valued one.

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.

Reply via email to