Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dcon/ode.f
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ SUBROUTINE ode_ideal_cross
istate=1
istep=istep+1
rwork(1)=psimax
rwork(5)=MIN(rwork(5),dpsi)
new=.TRUE.
u_save=u
psi_save=psifac
Expand Down Expand Up @@ -671,6 +672,7 @@ SUBROUTINE ode_kin_cross
istate=1
istep=istep+1
rwork(1)=psimax
rwork(5)=MIN(rwork(5),dpsi)
new=.TRUE.
u_save=u
psi_save=psifac
Expand Down Expand Up @@ -871,6 +873,7 @@ SUBROUTINE ode_resist_cross
istate=1
istep=istep+1
rwork(1)=psimax
rwork(5)=MIN(rwork(5),dpsi)
new=.TRUE.
u_save=u
psi_save=psifac
Expand Down Expand Up @@ -953,6 +956,8 @@ SUBROUTINE ode_step
istep=istep+1
CALL lsode(sing_der,neq,u,psifac,psiout,itol,rtol,atol,
$ itask,istate,iopt,rwork,lrw,iwork,liw,jac,mf)
IF(istate < 0)
$ CALL program_stop("DCON STOP: LSODE integration failure.")
c-----------------------------------------------------------------------
c diagnose error.
c-----------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions rdcon/ode.f
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ SUBROUTINE ode_ideal_cross
istate=1
istep=istep+1
rwork(1)=psimax
rwork(5)=MIN(rwork(5),dpsi)
new=.TRUE.
u_save=u
psi_save=psifac
Expand Down Expand Up @@ -544,6 +545,8 @@ SUBROUTINE ode_step
istep=istep+1
CALL lsode(sing_der,neq,u,psifac,psiout,itol,rtol,atol,
$ itask,istate,iopt,rwork,lrw,iwork,liw,jac,mf)
IF(istate < 0)
$ CALL program_stop("RDCON STOP: LSODE integration failure.")
c-----------------------------------------------------------------------
c diagnose error.
c-----------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions stride/ode.F
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ SUBROUTINE ode_run
rwork=0
rwork(1)=endPsi
rwork(5)=axisPsi*1e-3*psiDirs(iInterval)
!First step no longer than the distance to the surface
IF (ising /= 0) rwork(5)=psiDirs(iInterval)*
$ MIN(axisPsi*1e-3,ABS(startPsi-sing(ising)%psifac))
rwork(11)=rwork(5)
CALL SYSTEM_CLOCK(COUNT=sTime)
DO WHILE(psiDirs(iInterval)*startPsi
Expand Down
Loading