[ET Trac] [Einstein Toolkit] #753: prototype for CCTK_Barrier is wrong in reference manual

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue Feb 14 10:04:56 CST 2012


#753: prototype for CCTK_Barrier is wrong in reference manual
---------------------+------------------------------------------------------
  Reporter:  rhaas   |       Owner:               
      Type:  defect  |      Status:  new          
  Priority:  minor   |   Milestone:               
 Component:  Cactus  |     Version:               
Resolution:          |    Keywords:  documentation
---------------------+------------------------------------------------------

Comment (by rhaas):

 The prototype in CactusBase/Fortran/src/cctk_Comm.F90 is
 {{{
      subroutine CCTK_Barrier (ierr, GH)
        implicit none
        integer               ierr
        CCTK_POINTER_TO_CONST GH
      end subroutine CCTK_Barrier
 }}}
 so yes, it should be CCTK_POINTER_TO_CONST though I don't think that it
 makes a difference in Fortran since cctk_Types.h defines both CCTK_POINTER
 and CCTK_POINTER_TO_CONST to be the same thing (namely
 integer*SIZEOF_CHAR_P). It should be all uppercase, yes. Fortran would
 ignore the case but the C preprocessor does not. I amended the patch.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/753#comment:3>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list