Hello,

thanks for the suggestion, certainly it helped but it is still appreciably slower.


Regards,

Lorenzo


On 19.02.2020 13:42, Gläser, Dennis wrote:

Hi Lorenzo,


are you using a parameter from the input file in your adsorption law, which you obtain via something like


auto param  = getParamFromGroup<Scalar>("SomeGroup", "SomeParam"); ?


Obtaining parameters from the tree is quite costly. In case you do so, make sure to obtain the parameter only once and reuse it.


Cheers,
Dennis


------------------------------------------------------------------------
*Von:* Dumux <dumux-boun...@listserv.uni-stuttgart.de> im Auftrag von lc <lorenzo.camp...@uniroma1.it>
*Gesendet:* Mittwoch, 19. Februar 2020 11:34:27
*An:* dumux@listserv.uni-stuttgart.de; Koch, Timo
*Betreff:* Re: [DuMuX] adsorption/desorption term
Good morning,

I did as suggested and I observe a remarkable slow down down of the
execution, keeping everything the same.

Is this due to the fact that we add a new term in the time derivative
and the system should be re-assembled?

Is it an expected behaviour?

I checked that this happens as soon as I "activate" the solidsystem. If
I comment it, it is as fast as usual.


Kind regards,

Lorenzo Campoli

On 17.02.2020 10:56, Timo Koch wrote:
> you implement a new LocalResidual class which inherits from the CompositionalLocalResidual and just overloads the computeStorage function. In the implementation of computeStorage you can call CompositionalLocalResidual::computeStorage first and then add your A(c) term to the storage.
>
> Then set the type of the property LocalResidual to your new class.

--
________________________________________________________
Le informazioni
contenute in questo messaggio di posta elettronica sono strettamente
riservate e indirizzate esclusivamente al destinatario. Si prega di non
leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non
si è il legittimo destinatario dello stesso. Qualora tale messaggio sia
stato ricevuto per errore, si prega di restituirlo al mittente e di
cancellarlo permanentemente dal proprio computer.

The information
contained in this e mail message is strictly confidential and intended for
the use of the addressee only.  If you are not the intended recipient,
please do not read, copy, forward or store it on your computer. If you have
received the message in error, please forward it back to the sender and
delete it permanently from your computer system.
_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

--
________________________________________________________
Le informazioni contenute in questo messaggio di posta elettronica sono strettamente riservate e indirizzate esclusivamente al destinatario. Si prega di non leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non si è il legittimo destinatario dello stesso. Qualora tale messaggio sia stato ricevuto per errore, si prega di restituirlo al mittente e di cancellarlo permanentemente dal proprio computer.

The information contained in this e mail message is strictly confidential and intended for the use of the addressee only.  If you are not the intended recipient, please do not read, copy, forward or store it on your computer. If you have received the message in error, please forward it back to the sender and delete it permanently from your computer system.
_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to