Skip to content

Commit

Permalink
rm uv_to_Rz function from actionAngleStaeckel.c which was only used o…
Browse files Browse the repository at this point in the history
…nce and conflicts with a function in KuzminKutuzovOblateStaeckelWrapperPotential.c
  • Loading branch information
jobovy committed Jan 22, 2018
1 parent 23bad52 commit 8407d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions galpy/actionAngle_src/actionAngle_c_ext/actionAngleStaeckel.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ double evaluatePotentialsUV(double,double,double,int,struct potentialArg *);
/*
Actual functions, inlines first
*/
inline void uv_to_Rz(double u, double v, double * R, double *z,double delta){
*R= delta * sinh(u) * sin(v);
*z= delta * cosh(u) * cos(v);
}
inline void Rz_to_uv_vec(int ndata,
double *R,
double *z,
Expand Down Expand Up @@ -1968,6 +1964,7 @@ double evaluatePotentialsUV(double u, double v, double delta,
int nargs,
struct potentialArg * actionAngleArgs){
double R,z;
uv_to_Rz(u,v,&R,&z,delta);
R= delta * sinh(u) * sin(v);
z= delta * cosh(u) * cos(v);
return evaluatePotentials(R,z,nargs,actionAngleArgs);
}
1 change: 0 additions & 1 deletion tests/test_orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ def test_energy_jacobi_conservation():
tclass= getattr(sys.modules[__name__],p)
tp= tclass()
if not hasattr(tp,'normalize'): continue #skip these
print(p)
tp.normalize(1.)
if hasattr(tp,'toPlanar'):
ptp= tp.toPlanar()
Expand Down

0 comments on commit 8407d4f

Please sign in to comment.