[dune-fem] Fem timer

Andreas Dedner a.s.dedner at warwick.ac.uk
Wed Apr 15 17:16:09 CEST 2015


Hi
Perhaps you could provide a small demo cc file?
Andreas


On 15/04/15 16:05, Agnese, Marco wrote:
> Hi Tobias,
>
> I have
>
> #define FEMTIMER 1
>
> at the beginning of my code.
>
> I don't understand why the print() doesn't output anything.
>
> Cheers,
> Marco.
> ________________________________________
> From: Tobias Malkmus [tomalk at mathematik.uni-freiburg.de]
> Sent: Wednesday, April 15, 2015 3:46 PM
> To: Agnese, Marco; dune-fem at dune-project.org
> Subject: Re: [dune-fem] Fem timer
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Marco
>
> The FemTimer is deactivated by default, you can enable it by defining
> the macro FEMTIMER.
>
> Best Tobias
>
> On 04/15/2015 03:42 PM, Agnese, Marco wrote:
>> Hi, I am trying to use the FemTimer without success.
>>
>> My code is something like
>>
>> FemTimer femTimer; const unsigned int
>> timerID(femTimer.addTo("Compute timer",1));
>> femTimer.start(timerID);
>>
>> femTimer.start(timerID,1); // do something
>> femTimer.stop(timerID,1);
>>
>> femTimer.stop(timerID); femTimer.print(std::cout);
>> femTimer.reset(timerID);
>>
>> It compiles correctly but, when I run the code, I don't see any
>> FemTimer output on my terminal. What am I doing wrong?
>>
>> Thank you very much, regards, Marco.
>> _______________________________________________ dune-fem mailing
>> list dune-fem at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune-fem
>>
>
> - --
> Tobias Malkmus                 <tomalk at mathematik.uni-freiburg.de>
>
> Mathematisches Institut               Tel: +49 761 203 5627
> Abt. für Angewandte Mathematik        Universität Freiburg
> Hermann-Herder-Str. 10
> 79104 Freiburg
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBAgAGBQJVLnnGAAoJEBMY7DHvcWNgIsoH/3/ls+XcIMDxCrsDQG2Sz4Dq
> AA8snjTeglRiyoMNzZuoKOvJfWHmXSLLD6meeesYmz68pSUWbmayhamEmhmlLkSV
> 0+bE8wAlbr2A6u/DEy9I2rVastX1jQvOXqhwmQot/kf8afdc3Hopoy6AUtTxUK+k
> 7n5JspSzryYgtkmH4tAnkFpHF8+xXcIk3tN/RlmGz9Z1NPHdDeqxmh9ikppjFrCo
> +blPDklz627oyS5w3B46YWTWlcYfedZDdJVK5PSOHN3d38UTjMHg4ISLrov7pOds
> i2Gvli4c2usHjHdohSxql8/VEtb2EISrdEWpWtw8WJW7JD9W98rItMEJTbrhH5Y=
> =jvS5
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> dune-fem mailing list
> dune-fem at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-fem





More information about the dune-fem mailing list