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
4bc1b1bf
Commit
4bc1b1bf
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Debug: Fix spelling error in variable name and update engine_init to include struct star_formation
parent
f5df308d
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/engine.h
+1
-0
1 addition, 0 deletions
src/engine.h
src/starformation/none/starformation.h
+4
-4
4 additions, 4 deletions
src/starformation/none/starformation.h
with
5 additions
and
4 deletions
src/engine.h
+
1
−
0
View file @
4bc1b1bf
...
...
@@ -416,6 +416,7 @@ void engine_init(struct engine *e, struct space *s, struct swift_params *params,
struct
pm_mesh
*
mesh
,
const
struct
external_potential
*
potential
,
struct
cooling_function_data
*
cooling_func
,
const
struct
star_formation
*
starform
,
const
struct
chemistry_global_data
*
chemistry
);
void
engine_config
(
int
restart
,
struct
engine
*
e
,
struct
swift_params
*
params
,
int
nr_nodes
,
int
nodeID
,
int
nr_threads
,
int
with_aff
,
...
...
This diff is collapsed.
Click to expand it.
src/starformation/none/starformation.h
+
4
−
4
View file @
4bc1b1bf
...
...
@@ -47,8 +47,8 @@ struct star_formation {};
*
* */
int
starformation_potential_to_become_star
(
const
struct
star_formation
*
starform
,
struct
part
s
*
restrict
p
,
const
struct
xpart
s
*
restrict
xp
,
const
struct
phys_const
*
const
phys_const
,
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
){
return
0
;
...
...
@@ -64,8 +64,8 @@ int starformation_potential_to_become_star(
*
* */
void
starformation_convert_to_gas
(
const
struct
star_formation
*
starform
,
const
struct
part
s
*
restrict
p
,
const
struct
xpart
s
*
restrict
xp
,
const
struct
cosmology
*
cosmo
)
{}
const
struct
star_formation
*
starform
,
const
struct
part
*
restrict
p
,
const
struct
xpart
*
restrict
xp
,
const
struct
cosmology
*
cosmo
)
{}
/*
* @brief initialization of the star formation law
...
...
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