We present a numerical method to locate periodic orbits near homoclini
c orbits. Using a method of [X.-B. Lin, Proc. Roy. Soc. Edinburgh, 116
A (1990), pp. 295-325] and solutions of the adjoint variational equati
on, we get a bifurcation function for periodic orbits, whose periods a
re asymptotic to infinity on approaching a homoclinic orbit. As a bonu
s, a linear predictor for continuation of the homoclinic orbit is easi
ly available. Numerical approximation of the homoclinic orbit and the
solution of the adjoint variational equation are discussed. We conside
r a class of methods for approximating the latter equation such that a
scalar quantity is preserved. We also consider a context where the ef
fects of continuous symmetries of equations can be incorporated. Apply
ing the method to an ordinary differential equation on R-3 studied by
[E. Freire, A. Rodriguez-Luis, and E. Ponce, Phys. D, 62 (1993), pp. 2
30-253] we show the bifurcation function gives good agreement with pat
h-followed solutions even down to low period. As an example applicatio
n to a parabolic partial differential equation (PDE), we examine the b
ifurcation function for a homoclinic orbit in the Kuramoto-Sivashinsky
equation.