Dear Baerbel, Thank you for your reply, and sorry for the delay in replying. I defined my parameters as (private) doubles in the class. I then tried just calling them (after giving them values in the run () function )
Do you know if there is any example code passing parameters into the Meshwork integrator functions? Best wishes, Katie Leonard DPhil student in Computational Biology, The University of Oxford. ________________________________________ From: Bärbel Janssen [[email protected]] Sent: 03 January 2012 12:59 To: Katie Leonard Cc: [email protected] Subject: Re: [deal.II] Passing global parameters to Meshworker functions Dear Katie, it is possible to pass such parameter using MeshWorker. How did you try to pass the parameters? do you have a piece of code that shows the problem? Best, Baerbel -- Bärbel Janssen Institut für Angewandte Mathematik Universität Heidelberg Im Neuenheimer Feld 293, Raum 213 Telefon: +49 6221 54-5449 On Tue, 3 Jan 2012, Katie Leonard wrote: > Hello, > > Happy New Year! > > I am extending step-12 to include time dependency, and I would like to pass > global parameters, such as "time_step" - the size of the time step to the > integrate_cell_term, integrate_boundary_term and integrate_face_term. > However, I get the following error: > > In static member function ‘static void > Step12::AdvectionProblem<dim>::integrate_cell_term(Step12::AdvectionProblem<dim>::DoFInfo&, > Step12::AdvectionProblem<dim>::CellInfo&)’: > step-12.cc:288:28: error: invalid use of member > ‘Step12::AdvectionProblem<dim>::time_step’ in static member function > > I was wondering whether there is a way to do this in the Meshworker framework? > > Many thanks, > > > Katie Leonard > > DPhil student in Computational Biology, > The University of Oxford. > _______________________________________________ > dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii > _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
