Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
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
PySWIFTsim
Commits
7677f1a2
Commit
7677f1a2
authored
7 years ago
by
lhausamm
Browse files
Options
Downloads
Patches
Plain Diff
Fix merge
parent
5acd1c4c
No related branches found
No related tags found
1 merge request
!3
Grackle3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pyswiftsim/structure.py
+1
-1
1 addition, 1 deletion
pyswiftsim/structure.py
src/cooling_wrapper.c
+1
-6
1 addition, 6 deletions
src/cooling_wrapper.c
test/test_cooling.py
+0
-1
0 additions, 1 deletion
test/test_cooling.py
with
2 additions
and
8 deletions
pyswiftsim/structure.py
+
1
−
1
View file @
7677f1a2
...
...
@@ -531,7 +531,7 @@ class CoolingFunctionData(SwiftStruct):
}
units
=
{
"
class
"
:
GrackleUnits
,
"
class
"
:
Grackle
Code
Units
,
"
size
"
:
1
}
return
{
...
...
This diff is collapsed.
Click to expand it.
src/cooling_wrapper.c
+
1
−
6
View file @
7677f1a2
...
...
@@ -94,17 +94,13 @@ PyArrayObject* pycooling_rate(PyObject* self, PyObject* args) {
struct
xpart
xp
;
#ifdef COOLING_GRACKLE
/* set grackle_data */
grackle_data
=
&
cooling
->
chemistry
;
#endif
/* return object */
PyArrayObject
*
rate
=
PyArray_NewLikeArray
(
energy
,
NPY_ANYORDER
,
NULL
,
1
);
#ifdef COOLING_GRACKLE
/* set grackle_data */
grackle_data
=
&
cooling
->
chemistry
;
#endif
/* loop over all particles */
for
(
size_t
i
=
0
;
i
<
N
;
i
++
)
{
...
...
@@ -122,7 +118,6 @@ PyArrayObject* pycooling_rate(PyObject* self, PyObject* args) {
#else
*
tmp
=
cooling_rate
(
pconst
,
us
,
cooling
,
&
p
,
&
xp
);
#endif
return
rate
;
}
return
rate
;
...
...
This diff is collapsed.
Click to expand it.
test/test_cooling.py
+
0
−
1
View file @
7677f1a2
...
...
@@ -77,7 +77,6 @@ dt /= us.UnitTime_in_cgs
#
# du / dt
print
(
cooling
)
print
(
"
Computing cooling...
"
)
rate
=
wrapper
.
coolingRate
(
pconst
,
us
,
cooling
,
rho
.
astype
(
np
.
float32
),
...
...
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