Skip to content

Commit

Permalink
Merge branch 'ias15' of github.com:johnwez1/galpy into ias15
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwez1 committed Oct 22, 2024
2 parents c318f36 + 89e68f6 commit 233913b
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 @@ -385,7 +385,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 387 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L387

Added line #L387 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 391 in galpy/util/wez_ias15.c

View check run for this annotation

Codecov / codecov/patch

galpy/util/wez_ias15.c#L391

Added line #L391 was not covered by tests
Expand Down

0 comments on commit 233913b

Please sign in to comment.