Skip to content
Snippets Groups Projects
Commit 293713d4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make sure the dummy velociraptor interface functions are never called.

parent 3b217cd1
No related branches found
No related tags found
No related merge requests found
...@@ -24,21 +24,31 @@ ...@@ -24,21 +24,31 @@
#include <stddef.h> #include <stddef.h>
/* Local includes. */ /* Local includes. */
#include "error.h"
#include "swift_velociraptor_part.h" #include "swift_velociraptor_part.h"
#include "velociraptor_interface.h" #include "velociraptor_interface.h"
/* Dummy VELOCIraptor interface for testing compilation without linking the /* Dummy VELOCIraptor interface for testing compilation without linking the
* actual VELOCIraptor library. */ * actual VELOCIraptor library. */
#ifdef HAVE_DUMMY_VELOCIRAPTOR #ifdef HAVE_DUMMY_VELOCIRAPTOR
struct cosmoinfo {};
struct unitinfo {};
struct cell_loc {};
struct siminfo {};
int InitVelociraptor(char *config_name, char *output_name, int InitVelociraptor(char *config_name, char *output_name,
struct cosmoinfo cosmo_info, struct unitinfo unit_info, struct cosmoinfo cosmo_info, struct unitinfo unit_info,
struct siminfo sim_info) { struct siminfo sim_info) {
error("This is only a dummy. Call the real one!");
return 0; return 0;
} }
int InvokeVelociraptor(const size_t num_gravity_parts, int InvokeVelociraptor(const size_t num_gravity_parts,
const size_t num_hydro_parts, const size_t num_hydro_parts,
struct swift_vel_part *swift_parts, struct swift_vel_part *swift_parts,
const int *cell_node_ids, char *output_name) { const int *cell_node_ids, char *output_name) {
error("This is only a dummy. Call the real one!");
return 0; return 0;
} }
#endif /* HAVE_DUMMY_VELOCIRAPTOR */ #endif /* HAVE_DUMMY_VELOCIRAPTOR */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment