Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Volker Springel
Gadget4
Commits
c0893df3
Commit
c0893df3
authored
Jul 08, 2021
by
Volker Springel
Browse files
fix in timestep criterion for star formation
parent
8ee7f358
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/time_integration/timestep.cc
View file @
c0893df3
...
...
@@ -323,7 +323,8 @@ integertime simparticles::get_timestep_hydro(int p /*!< particle index */)
{
if
(
SphP
[
p
].
Sfr
>
0
)
{
double
dt_sfr
=
0.1
*
P
[
p
].
getMass
()
/
SphP
[
p
].
Sfr
;
double
dt_sfr
=
0.1
*
P
[
p
].
getMass
()
/
(
SphP
[
p
].
Sfr
/
((
All
.
UnitMass_in_g
/
SOLAR_MASS
)
/
(
All
.
UnitTime_in_s
/
SEC_PER_YEAR
)));
if
(
dt_sfr
<
dt
)
dt
=
dt_sfr
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment