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
SWIFT
SWIFTsim
Commits
86869b5a
Commit
86869b5a
authored
Nov 02, 2017
by
lhausamm
Browse files
Improve still of grackle
parent
2c2d1f34
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
86869b5a
...
...
@@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTOMAKE_OPTIONS
=
subdir-objects
# Add the debug flag to the whole thing
AM_CFLAGS
=
$(HDF5_CPPFLAGS)
...
...
src/cooling/grackle/cooling.h
View file @
86869b5a
...
...
@@ -218,7 +218,7 @@ static INLINE void cooling_init_backend(
printf
(
" CloudyTable = %s
\n
"
,
cloudytable
);
printf
(
" UVbackground = %d
\n
"
,
UVbackground
);
printf
(
" GrackleRedshift = %g
\n
"
,
cooling
->
GrackleRedshift
);
printf
(
" GrackleHSShieldingDensityThreshold = %g
\n
"
,
cooling
->
GrackleHSShieldingDensityThreshold
);
printf
(
" GrackleHSShieldingDensityThreshold = %g
atom/cc
\n
"
,
cooling
->
GrackleHSShieldingDensityThreshold
);
if
(
wrap_init_cooling
(
cloudytable
,
UVbackground
,
units_density
,
units_length
,
units_time
,
grackle_chemistry
)
!=
1
)
...
...
src/cooling/grackle/grackle_wrapper.c
View file @
86869b5a
...
...
@@ -36,6 +36,10 @@ const int grid_rank = 1;
int
wrap_init_cooling
(
char
*
CloudyTable
,
int
UVbackground
,
double
udensity
,
double
ulength
,
double
utime
,
int
grackle_chemistry
){
#ifdef GRACKLE_DEBUG
grackle_verbose
=
1
;
#endif
message
(
"cooling"
);
double
velocity_units
;
// First, set up the units system.
...
...
src/cooling/grackle/grackle_wrapper.h
View file @
86869b5a
...
...
@@ -14,6 +14,7 @@
#define SWIFT_COOLING_GRACKLE_WRAPPER_H
#include
"config.h"
#include
"error.h"
#include
<grackle.h>
#include
<math.h>
#include
<stdio.h>
...
...
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