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
8c753eef
Commit
8c753eef
authored
1 year ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Fix usage of enum for the BH spin jet mode
parent
2ee33e27
No related branches found
No related tags found
2 merge requests
!1956
Rename space_getsid to space_getsid_and_swap_cells() to try to prevent...
,
!1921
Mhd canvas
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/black_holes/SPIN_JET/black_holes_part.h
+0
-8
0 additions, 8 deletions
src/black_holes/SPIN_JET/black_holes_part.h
src/tracers/EAGLE/tracers.h
+2
-1
2 additions, 1 deletion
src/tracers/EAGLE/tracers.h
src/tracers/EAGLE/tracers_struct.h
+8
-0
8 additions, 0 deletions
src/tracers/EAGLE/tracers_struct.h
with
10 additions
and
9 deletions
src/black_holes/SPIN_JET/black_holes_part.h
+
0
−
8
View file @
8c753eef
...
...
@@ -29,14 +29,6 @@
#include
"rays_struct.h"
#include
"timeline.h"
/*! The possible accretion modes every black hole can take. */
typedef
enum
BH_accretion_modes
{
BH_thick_disc
=
0
,
/* At low Eddington ratios */
BH_thin_disc
,
/* At moderate Eddington ratios */
BH_slim_disc
,
/* Super-Eddington accretion */
BH_accretion_modes_count
/* Number of possible accretion modes */
}
BH_accretion_modes
;
/**
* @brief Particle fields for the black hole particles.
*
...
...
This diff is collapsed.
Click to expand it.
src/tracers/EAGLE/tracers.h
+
2
−
1
View file @
8c753eef
...
...
@@ -326,7 +326,8 @@ static INLINE void tracers_after_black_holes_feedback(
static
INLINE
void
tracers_after_jet_feedback
(
const
struct
part
*
p
,
struct
xpart
*
xp
,
const
int
with_cosmology
,
const
float
scale_factor
,
const
double
time
,
const
double
delta_energy
,
const
float
vel_kick
,
BH_accretion_modes
accretion_mode
,
long
long
id
)
{
const
float
vel_kick
,
const
enum
BH_accretion_modes
accretion_mode
,
const
long
long
id
)
{
if
(
with_cosmology
)
xp
->
tracers_data
.
last_AGN_jet_feedback_scale_factor
=
scale_factor
;
...
...
This diff is collapsed.
Click to expand it.
src/tracers/EAGLE/tracers_struct.h
+
8
−
0
View file @
8c753eef
...
...
@@ -23,6 +23,14 @@
/* Local includes */
#include
"tracers_triggers.h"
/*! The possible accretion modes every black hole can take. */
enum
BH_accretion_modes
{
BH_thick_disc
=
0
,
/* At low Eddington ratios */
BH_thin_disc
,
/* At moderate Eddington ratios */
BH_slim_disc
,
/* Super-Eddington accretion */
BH_accretion_modes_count
/* Number of possible accretion modes */
};
/**
* @brief Properties of the tracers stored in the extended particle data.
*/
...
...
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