[dune-pdelab] Time-dependent right hand side

conf86 at web.de conf86 at web.de
Fri Aug 21 23:56:33 CEST 2015


Hi,

I'm currently trying to solve an instationary equation with time-dependent right-hand side.
Therefore I tried to put 
 void setTime ( double t ) { time = t ; } in class ProblemTimeLocalOperator
like it is done in the course examples (example03_toperator.hh).

However, I get this error:

 /lib/include/dune/pdelab/gridoperator/default/localassembler.hh:115:9: error: request for member ‘setTime’ is ambiguous
          lop.setTime(time_);
          ^
 In file included from problem_operator.hh:8:0,
                  from problem.cc:61:
 /lib/include/dune/pdelab/localoperator/idefault.hh:104:18: note: candidates are: void Dune::PDELab::InstationaryLocalOperatorDefaultMethods<R>::setTime(R) [with R = double]
              void setTime (R t_)
                   ^
 In file included from problem.cc:61:0:
 problem_operator.hh:41:8: note:                 void ProblemTimeLocalOperator<BCType>::setTime(double) [with BCType = BCTypeParam]
      void setTime ( double t ) { time = t ; }


Another question is: Is this actually the right way to get time in order to put:
 RF f = c * time; 
or similar?
Unfortunately, there seems to be no explicit example for f (or other terms), only for the Dirichlet boundary conditions where it is used in this way with setTime().


Thank you in advance!




More information about the dune-pdelab mailing list