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

Can now easily switch to the Minimal SPH implementation

parent 7bd5c53a
No related branches found
No related tags found
2 merge requests!136Master,!90Improved multi-timestep SPH
......@@ -28,12 +28,17 @@
#include "debug.h"
/* Import the right hydro definition */
#ifdef GADGET2_SPH
#if defined(MINIMAL_SPH)
#include "./hydro/Minimal/hydro_debug.h"
#elif defined(GADGET2_SPH)
#include "./hydro/Gadget2/hydro_debug.h"
#else
#elif defined(DEFAULT_SPH)
#include "./hydro/Default/hydro_debug.h"
#else
#error "Invalid choice of SPH variant"
#endif
/**
* @brief Looks for the particle with the given id and prints its information to
*the standard output.
......
......@@ -22,12 +22,17 @@
#include "./const.h"
/* Import the right functions */
#ifdef GADGET2_SPH
#include "./hydro/Gadget2/hydro.h"
#if defined(MINIMAL_SPH)
#include "./hydro/Minimal/hydro_iact.h"
#include "./hydro/Minimal/hydro.h"
#elif defined(GADGET2_SPH)
#include "./hydro/Gadget2/hydro_iact.h"
#else
#include "./hydro/Default/hydro.h"
#include "./hydro/Gadget2/hydro.h"
#elif defined(DEFAULT_SPH)
#include "./hydro/Default/hydro_iact.h"
#include "./hydro/Default/hydro.h"
#else
#error "Invalid choice of SPH variant"
#endif
#endif
#endif /* SWIFT_HYDRO_H */
......@@ -22,10 +22,14 @@
#include "./const.h"
/* Import the right functions */
#ifdef GADGET2_SPH
#if defined(MINIMAL_SPH)
#include "./hydro/Minimal/hydro_io.h"
#elif defined(GADGET2_SPH)
#include "./hydro/Gadget2/hydro_io.h"
#else
#elif defined(DEFAULT_SPH)
#include "./hydro/Default/hydro_io.h"
#else
#error "Invalid choice of SPH variant"
#endif
#endif
#endif /* SWIFT_HYDRO_IO_H */
......@@ -38,10 +38,14 @@
#define xpart_align 32
/* Import the right particle definition */
#ifdef GADGET2_SPH
#if defined(MINIMAL_SPH)
#include "./hydro/Minimal/hydro_part.h"
#elif defined(GADGET2_SPH)
#include "./hydro/Gadget2/hydro_part.h"
#else
#elif defined(DEFAULT_SPH)
#include "./hydro/Default/hydro_part.h"
#else
#error "Invalid choice of SPH variant"
#endif
#include "./gravity/Default/gravity_part.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment