Skip to content

Commit e3871ae

Browse files
authored
Sphere: restore pure (#21)
sphere: restore `pure`
2 parents 3e24d7a + d44cb69 commit e3871ae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/fitpack_core.f90

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12232,7 +12232,7 @@ pure subroutine fpspgr(iopt,ider,u,mu,v,mv,r,mr,r0,r1,s, &
1223212232
end subroutine fpspgr
1223312233

1223412234

12235-
subroutine fpsphe(iopt,m,teta,phi,r,w,s,ntest,npest,eta,tol,maxit, &
12235+
pure subroutine fpsphe(iopt,m,teta,phi,r,w,s,ntest,npest,eta,tol,maxit, &
1223612236
ib1,ib3,nc,ncc,intest,nrest,nt,tt,np,tp,c,fp,sup,fpint,coord,f, &
1223712237
ff,row,coco,cosi,a,q,bt,bp,spt,spp,h,index,nummer,wrk,lwrk,ier)
1223812238

@@ -12271,8 +12271,6 @@ subroutine fpsphe(iopt,m,teta,phi,r,w,s,ntest,npest,eta,tol,maxit, &
1227112271
ntt = 0
1227212272
iband1 = 0
1227312273

12274-
print *, 'ib3=',ib3,' size(h)=',size(h)
12275-
1227612274
bootstrap: if (iopt>=0) then
1227712275

1227812276
! if iopt=0 we begin by computing the weighted least-squares polynomial of the form
@@ -17238,7 +17236,7 @@ pure subroutine spgrid(iopt,ider,mu,u,mv,v,r,r0,r1,s, &
1723817236
end subroutine spgrid
1723917237

1724017238

17241-
subroutine sphere(iopt,m,teta,phi,r,w,s,ntest,npest, &
17239+
pure subroutine sphere(iopt,m,teta,phi,r,w,s,ntest,npest, &
1724217240
eps,nt,tt,np,tp,c,fp,wrk1,lwrk1,wrk2,lwrk2,iwrk,kwrk,ier)
1724317241

1724417242
! subroutine sphere determines a smooth bicubic spherical spline

src/fitpack_core_c.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ subroutine pogrid_c(iopt,ider,mu,u,mv,v,z,z0,r,s,nuest,nvest,nu,tu,nv,tv, &
301301

302302
end subroutine pogrid_c
303303

304-
subroutine sphere_c(iopt,m,teta,phi,r,w,s,ntest,npest,eps,nt,tt,np,tp,c, &
304+
pure subroutine sphere_c(iopt,m,teta,phi,r,w,s,ntest,npest,eps,nt,tt,np,tp,c, &
305305
fp,wrk1,lwrk1,wrk2,lwrk2,iwrk,kwrk,ier) bind(C,name='sphere_c')
306306
integer(FP_SIZE), intent(in), value :: iopt,m,ntest,npest,lwrk1,lwrk2,kwrk
307307
real(FP_REAL), intent(in), value :: s,eps

0 commit comments

Comments
 (0)