summaryrefslogtreecommitdiff
path: root/src/main/rfrInterface.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-12 08:57:06 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-12 08:57:06 +0000
commit87de4caddefc329aac654d88e0df52f55ab3e97e (patch)
treed634ba96faafc82413d0444c63465c2d3b62aa32 /src/main/rfrInterface.c
parentc38485bf0661d6e765da02adf9072d0091b555ee (diff)
Wrote the enable and disable rfr functions and register them rather than
the dummy ones. All these functions are now in rfrInterface.c Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@240 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/rfrInterface.c')
-rw-r--r--src/main/rfrInterface.c112
1 files changed, 112 insertions, 0 deletions
diff --git a/src/main/rfrInterface.c b/src/main/rfrInterface.c
index cac52f42..7f74b29b 100644
--- a/src/main/rfrInterface.c
+++ b/src/main/rfrInterface.c
@@ -9,6 +9,8 @@
#include "flesh.h"
#include "GHExtensions.h"
+#include "Groups.h"
+#include "CactusrfrInterface.h"
static char *rcsid = "$Id$";
@@ -35,3 +37,113 @@ int CCTK_rfrTraverse(cGH *GH, int rfrpoint)
return 0;
}
+
+
+int CCTK_rfrStorageOn(void *GH, int group)
+{
+ int retcode;
+ char *group_name;
+
+ group_name = CCTK_GetGroupName(group);
+ if(group_name)
+ {
+ retcode = CCTK_EnableGroupStorage(GH, group_name);
+
+ free(group_name);
+ }
+ else
+ {
+ retcode = 0;
+ }
+
+ return retcode;
+}
+
+int CCTK_rfrStorageOff(void *GH, int group)
+{
+ int retcode;
+ char *group_name;
+
+ group_name = CCTK_GetGroupName(group);
+ if(group_name)
+ {
+ retcode = CCTK_DisableGroupStorage(GH, group_name);
+
+ free(group_name);
+ }
+ else
+ {
+ retcode = 0;
+ }
+
+ return retcode;
+}
+
+int CCTK_rfrCommunicationOn(void *GH, int group)
+{
+ int retcode;
+ char *group_name;
+
+ group_name = CCTK_GetGroupName(group);
+ if(group_name)
+ {
+ retcode = CCTK_EnableGroupComm(GH, group_name);
+
+ free(group_name);
+ }
+ else
+ {
+ retcode = 0;
+ }
+
+ return retcode;
+}
+
+int CCTK_rfrCommunicationOff(void *GH, int group)
+{
+ int retcode;
+ char *group_name;
+
+ group_name = CCTK_GetGroupName(group);
+ if(group_name)
+ {
+ retcode = CCTK_DisableGroupComm(GH, group_name);
+
+ free(group_name);
+ }
+ else
+ {
+ retcode = 0;
+ }
+
+ return retcode;
+}
+
+int CCTK_rfrTriggerable(int variable)
+{
+ return 0;
+}
+
+int CCTK_rfrTriggerSaysGo(int variable)
+{
+ return 0;
+}
+
+int CCTK_rfrTriggerAction(void *GH, int group)
+{
+ return 0;
+}
+
+int CCTK_rfrCallFunc(void *GH, int language, void *function)
+{
+
+ void (*calledfunc)(void *);
+
+ calledfunc = (void (*)(void *))function;
+
+ /* Call the function. */
+
+ calledfunc(GH);
+
+ return 0;
+}