From 293713d4a0581e352a588cc97f8c2f54faf82b2e Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 16 Oct 2018 00:03:01 +0200
Subject: [PATCH] Make sure the dummy velociraptor interface functions are
 never called.

---
 src/velociraptor_dummy.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/velociraptor_dummy.c b/src/velociraptor_dummy.c
index 9b364709b8..8f14a3230d 100644
--- a/src/velociraptor_dummy.c
+++ b/src/velociraptor_dummy.c
@@ -24,21 +24,31 @@
 #include <stddef.h>
 
 /* Local includes. */
+#include "error.h"
 #include "swift_velociraptor_part.h"
 #include "velociraptor_interface.h"
 
 /* Dummy VELOCIraptor interface for testing compilation without linking the
  * actual VELOCIraptor library. */
 #ifdef HAVE_DUMMY_VELOCIRAPTOR
+struct cosmoinfo {};
+struct unitinfo {};
+struct cell_loc {};
+struct siminfo {};
+
 int InitVelociraptor(char *config_name, char *output_name,
                      struct cosmoinfo cosmo_info, struct unitinfo unit_info,
                      struct siminfo sim_info) {
+
+  error("This is only a dummy. Call the real one!");
   return 0;
 }
 int InvokeVelociraptor(const size_t num_gravity_parts,
                        const size_t num_hydro_parts,
                        struct swift_vel_part *swift_parts,
                        const int *cell_node_ids, char *output_name) {
+
+  error("This is only a dummy. Call the real one!");
   return 0;
 }
 #endif /* HAVE_DUMMY_VELOCIRAPTOR */
-- 
GitLab