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
ec331260
Commit
ec331260
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Make the starformation none work with current runner.c
parent
8db7d74f
No related branches found
No related tags found
1 merge request
!705
Star formation following Schaye08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/starformation/none/starformation.h
+6
-4
6 additions, 4 deletions
src/starformation/none/starformation.h
src/starformation/schaye08/starformation.h
+1
-0
1 addition, 0 deletions
src/starformation/schaye08/starformation.h
with
7 additions
and
4 deletions
src/starformation/none/starformation.h
+
6
−
4
View file @
ec331260
...
...
@@ -31,6 +31,7 @@
#include
"parser.h"
#include
"equation_of_state.h"
#include
"error.h"
#include
"cell.h"
/* Starformation struct */
struct
star_formation
{};
...
...
@@ -46,7 +47,7 @@ struct star_formation {};
* @param cosmo the cosmological parameters and properties
*
* */
INLINE
static
int
starformation_
potential_to_become
_star
(
INLINE
static
int
star
_
formation_
convert_to
_star
(
const
struct
star_formation
*
starform
,
struct
part
*
restrict
p
,
const
struct
xpart
*
restrict
xp
,
const
struct
phys_const
*
const
phys_const
,
const
struct
cosmology
*
cosmo
){
...
...
@@ -63,9 +64,10 @@ INLINE static int starformation_potential_to_become_star(
* @param cosmo the cosmological properties
*
* */
INLINE
static
void
starformation_convert_to_gas
(
const
struct
star_formation
*
starform
,
const
struct
part
*
restrict
p
,
const
struct
xpart
*
restrict
xp
,
const
struct
cosmology
*
cosmo
)
{}
INLINE
static
void
star_formation_copy_properties
(
struct
engine
*
e
,
struct
cell
*
c
,
struct
part
*
p
,
struct
xpart
*
xp
,
const
struct
star_formation
*
starform
,
const
struct
phys_const
*
const
phys_const
,
const
struct
cosmology
*
cosmo
)
{}
/*
* @brief initialization of the star formation law
...
...
This diff is collapsed.
Click to expand it.
src/starformation/schaye08/starformation.h
+
1
−
0
View file @
ec331260
...
...
@@ -33,6 +33,7 @@
#include
"hydro.h"
#include
"cooling.h"
#include
"adiabatic_index.h"
#include
"cell.h"
/* Starformation struct */
struct
star_formation
{
...
...
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