Skip to content

Commit e04527c

Browse files
committed
that's all of them, I think
1 parent bacb301 commit e04527c

5 files changed

Lines changed: 9 additions & 19 deletions

File tree

src/amuse_mi6/src/Vector3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Vector3
114114
}
115115

116116
inline Vector3& operator /= (const double b){
117-
const double binv = 1.0/b;
117+
register double binv = 1.0/b;
118118
v[0] *= binv; v[1] *= binv; v[2] *= binv;
119119
return *this;
120120
}

src/amuse_petar/Makefile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,11 @@ install-%: %_contains
108108
package-%: %_contains
109109
python3 -m pip install -vv --no-cache-dir --no-deps --no-build-isolation --prefix ${PREFIX} packages/$*
110110

111-
112-
# The tests use up to 5 workers, each of which will use all the cores via OpenMP,
113-
# slowing things down enormously. By limiting the number of threads, the tests
114-
# run in a reasonable time at least on my 8C/16T laptop.
115111
test-%:
116-
ifneq ($(CI),)
117-
cd packages/$* && OMP_NUM_THREADS=1 pytest -k 'not noci'
118-
else
112+
# The tests use up to 5 workers, each of which will use all the cores via OpenMP,
113+
# slowing things down enormously. By limiting the number of threads, the tests
114+
# run in a reasonable time at least on my 8C/16T laptop.
119115
cd packages/$* && OMP_NUM_THREADS=2 pytest
120-
endif
121116

122117

123118
# Cleaning up

src/amuse_petar/tests/test_petar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_reversed_time_allowed(self):
3131

3232

3333
class TestPetar(TestWithMPI):
34-
def test_small_plummer_model_noci(self):
34+
def test_small_plummer_model(self):
3535
particles = plummer.new_plummer_model(31)
3636

3737
instance = Petar(number_of_workers=1) # , debugger="xterm")

support/setup/installing.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ install_framework() {
8383
fi
8484
done
8585
if [ -n "${to_install}" ] ; then
86-
conda install -c conda-forge --override-channels -y ${to_install}
86+
conda install -y ${to_install}
8787
fi
8888
fi
8989

@@ -187,20 +187,16 @@ install_package() {
187187
check_package "${package}"
188188

189189
if ! is_subset "amuse-framework" "${INSTALLED_PACKAGES}" ; then
190-
save_cmd="${cmd}"
191190
save_package="${package}"
192191
install_framework
193192
package="${save_package}"
194-
cmd="${save_cmd}"
195193
fi
196194

197195
if is_subset "${package}" "${NEEDS_SAPPORO_LIGHT}" ; then
198196
if ! is_subset "sapporo-light" "${INSTALLED_PACKAGES}" ; then
199-
save_cmd="${cmd}"
200197
save_package="${package}"
201198
install_sapporo_light
202199
package="${save_package}"
203-
cmd="${save_cmd}"
204200
fi
205201
fi
206202

@@ -211,11 +207,9 @@ install_package() {
211207
# If the code is e.g. CUDA-only, then there may not be a base package.
212208
if is_subset "${base_package}" "${EXTANT_PACKAGES}" ; then
213209
if ! is_subset "${base_package}" "${INSTALLED_PACKAGES}" ; then
214-
save_cmd="${cmd}"
215210
save_package="${package}"
216211
install_package "${cmd}" "${base_package}" "${brief}"
217212
package="${save_package}"
218-
cmd="${save_cmd}"
219213
fi
220214
fi
221215
fi

support/setup/testing.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ensure_pytest() {
77
printf '%s\n\n' "Please activate a conda environment or virtual environment first."
88
elif [ "a${ENV_TYPE}" = "aconda" ] ; then
99
printf '\n%s\n' "Please use"
10-
printf '\n %b\n' "conda install -c conda-forge --override-channels pytest"
10+
printf '\n %b\n' "conda install pytest"
1111
printf '\n%s\n\n' "to install pytest, then try again."
1212
else
1313
printf '\n%s\n' "Please use"
@@ -50,6 +50,7 @@ test_framework() {
5050
cd src/tests && pytest --import-mode=append core_tests compile_tests --ignore compile_tests/java_implementation -k 'not TestCDistributedImplementationInterface and not TestAsyncDistributed' ${PYTEST_OPTS}
5151
else
5252
cd src/tests && pytest --import-mode=append core_tests compile_tests --ignore compile_tests/java_implementation -k 'not TestCDistributedImplementationInterface and not TestAsyncDistributed and not noci' ${PYTEST_OPTS}
53+
5354
fi
5455

5556
echo $? >"../../${ec_file}"
@@ -80,7 +81,7 @@ test_amuse_ext() {
8081
log_file="$(log_file test amuse-ext)"
8182

8283
(
83-
cd src/tests && pytest ext_tests ticket_tests --import-mode=append ${PYTEST_OPTS} -s -v -x -k "not noci and ${bad_ext_tests}"
84+
cd src/tests && pytest ext_tests --import-mode=append ticket_tests ${PYTEST_OPTS} -k "${bad_ext_tests}"
8485

8586
echo $? >"../../${ec_file}"
8687
) 2>&1 | tee "${log_file}"

0 commit comments

Comments
 (0)