corrected bug in equinum_fpol: vacuum value was returned for psin=0
This commit is contained in:
parent
dcd3badba9
commit
61c97e3357
@ -660,7 +660,7 @@ c
|
|||||||
use coreprofiles, only : psdbnd,read_profiles,tene_scal,set_prfspl
|
use coreprofiles, only : psdbnd,read_profiles,tene_scal,set_prfspl
|
||||||
use interp_eqprof, only : rmxm,zbmin,zbmax,rcen,psia,rmaxis,
|
use interp_eqprof, only : rmxm,zbmin,zbmax,rcen,psia,rmaxis,
|
||||||
. zmaxis,rbbbs,zbbbs,read_eqdsk,change_cocos,eq_scal,set_eqspl,
|
. zmaxis,rbbbs,zbbbs,read_eqdsk,change_cocos,eq_scal,set_eqspl,
|
||||||
. btrcen,psinr=>psiq,qpsi=>q
|
. btrcen,psinr=>psiq,qpsi=>q,equinum_fpol
|
||||||
use reflections, only : rlim,zlim,nlim,alloc_lim
|
use reflections, only : rlim,zlim,nlim,alloc_lim
|
||||||
use beamdata, only : nrayr,nrayth,nstep
|
use beamdata, only : nrayr,nrayth,nstep
|
||||||
implicit none
|
implicit none
|
||||||
|
@ -440,7 +440,7 @@ contains
|
|||||||
real(wp_), dimension(1) :: rrs,ffspl
|
real(wp_), dimension(1) :: rrs,ffspl
|
||||||
real(wp_), dimension(nsf) :: wrkfd
|
real(wp_), dimension(nsf) :: wrkfd
|
||||||
!
|
!
|
||||||
if(psinv.le.1.0_wp_.and.psinv.gt.0.0_wp_) then
|
if(psinv.le.1.0_wp_.and.psinv.ge.0.0_wp_) then
|
||||||
rrs(1)=psinv
|
rrs(1)=psinv
|
||||||
call splev(tfp,nsf,cfp,3,rrs,ffspl,1,ier)
|
call splev(tfp,nsf,cfp,3,rrs,ffspl,1,ier)
|
||||||
fpolv=ffspl(1)
|
fpolv=ffspl(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user