Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 20, 2024
1 parent dd36123 commit 89e68f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions galpy/util/wez_ias15.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ void wez_ias15(void (*func)(double t, double *q, double *a, int nargs, struct po
double *Gs= (double *) malloc ( (order * dim) * sizeof(double) );
double *Fs= (double *) malloc ( ((order + 1) * dim) * sizeof(double) );

Check warning on line 231 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L227-L231

Added lines #L227 - L231 were not covered by tests

double hs;
double hs;

int ii, jj, kk;

for (ii=0; ii < dim; ii++) {
*x++= *(yo+ii);
*v++= *(yo+dim+ii);

Check warning on line 239 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L238-L239

Added lines #L238 - L239 were not covered by tests
Expand Down Expand Up @@ -383,7 +383,7 @@ void wez_ias15(void (*func)(double t, double *q, double *a, int nargs, struct po
} else {
//accepted, update position/velocity and do next timestep with dt required
time_remaining -= fabs(dt); //will eventually get negative as we stepped forward the minimum of dt and time_remaining

Check warning on line 385 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L385

Added line #L385 was not covered by tests

//estimate the function over the interval for any points in the t array
while(fabs(to) < fabs(t[steps]) && fabs(t[steps]) <= fabs(to_temp) && steps < nt){
hs = (fabs(t[steps]) - fabs(to))/(fabs(to_temp) - fabs(to));

Check warning on line 389 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L389

Added line #L389 was not covered by tests
Expand Down

0 comments on commit 89e68f6

Please sign in to comment.