diff options
Diffstat (limited to 'src/comm')
-rw-r--r-- | src/comm/OverloadComm.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/comm/OverloadComm.c b/src/comm/OverloadComm.c index 9d0b80da..81edab77 100644 --- a/src/comm/OverloadComm.c +++ b/src/comm/OverloadComm.c @@ -110,10 +110,18 @@ int CCTKi_SetupCommFunctions(void) /* Fortran bindings prototypes for the comm functions */ int CCTK_FCALL CCTK_FNAME (CCTK_nProcs) (const cGH *GH); int CCTK_FCALL CCTK_FNAME (CCTK_MyProc) (const cGH *GH); +#if 0 void CCTK_FCALL CCTK_FNAME (CCTK_Barrier) (int *ierr, const cGH *GH); +#else +int CCTK_FCALL CCTK_FNAME(CCTK_Barrier)(const cGH *GH); +#endif void CCTK_FCALL CCTK_FNAME (CCTK_Exit) (int *ierr, cGH *GH, const int *retval); void CCTK_FCALL CCTK_FNAME (CCTK_Abort) (int *ierr, cGH *GH, const int *retval); +#if 0 void CCTK_FCALL CCTK_FNAME (CCTK_SyncGroup) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG); +#else +int CCTK_FCALL CCTK_FNAME(CCTK_SyncGroup)(cGH *GH, ONE_FORTSTRING_ARG); +#endif void CCTK_FCALL CCTK_FNAME (CCTK_EnableGroupComm) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG); void CCTK_FCALL CCTK_FNAME (CCTK_DisableGroupComm) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG); void CCTK_FCALL CCTK_FNAME (CCTK_EnableGroupStorage) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG); @@ -131,10 +139,17 @@ int CCTK_FCALL CCTK_FNAME (CCTK_MyProc) (const cGH *GH) return (CCTK_MyProc (GH)); } +#if 0 void CCTK_FCALL CCTK_FNAME (CCTK_Barrier) (int *ierr, const cGH *GH) { *ierr = CCTK_Barrier (GH); } +#else +int CCTK_FCALL CCTK_FNAME(CCTK_Barrier)(const cGH *GH) +{ + return CCTK_Barrier(GH); +} +#endif void CCTK_FCALL CCTK_FNAME (CCTK_Exit) (int *ierr, cGH *GH, const int *retval) { @@ -146,12 +161,22 @@ void CCTK_FCALL CCTK_FNAME (CCTK_Abort) (int *ierr, cGH *GH, const int *retval) *ierr = CCTK_Abort (GH, *retval); } +#if 0 void CCTK_FCALL CCTK_FNAME (CCTK_SyncGroup) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG) { ONE_FORTSTRING_CREATE (group_name) *ierr = CCTK_SyncGroup (GH, group_name); free (group_name); } +#else +int CCTK_FCALL CCTK_FNAME(CCTK_SyncGroup)(cGH *GH, ONE_FORTSTRING_ARG) +{ + ONE_FORTSTRING_CREATE(group_name) + CCTK_SyncGroup(GH,group_name); + free(group_name); + return 0; +} +#endif void CCTK_FCALL CCTK_FNAME (CCTK_EnableGroupComm) (int *ierr, cGH *GH, ONE_FORTSTRING_ARG) { |