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
915c6fbd
Commit
915c6fbd
authored
Oct 20, 2016
by
Matthieu Schaller
Browse files
No unwanted changes
parent
b740f32d
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/cell.h
View file @
915c6fbd
...
...
@@ -5,7 +5,6 @@
* 2015 Peter W. Draper (p.w.draper@durham.ac.uk)
* 2016 John A. Regan (john.a.regan@durham.ac.uk)
* Tom Theuns (tom.theuns@durham.ac.uk)
* Stefan Arridge (stefan.arridge@durham.ac.uk)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
...
...
src/space.c
View file @
915c6fbd
...
...
@@ -1814,11 +1814,8 @@ void space_init(struct space *s, const struct swift_params *params,
}
else
{
for
(
size_t
k
=
0
;
k
<
Npart
;
k
++
)
for
(
int
j
=
0
;
j
<
3
;
j
++
)
if
(
parts
[
k
].
x
[
j
]
<
0
||
parts
[
k
].
x
[
j
]
>=
dim
[
j
])
{
printf
(
"parts[%lld].x[%d] = %f , dim[%d] = %f
\n
"
,
k
,
j
,
parts
[
k
].
x
[
j
],
j
,
dim
[
j
]);
if
(
parts
[
k
].
x
[
j
]
<
0
||
parts
[
k
].
x
[
j
]
>=
dim
[
j
])
error
(
"Not all particles are within the specified domain."
);
}
}
/* Same for the gparts */
...
...
src/task.c
View file @
915c6fbd
...
...
@@ -39,6 +39,7 @@
/* This object's header. */
#include
"task.h"
/* Local headers. */
#include
"atomic.h"
#include
"error.h"
...
...
src/task.h
View file @
915c6fbd
...
...
@@ -53,7 +53,6 @@ enum task_types {
task_type_grav_fft
,
task_type_grav_mm
,
task_type_grav_up
,
task_type_grav_external
,
task_type_cooling
,
task_type_sourceterms
,
task_type_count
...
...
src/units.c
View file @
915c6fbd
...
...
@@ -320,6 +320,9 @@ void units_get_base_unit_exponants_array(float baseUnitsExp[5],
case
UNIT_CONV_VOLUME
:
baseUnitsExp
[
UNIT_LENGTH
]
=
3
.
f
;
case
UNIT_CONV_INV_VOLUME
:
baseUnitsExp
[
UNIT_LENGTH
]
=
-
3
.
f
;
}
}
...
...
src/units.h
View file @
915c6fbd
...
...
@@ -59,7 +59,6 @@ enum BaseUnits {
UNIT_LENGTH
=
1
,
UNIT_TIME
=
2
,
UNIT_CURRENT
=
3
,
UNIT_TEMPERATURE
=
4
};
...
...
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