1
0
Fork 0
mirror of https://github.com/Findus23/rebound-collisions.git synced 2024-09-19 15:53:48 +02:00

get CI back working with C module

This commit is contained in:
Lukas Winkler 2021-02-08 21:11:42 +01:00
parent 2b022e0635
commit 962928ecf9
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 5 additions and 6 deletions

View file

@ -38,6 +38,11 @@ mypy:
simulation_run:
stage: simulation
needs: [ ]
before_script:
- cd heartbeat
- poetry run python symlinks.py
- ./build.sh
- cd ..
script:
- poetry run python water_sim.py test_simulationrun test
artifacts:

View file

@ -23,12 +23,6 @@ void heartbeat(struct reb_simulation *sim) {
struct reb_particle p = particles[i];
double distance_squared = p.x * p.x + p.y * p.y + p.z * p.z;
if (distance_squared > max_distance_from_sun_squared) {
printf("max: %f\n", max_distance_from_sun_squared);
printf("min: %f\n", min_distance_from_sun_squared);
printf("dist: %f\n", distance_squared);
printf("px: %f\n", p.x);
printf("py: %f\n", p.y);
printf("pz: %f\n", p.z);
printf("remove %u at t=%f (max)\n", p.hash, sim->t);
reb_remove_by_hash(sim, p.hash, 1);
hb_escapes[hb_escape_index].hash = p.hash;