[ET Trac] [Einstein Toolkit] #223: Make declaration of CCTK_ARGUMENTS safer

Einstein Toolkit trac-noreply at einsteintoolkit.org
Thu Jan 20 16:09:55 CST 2011


#223: Make declaration of CCTK_ARGUMENTS safer
-------------------------+--------------------------------------------------
 Reporter:  eschnett     |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  minor        |   Milestone:     
Component:  Cactus       |     Version:     
 Keywords:               |  
-------------------------+--------------------------------------------------
 I suggest to change the declaration of CCTK_ARGUMENTS in C from

 cGH * cctkGH

 to

 cGH const * CCTK_RESTRICT const cctkGH

 which should lead to safer code and may even enable some optimisations.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/223>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list