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
8a07c59a
Commit
8a07c59a
authored
May 21, 2017
by
James Willis
Browse files
Updates after merging with master.
parent
9ebfdd79
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
8a07c59a
...
...
@@ -807,11 +807,11 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec(
vector
v_hi
,
v_vix
,
v_viy
,
v_viz
,
v_hig2
,
v_r2
;
vector
v_rhoi
,
v_grad_hi
,
v_pOrhoi2
,
v_balsara_i
,
v_ci
;
//
TIMER_TIC
TIMER_TIC
if
(
!
cell_is_active
(
c
,
e
))
return
;
if
(
!
cell_
is
_drifted
(
c
,
e
))
cell_drift_particles
(
c
,
e
);
if
(
!
cell_
are_part
_drifted
(
c
,
e
))
error
(
"Interacting undrifted cell."
);
/* Get the particle cache from the runner and re-allocate
* the cache if it is not big enough for the cell. */
...
...
tests/test125cells.c
View file @
8a07c59a
...
...
@@ -635,12 +635,6 @@ int main(int argc, char *argv[]) {
hydro_init_part
(
&
cells
[
i
]
->
parts
[
n
],
&
space
.
hs
);
}
/* Reset particles. */
for
(
int
i
=
0
;
i
<
125
;
++
i
)
{
for
(
int
n
=
0
;
n
<
cells
[
i
]
->
count
;
++
n
)
hydro_init_part
(
&
cells
[
i
]
->
parts
[
n
],
&
space
.
hs
);
}
/* First, sort stuff */
for
(
int
j
=
0
;
j
<
125
;
++
j
)
runner_do_sort
(
&
runner
,
cells
[
j
],
0x1FFF
,
0
);
...
...
@@ -735,12 +729,6 @@ int main(int argc, char *argv[]) {
outputFileNameExtension
);
dump_particle_fields
(
outputFileName
,
main_cell
,
solution
,
0
);
}
/* Reset stuff */
for
(
int
i
=
0
;
i
<
125
;
++
i
)
{
for
(
int
n
=
0
;
n
<
cells
[
i
]
->
count
;
++
n
)
hydro_init_part
(
&
cells
[
i
]
->
parts
[
n
],
&
space
.
hs
);
}
}
for
(
size_t
n
=
0
;
n
<
100
*
runs
;
++
n
)
{
...
...
tests/test125cellsPerturbed.sh
View file @
8a07c59a
...
...
@@ -7,18 +7,26 @@ do
rm
-f
brute_force_125_perturbed.dat swift_dopair_125_perturbed.dat
echo
"./test125cells -n 6 -r 1 -d 0.1 -v
$v
-p
$p
-f perturbed"
echo
"Running ./test125cells -n 6 -r 1 -d 0.1 -v
$v
-p
$p
-f perturbed"
./test125cells
-n
6
-r
1
-d
0.1
-v
$v
-p
$p
-f
perturbed
if
[
-e
brute_force_125_perturbed.dat
]
then
python ./difffloat.py brute_force_125_perturbed.dat swift_dopair_125_perturbed.dat ./tolerance_125_perturbed.dat 6
if
python ./difffloat.py brute_force_125_perturbed.dat swift_dopair_125_perturbed.dat ./tolerance_125_perturbed.dat 6
then
echo
"Accuracy test passed"
else
echo
"Accuracy test failed"
exit
1
fi
else
echo
"Error Missing test output file"
exit
1
fi
echo
"------------"
done
done
exit
$?
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