[firedrake] printing stuff
Cotter, Colin J
colin.cotter at imperial.ac.uk
Sat Nov 8 19:33:01 GMT 2014
Thanks! I just educated myself about Python decorators.
--cjc
________________________________
From: firedrake-bounces at imperial.ac.uk [firedrake-bounces at imperial.ac.uk] on behalf of David Ham [David.Ham at imperial.ac.uk]
Sent: 08 November 2014 19:11
To: firedrake
Subject: Re: [firedrake] printing stuff
You can use the firedrake.op2.MPI.rank_zero decorator to make a function which will only execute on rank 0.
On 8 November 2014 18:53, Cotter, Colin J <colin.cotter at imperial.ac.uk<mailto:colin.cotter at imperial.ac.uk>> wrote:
Dear Firedrakers,
What's the best way to modify a print statement so that only one MPI process does the print?
cheers
--cjc
--
Dr David Ham
Departments of Mathematics and Computing
Imperial College London
http://www.imperial.ac.uk/people/david.ham
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4891 bytes
Desc: not available
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20141108/cd6cc029/attachment.bin>
More information about the firedrake
mailing list