#2386: CCTK_LOOP3_INT and friends broken for Fortran OpenMP code
| Reporter: | Roland Haas |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | minor |
| Component: |
In http://lists.einsteintoolkit.org/pipermail/users/2020-February/007298.html @Miguel Zilhão reported that the CCTK_LOOP3_INT family macros cannot be used in Fortran using OpenMP:
i'm trying to use the CCTK_LOOP3_INT macro in a Fortran 90 code. following the example in
Carpet/TestLoopControl, i've done:
#include "cctk.h" #include "cctk_Arguments.h" #include "cctk_Parameters.h" #include "cctk_Functions.h" #include "loopcontrol.h" subroutine myroutine( CCTK_ARGUMENTS ) use loopcontrol implicit none DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS DECLARE_CCTK_FUNCTIONS CCTK_LOOP3_INT_DECLARE(int3) (...) CCTK_LOOP3_INT(int3, i, j, k) (...) CCTK_ENDLOOP3_INT(int3) end subroutine myroutine
this seems to work fine.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2386/cctk_loop3_int-and-friends-broken-for