texlive[44575] Master/texmf-dist: pst-ode (12jun17)

commits+karl at tug.org commits+karl at tug.org
Mon Jun 12 23:42:28 CEST 2017


Revision: 44575
          http://tug.org/svn/texlive?view=revision&revision=44575
Author:   karl
Date:     2017-06-12 23:42:28 +0200 (Mon, 12 Jun 2017)
Log Message:
-----------
pst-ode (12jun17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/pst-ode/ChangeLog
    trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.pdf
    trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.tex
    trunk/Master/texmf-dist/dvips/pst-ode/pst-ode.pro
    trunk/Master/texmf-dist/tex/generic/pst-ode/pst-ode.tex

Modified: trunk/Master/texmf-dist/doc/generic/pst-ode/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-ode/ChangeLog	2017-06-12 21:07:48 UTC (rev 44574)
+++ trunk/Master/texmf-dist/doc/generic/pst-ode/ChangeLog	2017-06-12 21:42:28 UTC (rev 44575)
@@ -1,3 +1,8 @@
+2017-06-12
+	* version 0.8
+	* fix: Integration step size underflow doesn't lead to ps2pdf crashing
+	anymore. Integration of the ODE(s) just stops prematurely.
+
 2014-10-20
 	* fix: typo in the documentation
 

Modified: trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.tex	2017-06-12 21:07:48 UTC (rev 44574)
+++ trunk/Master/texmf-dist/doc/generic/pst-ode/pst-ode-doc.tex	2017-06-12 21:42:28 UTC (rev 44575)
@@ -2,7 +2,10 @@
     headexclude,footexclude,oneside,dvips]{pst-doc}
 \usepackage[UKenglish]{babel}
 \usepackage[T1]{fontenc}
-\usepackage{lmodern}
+%\usepackage{lmodern}
+  \usepackage[tt=false]{libertine} %override beramono (doesn't look like tt font)
+  \usepackage[libertine]{newtxmath}
+  %\usepackage[scaled=0.83]{luximono} %override beramono (doesn't look like tt font)
 \usepackage{attachfile2}
 \attachfilesetup{date={},color=1 0 0}
 \usepackage[latin1]{inputenc}
@@ -144,8 +147,11 @@
 
 Option \Lkeyword{silent} suppresses the terminal output of stepping information.
 
-The tolerance for the automatic integration step size calculation can be set with \Lkeyword{varsteptol} \Lkeyword{=}\Larg{value}. The default value is \Lkeyword{1e-6}. It may be necessary to enlarge it using this option in cases that fail with `\Lkeyword{error: step size underflow in ODEINT}'.\\[1ex]
+The tolerance for the automatic integration step size calculation can be set with \Lkeyword{varsteptol} \Lkeyword{=}\Larg{value}. The default value is \Lkeyword{1e-6}.
 
+In the case of integration step size underflow, which  is indicated by writing `\Lkeyword{!}' to the terminal during PS to PDF conversion, the computation stops prematurely before reaching $t_\mathrm{e}$. This may happen for stiff ODEs at some point along the integration interval.\\[1ex]
+%It may be necessary to enlarge it using this option in cases that fail with `\Lkeyword{error: step size underflow in ODEINT}'.\\[1ex]
+
 \begin{BDef}
 \Lcs{pstODEsaveState}\Largb{state}
 \end{BDef}

Modified: trunk/Master/texmf-dist/dvips/pst-ode/pst-ode.pro
===================================================================
--- trunk/Master/texmf-dist/dvips/pst-ode/pst-ode.pro	2017-06-12 21:07:48 UTC (rev 44574)
+++ trunk/Master/texmf-dist/dvips/pst-ode/pst-ode.pro	2017-06-12 21:42:28 UTC (rev 44575)
@@ -1,7 +1,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
 % PostScript prologue for pst-ode.tex.
-% Version 0.7, 2014/10/20
+% Version 0.8, 2017/06/12
 %
 % Alexander Grahn (C) 2012--today
 %
@@ -135,10 +135,20 @@
     %failed step -> reduce step size
     ode at dict
       exch pop pshrink exp 0.1 max sfty mul ddt mul /ddt exch def
-      (-) odeprint ode at dict tcur ddt add tcur end eq {
-        (error: step size underflow in ODEINT) print quit
-      } if
+      ode at dict tcur ddt add tcur end eq {
+        % error: step size underflow in ODEINT
+        (!) odeprint
+        true
+      }{
+        (-) odeprint
+        false
+      } ifelse
     end
+    % on step size underflow ...
+    {
+      pop  % remove previous state vector and
+      exit % leave loop over output steps (pst-ode.tex)
+    } if
     ODEINT %repeat step with new ddt
   }{
     %success

Modified: trunk/Master/texmf-dist/tex/generic/pst-ode/pst-ode.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-ode/pst-ode.tex	2017-06-12 21:07:48 UTC (rev 44574)
+++ trunk/Master/texmf-dist/tex/generic/pst-ode/pst-ode.tex	2017-06-12 21:42:28 UTC (rev 44575)
@@ -11,8 +11,8 @@
 %% ODEs using the Runge-Kutta-Fehlberg (RKF45) method with automatic
 %% step size adjustment
 %%
-\def\fileversion{0.7}
-\def\filedate{2014/10/20}
+\def\fileversion{0.8}
+\def\filedate{2017/06/12}
 
 \csname PSTODELoaded\endcsname
 \let\PSTODELoaded\endinput
@@ -162,8 +162,8 @@
       } bind def
     \else /formatoutput {[#2] assembleresult} def \fi%
     %perform ode integration
-    (\string\n pstODEsolve RKF45 method; '-' failed step, '+' successful step, %
-    'o' output step : \string\n) odeprint
+    (\string\n pstODEsolve (RKF45),\string\n) odeprint
+    (-/+ failed/successful step; "o" output step; "!" step size underflow (stop):\string\n) odeprint
     ode at dict
       /tcur tStart def % current parameter t value
       /tout tStart dt add def % next output t



More information about the tex-live-commits mailing list