[Carpet] [Carpet-darcs] Carpet: Make mode changing macros usable from outside the namespace Carpet

Erik Schnetter schnetter at cct.lsu.edu
Fri Oct 13 16:34:21 CEST 2006


On Oct 13, 2006, at 02:02:08, Luca Baiotti wrote:
> Hi Erik,
>
> can you briefly explain what is the difference wrt before and how  
> to use
> the new macros? (Or is it documented somewhere?)

The main difference of the patch you cited is that you do not need  
any more the #include "carpet.hh" before using the macros; you can  
just use them.

Another, earlier difference is that you now have to specify whether  
the looping macros should loop over grid functions or grid arrays.   
You write e.g.

BEGIN_LOCAL_COMPONENT_LOOP (cctkGH, CCTK_GF) {

   // code

} END_LOCAL_COMPONENT_LOOP;

to loop over grid functions, indicated by the new argument CCTK_GF.   
If you want to loop over grid arrays (or grid scalars), use  
CCTK_ARRAY instead.

Having this distinctions explicit allows more generic and more  
efficient processor distributions; it is now e.g. possible to have a  
different number of components (per patch) on each processor.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/developers/attachments/20061013/58fe0404/attachment.pgp 


More information about the developers mailing list