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
ede26e38
Commit
ede26e38
authored
2 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Plain Diff
Merge branch 'GEARRT_small_fix' into 'master'
GEARRT tiny fix. See merge request
!1648
parents
f200b0dc
d3b1994c
No related branches found
No related tags found
5 merge requests
!1715
Update planetary strength after planetary plus's master rebase
,
!1693
More threapool plotting tweaks
,
!1668
before Mag.Egy in all the flavors
,
!1662
Initial sync from previous months
,
!1648
GEARRT tiny fix.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/RTD/source/RadiativeTransfer/GEAR_RT.rst
+1
-1
1 addition, 1 deletion
doc/RTD/source/RadiativeTransfer/GEAR_RT.rst
src/rt/GEAR/rt_thermochemistry_utils.h
+6
-6
6 additions, 6 deletions
src/rt/GEAR/rt_thermochemistry_utils.h
with
7 additions
and
7 deletions
doc/RTD/source/RadiativeTransfer/GEAR_RT.rst
+
1
−
1
View file @
ede26e38
...
...
@@ -30,7 +30,7 @@ Compiling for GEAR RT
you to select a hydro Riemann solver, e.g ``--with-riemann-solver=hllc``.
- The thermochemistry requires the `grackle <https://github.com/grackle-project/grackle>`_
library. Grackle is a chemistry and cooling library presented in
library
version 3.2
. Grackle is a chemistry and cooling library presented in
`B. Smith et al. 2017 <https://ui.adsabs.harvard.edu/abs/2017MNRAS.466.2217S>`_.
Please note that the current implementation is not (yet) as
advanced as the :ref:`GEAR subgrid model grackle cooling <gear_grackle_cooling>`,
...
...
This diff is collapsed.
Click to expand it.
src/rt/GEAR/rt_thermochemistry_utils.h
+
6
−
6
View file @
ede26e38
...
...
@@ -239,17 +239,17 @@ rt_tchem_set_particle_radiation_field_for_test(
const
double
time_to_cgs
=
units_cgs_conversion_factor
(
us
,
UNIT_CONV_TIME
);
const
double
t_Myr
=
time
*
time_to_cgs
/
(
3600
.
*
24
.
*
365
.
*
1e6
);
double
fixed_fluxes
[
RT_NGROUPS
];
for
(
int
g
=
0
;
g
<
RT_NGROUPS
;
g
++
)
fixed_fluxes
[
g
]
=
0
.;
/* NOTE: this assumes that the test is set up with 3 photon groups. */
double
fixed_fluxes
[
3
];
for
(
int
g
=
0
;
g
<
3
;
g
++
)
fixed_fluxes
[
g
]
=
0
.;
if
(
t_Myr
<
0
.
5
)
{
/* Be vocal, just in case somebody forgets you exist. */
if
(
p
->
id
==
1
)
message
(
"Setting fixed radiation field."
);
/* Set fixed radiation fields, in cgs*/
fixed_fluxes
[
0
]
=
0
.;
fixed_fluxes
[
1
]
=
1.350e01
;
fixed_fluxes
[
2
]
=
2.779e01
;
fixed_fluxes
[
3
]
=
6.152e00
;
fixed_fluxes
[
0
]
=
1.350e01
;
fixed_fluxes
[
1
]
=
2.779e01
;
fixed_fluxes
[
2
]
=
6.152e00
;
}
const
double
flux_to_cgs
=
...
...
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