Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
984a96e0
Commit
984a96e0
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Can now easily switch to the Minimal SPH implementation
parent
7bd5c53a
No related branches found
No related tags found
2 merge requests
!136
Master
,
!90
Improved multi-timestep SPH
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/debug.c
+7
-2
7 additions, 2 deletions
src/debug.c
src/hydro.h
+10
-5
10 additions, 5 deletions
src/hydro.h
src/hydro_io.h
+7
-3
7 additions, 3 deletions
src/hydro_io.h
src/part.h
+6
-2
6 additions, 2 deletions
src/part.h
with
30 additions
and
12 deletions
src/debug.c
+
7
−
2
View file @
984a96e0
...
...
@@ -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"
#el
se
#el
if 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.
...
...
This diff is collapsed.
Click to expand it.
src/hydro.h
+
10
−
5
View file @
984a96e0
...
...
@@ -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 */
This diff is collapsed.
Click to expand it.
src/hydro_io.h
+
7
−
3
View file @
984a96e0
...
...
@@ -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"
#el
se
#el
if defined(DEFAULT_SPH)
#include
"./hydro/Default/hydro_io.h"
#else
#error "Invalid choice of SPH variant"
#endif
#endif
#endif
/* SWIFT_HYDRO_IO_H */
This diff is collapsed.
Click to expand it.
src/part.h
+
6
−
2
View file @
984a96e0
...
...
@@ -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"
#el
se
#el
if defined(DEFAULT_SPH)
#include
"./hydro/Default/hydro_part.h"
#else
#error "Invalid choice of SPH variant"
#endif
#include
"./gravity/Default/gravity_part.h"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment