<?xml-stylesheet type="text/xsl" href="../styles/pmathml.xsl"?>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:dsi="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xml:space="preserve"><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/><title>D03PPF/D03PPA : NAG Library, Mark 22</title><link rel="stylesheet" href="../styles/libdoc.css" type="text/css"/><script type="text/javascript">
   function showLevel(_levelId){
    var thisLevel = document.getElementById(_levelId);
    var thisplus = document.getElementById( _levelId.concat('plus'));
    var thisminus = document.getElementById( _levelId.concat('minus'));
    if(thisLevel.style.display != "block"){
     thisLevel.style.display = "block";
     thisplus.style.display = "none";
     thisminus.style.display = "inline";
     }
    else{
     thisLevel.style.display = "none";
     thisminus.style.display = "none";
     thisplus.style.display = "inline";
     }
    }
  </script></head><body><hr/><div><a class="rout" href="../../pdf/D03/d03ppf.pdf">D03PPF/D03PPA (PDF version)</a></div><div><a class="chap" href="d03conts.xml">D03 Chapter Contents</a></div><div><a class="chapint" href="d03intro.xml">D03 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div><hr/><h1 class="libdoc">NAG Library Routine Document<br/><br/>D03PPF/D03PPA</h1><div class="paramtext"><div class="header"><b>Note:</b>&#160; before using this routine, please read the Users' Note for your implementation to check the interpretation of <span class="bitalic">bold italicised</span> terms and other implementation-dependent details.</div></div>
<div class="htmltoc">
<h2 class="htmltoc"><span class="htmltochead" onclick="showLevel('htmltoc');"><span class="htmltocplus" id="htmltocplus">+</span><span class="htmltocminus" id="htmltocminus">&#8722;</span></span>&#160;Contents</h2>
<div class="htmltocitem" id="htmltoc">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#purpose">1&#160;&#160;<b>Purpose</b></a>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocspecification');"><span class="htmltocplus" id="tocspecificationplus">+</span><span class="htmltocminus" id="tocspecificationminus">&#8722;</span></span>
<a class="htmltoc" href="#specification">2&#160;&#160;<b>Specification</b></a>
<div class="htmltocitem" id="tocspecification">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#routFspec">2.1&#160;&#160;<b>Specification for D03PPF</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#routAspec">2.2&#160;&#160;<b>Specification for D03PPA</b></a>
</div>
</div>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#description">3&#160;&#160;<b>Description</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#references">4&#160;&#160;<b>References</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#parameters">5&#160;&#160;<b>Parameters</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#errors">6&#160;&#160;<b>Error Indicators and Warnings</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#accuracy">7&#160;&#160;<b>Accuracy</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#fcomments">8&#160;&#160;<b>Further Comments</b></a>
</div><div class="htmltoc">
<span class="htmltoc" onclick="showLevel('tocexample');"><span class="htmltocplus" id="tocexampleplus">+</span><span class="htmltocminus" id="tocexampleminus">&#8722;</span></span>
<a class="htmltoc" href="#example">9&#160;&#160;<b>Example</b></a>
<div class="htmltocitem" id="tocexample">
<div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examtext">9.1&#160;&#160;<b>Program Text</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examdata">9.2&#160;&#160;<b>Program Data</b></a>
</div><div class="htmltoc">
<span class="htmltocplus">&#160;&#160;&#160;</span>
<a class="htmltoc" href="#examresults">9.3&#160;&#160;<b>Program Results</b></a>
</div>
</div>
</div>
</div>
</div><h2 class="standard"><a class="sec" name="purpose" id="purpose"/>1&#160;&#160;Purpose</h2>
<div class="paramtext">D03PPF/D03PPA integrates a system of linear or nonlinear parabolic partial differential equations (PDEs) in one space variable, with scope for coupled ordinary differential equations (ODEs), and automatic adaptive spatial remeshing.  The spatial discretization is performed using finite differences, and the method of lines is employed to reduce the PDEs to a system of ODEs.  The resulting system is solved using a Backward Differentiation Formula (BDF) method or a Theta method (switching between Newton's method and functional iteration).</div><div class="paramtext">D03PPA is a version of D03PPF that has additional parameters in order to make it safe for use in multithreaded applications (see <a class="sec" href="#parameters">Section 5</a>).</div><h2 class="standard"><a class="sec" name="specification" id="specification"/>2&#160;&#160;Specification</h2><h3 class="standard"><a class="sec" name="routFspec" id="routFspec"/>2.1&#160;&#160;Specification for D03PPF</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;D03PPF&#160;(</td><td class="tdfspec2"><a class="arg" href="#NPDE">NPDE</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#TS">TS</a>, <a class="arg" href="#TOUT">TOUT</a>, <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a>, <a class="arg" href="#UVINIT">UVINIT</a>, <a class="arg" href="#U">U</a>, <a class="arg" href="#NPTS">NPTS</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#NCODE">NCODE</a>, <a class="arg" href="#ODEDEF">ODEDEF</a>, <a class="arg" href="#NXI">NXI</a>, <a class="arg" href="#XI">XI</a>, <a class="arg" href="#NEQN">NEQN</a>, <a class="arg" href="#RTOL">RTOL</a>, <a class="arg" href="#ATOL">ATOL</a>, <a class="arg" href="#ITOL">ITOL</a>, <a class="arg" href="#NORM">NORM</a>, <a class="arg" href="#LAOPT">LAOPT</a>, <a class="arg" href="#ALGOPT">ALGOPT</a>, <a class="arg" href="#REMESH">REMESH</a>, <a class="arg" href="#NXFIX">NXFIX</a>, <a class="arg" href="#XFIX">XFIX</a>, <a class="arg" href="#NRMESH">NRMESH</a>, <a class="arg" href="#DXMESH">DXMESH</a>, <a class="arg" href="#TRMESH">TRMESH</a>, <a class="arg" href="#IPMINF">IPMINF</a>, <a class="arg" href="#XRATIO">XRATIO</a>, <a class="arg" href="#CON">CON</a>, <a class="arg" href="#MONITF">MONITF</a>, <a class="arg" href="#RSAVE">RSAVE</a>, <a class="arg" href="#LRSAVE">LRSAVE</a>, <a class="arg" href="#ISAVE">ISAVE</a>, <a class="arg" href="#LISAVE">LISAVE</a>, <a class="arg" href="#ITASK">ITASK</a>, <a class="arg" href="#ITRACE">ITRACE</a>, <a class="arg" href="#IND">IND</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, M, NPTS, NCODE, NXI, NEQN, ITOL, NXFIX, NRMESH, IPMINF, LRSAVE, ISAVE(LISAVE), LISAVE, ITASK, ITRACE, IND, IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">TS, TOUT, U(NEQN), X(NPTS), XI(NXI), RTOL(*), ATOL(*), ALGOPT(30), XFIX(*), DXMESH, TRMESH, XRATIO, CON, RSAVE(LRSAVE)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">REMESH</td></tr><tr><td class="tdfspec1">CHARACTER*1</td><td class="tdfspec2">NORM, LAOPT</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">PDEDEF, BNDARY, UVINIT, ODEDEF, MONITF</td></tr></table><h3 class="standard"><a class="sec" name="routAspec" id="routAspec"/>2.2&#160;&#160;Specification for D03PPA</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;D03PPA&#160;(</td><td class="tdfspec2"><a class="arg" href="#NPDE">NPDE</a>, <a class="arg" href="#M">M</a>, <a class="arg" href="#TS">TS</a>, <a class="arg" href="#TOUT">TOUT</a>, <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a>, <a class="arg" href="#UVINIT">UVINIT</a>, <a class="arg" href="#U">U</a>, <a class="arg" href="#NPTS">NPTS</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#NCODE">NCODE</a>, <a class="arg" href="#ODEDEF">ODEDEF</a>, <a class="arg" href="#NXI">NXI</a>, <a class="arg" href="#XI">XI</a>, <a class="arg" href="#NEQN">NEQN</a>, <a class="arg" href="#RTOL">RTOL</a>, <a class="arg" href="#ATOL">ATOL</a>, <a class="arg" href="#ITOL">ITOL</a>, <a class="arg" href="#NORM">NORM</a>, <a class="arg" href="#LAOPT">LAOPT</a>, <a class="arg" href="#ALGOPT">ALGOPT</a>, <a class="arg" href="#REMESH">REMESH</a>, <a class="arg" href="#NXFIX">NXFIX</a>, <a class="arg" href="#XFIX">XFIX</a>, <a class="arg" href="#NRMESH">NRMESH</a>, <a class="arg" href="#DXMESH">DXMESH</a>, <a class="arg" href="#TRMESH">TRMESH</a>, <a class="arg" href="#IPMINF">IPMINF</a>, <a class="arg" href="#XRATIO">XRATIO</a>, <a class="arg" href="#CON">CON</a>, <a class="arg" href="#MONITF">MONITF</a>, <a class="arg" href="#RSAVE">RSAVE</a>, <a class="arg" href="#LRSAVE">LRSAVE</a>, <a class="arg" href="#ISAVE">ISAVE</a>, <a class="arg" href="#LISAVE">LISAVE</a>, <a class="arg" href="#ITASK">ITASK</a>, <a class="arg" href="#ITRACE">ITRACE</a>, <a class="arg" href="#IND">IND</a>, <a class="arg" href="#IUSER">IUSER</a>, <a class="arg" href="#RUSER">RUSER</a>, <a class="arg" href="#CWSAV">CWSAV</a>, <a class="arg" href="#LWSAV">LWSAV</a>, <a class="arg" href="#IWSAV">IWSAV</a>, <a class="arg" href="#RWSAV">RWSAV</a>, <a class="arg" href="#IFAIL">IFAIL</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, M, NPTS, NCODE, NXI, NEQN, ITOL, NXFIX, NRMESH, IPMINF, LRSAVE, ISAVE(LISAVE), LISAVE, ITASK, ITRACE, IND, IUSER(*), IWSAV(505), IFAIL</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">TS, TOUT, U(NEQN), X(NPTS), XI(NXI), RTOL(*), ATOL(*), ALGOPT(30), XFIX(*), DXMESH, TRMESH, XRATIO, CON, RSAVE(LRSAVE), RUSER(*), RWSAV(1100)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">REMESH, LWSAV(100)</td></tr><tr><td class="tdfspec1">CHARACTER*1</td><td class="tdfspec2">NORM, LAOPT</td></tr><tr><td class="tdfspec1">CHARACTER*80</td><td class="tdfspec2">CWSAV(10)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">PDEDEF, BNDARY, UVINIT, ODEDEF, MONITF</td></tr></table><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">D03PPF/D03PPA integrates the system of parabolic-elliptic equations and coupled ODEs

<div class="formula-eqn"><a name="eqn1" id="eqn1"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:munderover><m:mo>&#8721;</m:mo><m:mrow><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:munderover><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mi>j</m:mi></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>t</m:mi></m:mrow>
 </m:mfrac><m:mo>+</m:mo><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub><m:mo>=</m:mo><m:msup><m:mi>x</m:mi><m:mrow><m:mo>-</m:mo><m:mi>m</m:mi></m:mrow></m:msup><m:mfrac other="display">
 <m:mo>&#8706;</m:mo><m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac><m:mfenced separators=""><m:msup><m:mi>x</m:mi><m:mi>m</m:mi></m:msup><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mtext>, &#8195;</m:mtext><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction>
 <m:mtext>, &#8195;</m:mtext>
 <m:mi>a</m:mi><m:mo>&#8804;</m:mo><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>b</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>&#8805;</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (1)
     </td></tr></table></div><div class="formula-eqn"><a name="eqn2" id="eqn2"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>V</m:mi><m:mo>,</m:mo><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mo>,</m:mo><m:mi>&#958;</m:mi><m:mo>,</m:mo><m:msup><m:mi>U</m:mi><m:mo>*</m:mo></m:msup><m:mo>,</m:mo><m:msubsup><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>*</m:mo></m:msubsup><m:mo>,</m:mo><m:msup><m:mi>R</m:mi><m:mo>*</m:mo></m:msup><m:mo>,</m:mo><m:msubsup><m:mi>U</m:mi><m:mi>t</m:mi><m:mo>*</m:mo></m:msubsup><m:mo>,</m:mo><m:msubsup><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow><m:mo>*</m:mo></m:msubsup></m:mfenced><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>, &#8195;</m:mtext><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (2)
     </td></tr></table></div>

where <a class="eqn" href="#eqn1">(1)</a> defines the PDE part and <a class="eqn" href="#eqn2">(2)</a> generalizes the coupled ODE part of the problem.</div><div class="paramtext">In <a class="eqn" href="#eqn1">(1)</a>, <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;depend on <m:math><m:mi>x</m:mi></m:math>, <m:math><m:mi>t</m:mi></m:math>, <m:math><m:mi>U</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub></m:math>, and <m:math><m:mi>V</m:mi></m:math>; <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;depends on <m:math><m:mi>x</m:mi></m:math>, <m:math><m:mi>t</m:mi></m:math>, <m:math><m:mi>U</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub></m:math>, <m:math><m:mi>V</m:mi></m:math>&#160;and <b>linearly</b> on <m:math><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:math>.  The vector <m:math><m:mi>U</m:mi></m:math>&#160;is the set of PDE solution values

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>U</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mfenced separators="" open="[" close="]"><m:mrow><m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:mrow><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mrow><m:msub><m:mi>U</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:mrow></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and the vector <m:math><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub></m:math>&#160;is the partial derivative with respect to <m:math><m:mi>x</m:mi></m:math>.  The vector <m:math><m:mi>V</m:mi></m:math>&#160;is the set of ODE solution values

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>V</m:mi><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced><m:mo>=</m:mo><m:msup><m:mfenced separators="" open="[" close="]"><m:mrow><m:msub><m:mi>V</m:mi><m:mn>1</m:mn></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:mrow><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:mrow><m:msub><m:mi>V</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:mrow></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and <m:math><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:math>&#160;denotes its derivative with respect to time.</div><div class="paramtext">In <a class="eqn" href="#eqn2">(2)</a>, <m:math><m:mi>&#958;</m:mi></m:math>&#160;represents a vector of <m:math><m:msub><m:mi>n</m:mi><m:mi>&#958;</m:mi></m:msub></m:math>&#160;spatial coupling points at which the ODEs are coupled to the PDEs.  These points may or may not be equal to some of the PDE spatial mesh points.  <m:math><m:msup><m:mi>U</m:mi><m:mo>*</m:mo></m:msup></m:math>, <m:math><m:msubsup><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>*</m:mo></m:msubsup></m:math>, <m:math><m:msup><m:mi>R</m:mi><m:mo>*</m:mo></m:msup></m:math>, <m:math><m:msubsup><m:mi>U</m:mi><m:mi>t</m:mi><m:mo>*</m:mo></m:msubsup></m:math>&#160;and <m:math><m:msubsup><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow><m:mo>*</m:mo></m:msubsup></m:math>&#160;are the functions <m:math><m:mi>U</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub></m:math>, <m:math><m:mi>R</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>t</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow></m:msub></m:math>&#160;evaluated at these coupling points.  Each <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;may only depend linearly on time derivatives.  Hence the equation <a class="eqn" href="#eqn2">(2)</a> may be written more precisely as

<div class="formula-eqn"><a name="eqn3" id="eqn3"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:mi>F</m:mi><m:mo>=</m:mo><m:mi>G</m:mi><m:mo>-</m:mo><m:mi>A</m:mi><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mo>-</m:mo><m:mi>B</m:mi>
 <m:mfenced><m:mtable>
  <m:mtr>
   <m:mtd><m:msubsup><m:mi>U</m:mi><m:mi>t</m:mi><m:mo>*</m:mo></m:msubsup></m:mtd>
  </m:mtr><m:mtr>
   <m:mtd><m:msubsup><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow><m:mo>*</m:mo></m:msubsup></m:mtd>
  </m:mtr>
 </m:mtable></m:mfenced>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (3)
     </td></tr></table></div>

where <m:math><m:mi>F</m:mi><m:mo>=</m:mo><m:msup><m:mfenced separators="" open="[" close="]"><m:msub><m:mi>F</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>F</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:msub></m:mfenced><m:mi mathvariant="normal">T</m:mi></m:msup></m:math>, <m:math><m:mi>G</m:mi></m:math>&#160;is a vector of length <a class="arg" href="#NCODE">NCODE</a>, <m:math><m:mi>A</m:mi></m:math>&#160;is an <a class="arg" href="#NCODE">NCODE</a> by <a class="arg" href="#NCODE">NCODE</a> matrix, <m:math><m:mi>B</m:mi></m:math>&#160;is an <a class="arg" href="#NCODE">NCODE</a> by <m:math><m:mfenced separators=""><m:msub><m:mi>n</m:mi><m:mi>&#958;</m:mi></m:msub><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:mfenced></m:math>&#160;matrix and the entries in <m:math><m:mi>G</m:mi></m:math>, <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>&#160;may depend on <m:math><m:mi>t</m:mi></m:math>, <m:math><m:mi>&#958;</m:mi></m:math>, <m:math><m:msup><m:mi>U</m:mi><m:mo>*</m:mo></m:msup></m:math>, <m:math><m:msubsup><m:mi>U</m:mi><m:mi>x</m:mi><m:mo>*</m:mo></m:msubsup></m:math>&#160;and <m:math><m:mi>V</m:mi></m:math>.  In practice you only need to supply a vector of information to define the ODEs and not the matrices <m:math><m:mi>A</m:mi></m:math>&#160;and <m:math><m:mi>B</m:mi></m:math>.  (See <a class="sec" href="#parameters">Section 5</a> for the specification of <a class="arg" href="#ODEDEF">ODEDEF</a>.)</div><div class="paramtext">The integration in time is from <m:math><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:math>&#160;to <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">out</m:mi></m:msub></m:math>, over the space interval <m:math><m:mi>a</m:mi><m:mo>&#8804;</m:mo><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>b</m:mi></m:math>, where <m:math><m:mi>a</m:mi><m:mo>=</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub></m:math>&#160;and <m:math><m:mi>b</m:mi><m:mo>=</m:mo><m:msub><m:mi>x</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:msub></m:math>&#160;are the leftmost and rightmost points of a mesh <m:math><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:mn>2</m:mn></m:msub><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:msub><m:mi>x</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:msub></m:math>&#160;defined initially by you and (possibly) adapted automatically during the integration according to user-specified criteria.  The co-ordinate system in space is defined by the following values of <m:math><m:mi>m</m:mi></m:math>; <m:math><m:mi>m</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;for Cartesian co-ordinates, <m:math><m:mi>m</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;for cylindrical polar co-ordinates and <m:math><m:mi>m</m:mi><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;for spherical polar co-ordinates.</div><div class="paramtext">The PDE system which is defined by the functions <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>, <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;must be specified in <a class="arg" href="#PDEDEF">PDEDEF</a>.</div><div class="paramtext">The initial <m:math><m:mfenced separators=""><m:mi>t</m:mi><m:mo>=</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:math>&#160;values of the functions <m:math><m:mi>U</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;and <m:math><m:mi>V</m:mi><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>&#160;must be specified in <a class="arg" href="#UVINIT">UVINIT</a>.  Note that <a class="arg" href="#UVINIT">UVINIT</a> will be called again following any initial remeshing, and so <m:math><m:mi>U</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:math>&#160;should be specified for <b>all</b> values of <m:math><m:mi>x</m:mi></m:math>&#160;in the interval <m:math><m:mi>a</m:mi><m:mo>&#8804;</m:mo><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>b</m:mi></m:math>, and not just the initial mesh points.</div><div class="paramtext">The functions <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;which may be thought of as fluxes, are also used in the definition of the boundary conditions.  The boundary conditions must have the form

<div class="formula-eqn"><a name="eqnbndary" id="eqnbndary"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
<m:msub><m:mi>&#946;</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi></m:mfenced><m:mo>=</m:mo><m:msub><m:mi>&#947;</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi><m:mo>,</m:mo><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:mfenced><m:mtext>, &#8195;</m:mtext><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (4)
     </td></tr></table></div>

where <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>a</m:mi></m:math>&#160;or <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>.</div><div class="paramtext">The boundary conditions must be specified in <a class="arg" href="#BNDARY">BNDARY</a>.  The function <m:math><m:msub><m:mi>&#947;</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;may depend <b>linearly</b> on <m:math><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:math>.</div><div class="paramtext">The problem is subject to the following restrictions:
<table class="standard-100"><tr>
<td style="width:2.1em;" valign="baseline">(i)</td>
<td valign="top">In <a class="eqn" href="#eqn1">(1)</a>, <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>j</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>, may only appear <b>linearly</b> in the functions <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>, with a similar restriction for <m:math><m:mi>&#947;</m:mi></m:math>;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(ii)</td>
<td valign="top"><m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>&#160;and the flux <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;must not depend on any time derivatives;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(iii)</td>
<td valign="top"><m:math><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub><m:mo>&lt;</m:mo><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">out</m:mi></m:msub></m:math>, so that integration is in the forward direction;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(iv)</td>
<td valign="top">The evaluation of the terms <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>, <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is done approximately at the mid-points of the mesh <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>, by calling the <a class="arg" href="#PDEDEF">PDEDEF</a> for each mid-point in turn.  Any discontinuities in these functions <b>must</b> therefore be at one or more of the fixed mesh points specified by <a class="arg" href="#XFIX">XFIX</a>;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(v)</td>
<td valign="top">At least one of the functions <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>&#160;must be nonzero so that there is a time derivative present in the PDE problem;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(vi)</td>
<td valign="top">If <m:math><m:mi>m</m:mi><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>, which is the left boundary point, then it must be ensured that the PDE solution is bounded at this point.  This can be done by either specifying the solution at <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>&#160;or by specifying a zero flux there, that is <m:math><m:msub><m:mi>&#946;</m:mi><m:mi>i</m:mi></m:msub><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>&#160;and <m:math><m:msub><m:mi>&#947;</m:mi><m:mi>i</m:mi></m:msub><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>.  See also <a class="sec" href="#fcomments">Section 8</a>.</td>
</tr></table>
</div><div class="paramtext">The algebraic-differential equation system which is defined by the functions <m:math><m:msub><m:mi>F</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;must be specified in <a class="arg" href="#ODEDEF">ODEDEF</a>.  You must also specify the coupling points <m:math><m:mi>&#958;</m:mi></m:math>&#160;in the array <a class="arg" href="#XI">XI</a>.</div><div class="paramtext">The parabolic equations are approximated by a system of ODEs in time for the values of <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;at mesh points.  For simple problems in Cartesian co-ordinates, this system is obtained by replacing the space derivatives by the usual central, three-point finite-difference formula.  However, for polar and spherical problems, or problems with nonlinear coefficients, the space derivatives are replaced by a modified three-point formula which maintains second order accuracy.  In total there are <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>&#160;ODEs in time direction.  This system is then integrated forwards in time using a Backward Differentiation Formula (BDF) or a Theta method.</div><div class="paramtext">The adaptive space remeshing can be used to generate meshes that automatically follow the changing time-dependent nature of the solution, generally resulting in a more efficient and accurate solution using fewer mesh points than may be necessary with a fixed uniform or non-uniform mesh.  Problems with travelling wavefronts or variable-width boundary layers for example will benefit from using a moving adaptive mesh.  The discrete time-step method used here (developed by <a class="ref" href="#ref479">Furzeland (1984)</a>) automatically creates a new mesh based on the current solution profile at certain time-steps, and the solution is then interpolated onto the new mesh and the integration continues.</div><div class="paramtext">The method requires you to supply a <a class="arg" href="#MONITF">MONITF</a> which specifies in an analytical or numerical form the particular aspect of the solution behaviour you wish to track.  This so-called monitor function is used to choose a mesh which equally distributes the integral of the monitor function over the domain.  A typical choice of monitor function is the second space derivative of the solution value at each point (or some combination of the second space derivatives if there is more than one solution component), which results in refinement in regions where the solution gradient is changing most rapidly.</div><div class="paramtext">You must specify the frequency of mesh updates together with certain other criteria such as adjacent mesh ratios.  Remeshing can be expensive and you are encouraged to experiment with the different options in order to achieve an efficient solution which adequately tracks the desired features of the solution.</div><div class="paramtext">Note that unless the monitor function for the initial solution values is zero at all user-specified initial mesh points, a new initial mesh is calculated and adopted according to the user-specified remeshing criteria.  <a class="arg" href="#UVINIT">UVINIT</a> will then be called again to determine the initial solution values at the new mesh points (there is no interpolation at this stage) and the integration proceeds.</div><h2 class="standard"><a class="sec" name="references" id="references"/>4&#160;&#160;References</h2><div class="paramtext"><a name="ref213" id="ref213"/>Berzins M (1990)  Developments in the NAG Library software for parabolic equations <i>Scientific Software Systems</i> (eds J C Mason and M G Cox) 59&#8211;72 Chapman and Hall </div>
<div class="paramtext"><a name="ref549" id="ref549"/>Berzins M, Dew P M and Furzeland R M (1989)  Developing software for time-dependent problems using the method of lines and differential-algebraic integrators <i>Appl. Numer. Math.</i> <b>5</b> 375&#8211;397 </div>
<div class="paramtext"><a name="ref584" id="ref584"/>Berzins M and Furzeland R M (1992)  An adaptive theta method for the solution of stiff and nonstiff differential equations <i>Appl. Numer. Math.</i> <b>9</b> 1&#8211;19 </div>
<div class="paramtext"><a name="ref479" id="ref479"/>Furzeland R M (1984)  The construction of adaptive space meshes <i>TNER.85.022</i> Thornton Research Centre, Chester </div>
<div class="paramtext"><a name="ref305" id="ref305"/>Skeel R D and Berzins M (1990)  A method for the spatial discretization of parabolic equations in one space variable <i>SIAM J. Sci. Statist. Comput.</i> <b>11 (1)</b> 1&#8211;32 </div><h2 class="standard"><a class="sec" name="parameters" id="parameters"/>5&#160;&#160;Parameters</h2>
<dl><dt class="paramhead"><a name="NPDE" id="NPDE"/>1: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs to be solved.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>1</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="M" id="M"/>2: &#160;&#160;&#8194; M &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the co-ordinate system used:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Indicates Cartesian co-ordinates.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Indicates cylindrical polar co-ordinates.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>Indicates spherical polar co-ordinates.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="TS" id="TS"/>3: &#160;&#160;&#8194; TS &#8211; <span class="bitalic">double precision</span><span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the initial value of the independent variable <m:math><m:mi>t</m:mi></m:math>.</div><div class="paramtext"><i>On exit</i>: the value of <m:math><m:mi>t</m:mi></m:math>&#160;corresponding to the solution values in <a class="arg" href="#U">U</a>. Normally <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction></m:math>.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="TOUT" id="TOUT"/>4: &#160;&#160;&#8194; TOUT &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the final value of <m:math><m:mi>t</m:mi></m:math>&#160;to which the integration is to be carried out.</div></dd><dt class="paramhead"><a name="PDEDEF" id="PDEDEF"/>5: &#160;&#160;&#8194; PDEDEF &#8211; SUBROUTINE, supplied by the user.<span class="pclass">External Procedure</span></dt><dd>
<div class="paramtext"><a class="arg" href="#PDEDEF">PDEDEF</a> must evaluate the functions <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub></m:math>, <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;which define the system of PDEs. The functions may depend on <m:math><m:mi>x</m:mi></m:math>, <m:math><m:mi>t</m:mi></m:math>, <m:math><m:mi>U</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub></m:math>&#160;and <m:math><m:mi>V</m:mi></m:math>. <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;may depend linearly on <m:math><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:math>. <a class="arg" href="#PDEDEF">PDEDEF</a> is called approximately midway between each pair of mesh points in turn by D03PPF/D03PPA.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#PDEDEF">PDEDEF</a>
   for D03PPF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;PDEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_UX">UX</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_P">P</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_Q">Q</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_R">R</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, IRES</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, X, U(NPDE), UX(NPDE), V(NCODE), VDOT(NCODE), P(NPDE,NPDE), Q(NPDE), R(NPDE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#PDEDEF">PDEDEF</a>
   for D03PPA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;PDEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_UX">UX</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_P">P</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_Q">Q</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_R">R</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IUSER">IUSER</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, IRES, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, X, U(NPDE), UX(NPDE), V(NCODE), VDOT(NCODE), P(NPDE,NPDE), Q(NPDE), R(NPDE), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="PDEDEF_NPDE" id="PDEDEF_NPDE"/>1: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs in the system.</div></dd><dt class="paramhead"><a name="PDEDEF_T" id="PDEDEF_T"/>2: &#160;&#160;&#8194; T &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the current value of the independent variable <m:math><m:mi>t</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_X" id="PDEDEF_X"/>3: &#160;&#160;&#8194; X &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the current value of the space variable <m:math><m:mi>x</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_U" id="PDEDEF_U"/>4: &#160;&#160;&#8194; U(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the component <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_UX" id="PDEDEF_UX"/>5: &#160;&#160;&#8194; UX(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_UX"><m:mi mathcolor="#EE0000" mathvariant="bold">UX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the component <m:math>
 <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac>
</m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_NCODE" id="PDEDEF_NCODE"/>6: &#160;&#160;&#8194; NCODE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of coupled ODEs in the system.</div></dd><dt class="paramhead"><a name="PDEDEF_V" id="PDEDEF_V"/>7: &#160;&#160;&#8194; V(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_V"><m:mi mathcolor="#EE0000" mathvariant="bold">V</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mi>V</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_VDOT" id="PDEDEF_VDOT"/>8: &#160;&#160;&#8194; VDOT(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_VDOT"><m:mi mathcolor="#EE0000" mathvariant="bold">VDOT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.<div class="paramtext"><b>Note:</b>&#160; <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>, may only appear linearly in <m:math><m:msub><m:mi>Q</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></div></dd><dt class="paramhead"><a name="PDEDEF_P" id="PDEDEF_P"/>9: &#160;&#160;&#8194; P(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>,<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_P"><m:mi mathcolor="#EE0000" mathvariant="bold">P</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;must be set to the value of <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_Q" id="PDEDEF_Q"/>10: &#8194; Q(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_Q"><m:mi mathcolor="#EE0000" mathvariant="bold">Q</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must be set to the value of <m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi><m:mo>,</m:mo><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_R" id="PDEDEF_R"/>11: &#8194; R(<a class="arg" href="../D03/d03ppf.xml#PDEDEF_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_R"><m:mi mathcolor="#EE0000" mathvariant="bold">R</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must be set to the value of <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="PDEDEF_IRES" id="PDEDEF_IRES"/>12: &#8194; IRES &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: set to <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>On exit</i>: should usually remain unchanged. However, you may set <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a> to force the integration routine to take certain actions as described below:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>Indicates to the integrator that control should be passed back immediately to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq6"><m:mn mathcolor="#003399" mathvariant="bold">6</m:mn></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>Indicates to the integrator that the current time step should be abandoned and a smaller time step used instead. You may wish to set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;when a physically meaningless input or output value has been generated. If you consecutively set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#PDEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>, then D03PPF/D03PPA returns to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>.</dd></dl>
</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="PDEDEF_IUSER" id="PDEDEF_IUSER"/>13: &#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="PDEDEF_RUSER" id="PDEDEF_RUSER"/>14: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#PDEDEF">PDEDEF</a> is called from D03PPA with the parameters <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#PDEDEF_RUSER">RUSER</a> as supplied to D03PPA. You are free to use the arrays <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#PDEDEF_RUSER">RUSER</a> to supply information to <a class="arg" href="#PDEDEF">PDEDEF</a>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#PDEDEF">PDEDEF</a> must be declared as EXTERNAL in the (sub)program from which D03PPF/D03PPA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="BNDARY" id="BNDARY"/>6: &#160;&#160;&#8194; BNDARY &#8211; SUBROUTINE, supplied by the user.<span class="pclass">External Procedure</span></dt><dd>
<div class="paramtext"><a class="arg" href="#BNDARY">BNDARY</a> must evaluate the functions <m:math><m:msub><m:mi>&#946;</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;and <m:math><m:msub><m:mi>&#947;</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;which describe the boundary conditions, as given in <a class="eqn" href="#eqnbndary">(4)</a>.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#BNDARY">BNDARY</a>
   for D03PPF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;BNDARY&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_UX">UX</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_BETA">BETA</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_GAMMA">GAMMA</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_IRES">IRES</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, IBND, IRES</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, U(NPDE), UX(NPDE), V(NCODE), VDOT(NCODE), BETA(NPDE), GAMMA(NPDE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#BNDARY">BNDARY</a>
   for D03PPA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;BNDARY&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_UX">UX</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_BETA">BETA</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_GAMMA">GAMMA</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_IRES">IRES</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_IUSER">IUSER</a>, <a class="arg" href="../D03/d03ppf.xml#BNDARY_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, IBND, IRES, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, U(NPDE), UX(NPDE), V(NCODE), VDOT(NCODE), BETA(NPDE), GAMMA(NPDE), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="BNDARY_NPDE" id="BNDARY_NPDE"/>1: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs in the system.</div></dd><dt class="paramhead"><a name="BNDARY_T" id="BNDARY_T"/>2: &#160;&#160;&#8194; T &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the current value of the independent variable <m:math><m:mi>t</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_U" id="BNDARY_U"/>3: &#160;&#160;&#8194; U(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the component <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;at the boundary specified by <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_UX" id="BNDARY_UX"/>4: &#160;&#160;&#8194; UX(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_UX"><m:mi mathcolor="#EE0000" mathvariant="bold">UX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the component <m:math>
 <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:mrow>
 <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac>
</m:math>&#160;at the boundary specified by <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_NCODE" id="BNDARY_NCODE"/>5: &#160;&#160;&#8194; NCODE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of coupled ODEs in the system.</div></dd><dt class="paramhead"><a name="BNDARY_V" id="BNDARY_V"/>6: &#160;&#160;&#8194; V(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_V"><m:mi mathcolor="#EE0000" mathvariant="bold">V</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mi>V</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_VDOT" id="BNDARY_VDOT"/>7: &#160;&#160;&#8194; VDOT(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_VDOT"><m:mi mathcolor="#EE0000" mathvariant="bold">VDOT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.
<div class="paramtext"><b>Note:</b>&#160; <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>, may only appear linearly in <m:math><m:msub><m:mi>&#947;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></div></dd><dt class="paramhead"><a name="BNDARY_IBND" id="BNDARY_IBND"/>8: &#160;&#160;&#8194; IBND &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies which boundary conditions are to be evaluated. 

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IBND"><m:mi mathcolor="#EE0000" mathvariant="bold">IBND</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><a class="arg" href="#BNDARY">BNDARY</a> must set up the coefficients of the left-hand boundary, <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>a</m:mi></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IBND"><m:mi mathcolor="#EE0000" mathvariant="bold">IBND</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd><a class="arg" href="#BNDARY">BNDARY</a> must set up the coefficients of the right-hand boundary, <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mi>b</m:mi></m:math>.</dd></dl>
</div></dd><dt class="paramhead"><a name="BNDARY_BETA" id="BNDARY_BETA"/>9: &#160;&#160;&#8194; BETA(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_BETA"><m:mi mathcolor="#EE0000" mathvariant="bold">BETA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must be set to the value of <m:math><m:msub><m:mi>&#946;</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;at the boundary specified by <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_GAMMA" id="BNDARY_GAMMA"/>10: &#8194; GAMMA(<a class="arg" href="../D03/d03ppf.xml#BNDARY_NPDE">NPDE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_GAMMA"><m:mi mathcolor="#EE0000" mathvariant="bold">GAMMA</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must be set to the value of <m:math><m:msub><m:mi>&#947;</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi><m:mo>,</m:mo><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:mfenced></m:math>&#160;at the boundary specified by <a class="arg" href="../D03/d03ppf.xml#BNDARY_IBND">IBND</a>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="BNDARY_IRES" id="BNDARY_IRES"/>11: &#8194; IRES &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: set to <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>.</div><div class="paramtext"><i>On exit</i>: should usually remain unchanged. However, you may set <a class="arg" href="../D03/d03ppf.xml#BNDARY_IRES">IRES</a> to force the integration routine to take certain actions as described below:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>Indicates to the integrator that control should be passed back immediately to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq6"><m:mn mathcolor="#003399" mathvariant="bold">6</m:mn></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>Indicates to the integrator that the current time step should be abandoned and a smaller time step used instead. You may wish to set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;when a physically meaningless input or output value has been generated. If you consecutively set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#BNDARY_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>, then D03PPF/D03PPA returns to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>.</dd></dl>
</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="BNDARY_IUSER" id="BNDARY_IUSER"/>12: &#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="BNDARY_RUSER" id="BNDARY_RUSER"/>13: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#BNDARY">BNDARY</a> is called from D03PPA with the parameters <a class="arg" href="../D03/d03ppf.xml#BNDARY_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#BNDARY_RUSER">RUSER</a> as supplied to D03PPA. You are free to use the arrays <a class="arg" href="../D03/d03ppf.xml#BNDARY_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#BNDARY_RUSER">RUSER</a> to supply information to <a class="arg" href="#BNDARY">BNDARY</a>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#BNDARY">BNDARY</a> must be declared as EXTERNAL in the (sub)program from which D03PPF/D03PPA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="UVINIT" id="UVINIT"/>7: &#160;&#160;&#8194; UVINIT &#8211; SUBROUTINE, supplied by the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#UVINIT">UVINIT</a> must supply the initial <m:math><m:mfenced separators=""><m:mi>t</m:mi><m:mo>=</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:math>&#160;values of <m:math><m:mi>U</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;and <m:math><m:mi>V</m:mi><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>&#160;for all values of <m:math><m:mi>x</m:mi></m:math>&#160;in the interval <m:math><m:mi>a</m:mi><m:mo>&#8804;</m:mo><m:mi>x</m:mi><m:mo>&#8804;</m:mo><m:mi>b</m:mi></m:math>.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#UVINIT">UVINIT</a>
   for D03PPF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;UVINIT&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#UVINIT_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NPTS">NPTS</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NXI">NXI</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_XI">XI</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_V">V</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NPTS, NXI, NCODE</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">X(NPTS), XI(NXI), U(NPDE,NPTS), V(NCODE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#UVINIT">UVINIT</a>
   for D03PPA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;UVINIT&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#UVINIT_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NPTS">NPTS</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NXI">NXI</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_XI">XI</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_IUSER">IUSER</a>, <a class="arg" href="../D03/d03ppf.xml#UVINIT_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NPTS, NXI, NCODE, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">X(NPTS), XI(NXI), U(NPDE,NPTS), V(NCODE), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="UVINIT_NPDE" id="UVINIT_NPDE"/>1: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs in the system.</div></dd><dt class="paramhead"><a name="UVINIT_NPTS" id="UVINIT_NPTS"/>2: &#160;&#160;&#8194; NPTS &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

the number of mesh points in the interval <m:math><m:mfenced separators="" open="[" close="]"><m:mi>a</m:mi><m:mo>,</m:mo><m:mi>b</m:mi></m:mfenced></m:math>.</div></dd><dt class="paramhead"><a name="UVINIT_NXI" id="UVINIT_NXI"/>3: &#160;&#160;&#8194; NXI &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of ODE/PDE coupling points.</div></dd><dt class="paramhead"><a name="UVINIT_X" id="UVINIT_X"/>4: &#160;&#160;&#8194; X(<a class="arg" href="../D03/d03ppf.xml#UVINIT_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the current mesh. <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="UVINIT_XI" id="UVINIT_XI"/>5: &#160;&#160;&#8194; XI(<a class="arg" href="../D03/d03ppf.xml#UVINIT_NXI">NXI</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the ODE/PDE coupling point, <m:math><m:msub><m:mi>&#958;</m:mi><m:mi>i</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="UVINIT_U" id="UVINIT_U"/>6: &#160;&#160;&#8194; U(<a class="arg" href="../D03/d03ppf.xml#UVINIT_NPDE">NPDE</a>,<a class="arg" href="../D03/d03ppf.xml#UVINIT_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd>
<div class="paramtext"><i>On exit</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the component <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>,</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="UVINIT_NCODE" id="UVINIT_NCODE"/>7: &#160;&#160;&#8194; NCODE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of coupled ODEs in the system.</div></dd><dt class="paramhead"><a name="UVINIT_V" id="UVINIT_V"/>8: &#160;&#160;&#8194; V(<a class="arg" href="../D03/d03ppf.xml#UVINIT_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_V"><m:mi mathcolor="#EE0000" mathvariant="bold">V</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mi>V</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#UVINIT_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="UVINIT_IUSER" id="UVINIT_IUSER"/>9: &#160;&#160;&#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="UVINIT_RUSER" id="UVINIT_RUSER"/>10: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#UVINIT">UVINIT</a> is called from D03PPA with the parameters <a class="arg" href="../D03/d03ppf.xml#UVINIT_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#UVINIT_RUSER">RUSER</a> as supplied to D03PPA. You are free to use the arrays <a class="arg" href="../D03/d03ppf.xml#UVINIT_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#UVINIT_RUSER">RUSER</a> to supply information to <a class="arg" href="#UVINIT">UVINIT</a>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#UVINIT">UVINIT</a> must be declared as EXTERNAL in the (sub)program from which D03PPF/D03PPA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="U" id="U"/>8: &#160;&#160;&#8194; U(<a class="arg" href="#NEQN">NEQN</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, the value of <a class="arg" href="#U">U</a> must be unchanged from the previous call.</div>
<div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mi>j</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced><m:mo>+</m:mo><m:mi>i</m:mi></m:mrow></m:mfenced></m:mrow></m:math>&#160;contains the computed solution <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>j</m:mi></m:msub><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>, and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>+</m:mo><m:mi>k</m:mi></m:mrow></m:mfenced></m:mrow></m:math>&#160;contains <m:math><m:msub><m:mi>V</m:mi><m:mi>k</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>k</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>, evaluated at <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="NPTS" id="NPTS"/>9: &#160;&#160;&#8194; NPTS &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

the number of mesh points in the interval <m:math><m:mfenced separators="" open="[" close="]"><m:mi>a</m:mi><m:mo>,</m:mo><m:mi>b</m:mi></m:mfenced></m:math>.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>3</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="X" id="X"/>10: &#8194; X(<a class="arg" href="#NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><i>On entry</i>: the initial mesh points in the space direction. <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math>&#160;must specify the left-hand boundary, <m:math><m:mi>a</m:mi></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;must specify the right-hand boundary, <m:math><m:mi>b</m:mi></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mo>&#8943;</m:mo><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:mfenced></m:mrow></m:math>.
</div>
<div class="paramtext"><i>On exit</i>: the final values of the mesh points.</div></dd><dt class="paramhead"><a name="NCODE" id="NCODE"/>11: &#8194; NCODE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of coupled ODE in the system.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="ODEDEF" id="ODEDEF"/>12: &#8194; ODEDEF &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd>
<div class="paramtext"><a class="arg" href="#ODEDEF">ODEDEF</a> must evaluate the functions <m:math><m:mi>F</m:mi></m:math>, which define the system of ODEs, as given in <a class="eqn" href="#eqn3">(3)</a>. If you wish to compute the solution of a system of PDEs only (<m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>), <a class="arg" href="#ODEDEF">ODEDEF</a> must be the
dummy routine D03PCK/D53PCK for D03PPF (or D53PCK for D03PPA). D03PCK/D53PCK and D53PCK are 
 
included in the NAG Library.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#ODEDEF">ODEDEF</a>
   for D03PPF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;ODEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_NXI">NXI</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_XI">XI</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCP">UCP</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPX">UCPX</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RCP">RCP</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPT">UCPT</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPTX">UCPTX</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_F">F</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IRES">IRES</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, NXI, IRES</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, V(NCODE), VDOT(NCODE), XI(NXI), UCP(NPDE,*), UCPX(NPDE,*), RCP(NPDE,*), UCPT(NPDE,*), UCPTX(NPDE,*), F(NCODE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#ODEDEF">ODEDEF</a>
   for D03PPA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;ODEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_NCODE">NCODE</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_V">V</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_VDOT">VDOT</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_NXI">NXI</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_XI">XI</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCP">UCP</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPX">UCPX</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RCP">RCP</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPT">UCPT</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPTX">UCPTX</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_F">F</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IRES">IRES</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IUSER">IUSER</a>, <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, NCODE, NXI, IRES, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, V(NCODE), VDOT(NCODE), XI(NXI), UCP(NPDE,*), UCPX(NPDE,*), RCP(NPDE,*), UCPT(NPDE,*), UCPTX(NPDE,*), F(NCODE), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="ODEDEF_NPDE" id="ODEDEF_NPDE"/>1: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs in the system.</div></dd><dt class="paramhead"><a name="ODEDEF_T" id="ODEDEF_T"/>2: &#160;&#160;&#8194; T &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the current value of the independent variable <m:math><m:mi>t</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_NCODE" id="ODEDEF_NCODE"/>3: &#160;&#160;&#8194; NCODE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of coupled ODEs in the system.</div></dd><dt class="paramhead"><a name="ODEDEF_V" id="ODEDEF_V"/>4: &#160;&#160;&#8194; V(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_V"><m:mi mathcolor="#EE0000" mathvariant="bold">V</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mi>V</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_VDOT" id="ODEDEF_VDOT"/>5: &#160;&#160;&#8194; VDOT(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_VDOT"><m:mi mathcolor="#EE0000" mathvariant="bold">VDOT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of component <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_NXI" id="ODEDEF_NXI"/>6: &#160;&#160;&#8194; NXI &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of ODE/PDE coupling points.</div></dd><dt class="paramhead"><a name="ODEDEF_XI" id="ODEDEF_XI"/>7: &#160;&#160;&#8194; XI(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NXI">NXI</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the ODE/PDE coupling points, <m:math><m:msub><m:mi>&#958;</m:mi><m:mi>i</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_UCP" id="ODEDEF_UCP"/>8: &#160;&#160;&#8194; UCP(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCP">UCP</a>
is
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div> 
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_UCP"><m:mi mathcolor="#EE0000" mathvariant="bold">UCP</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;at the coupling point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msub><m:mi>&#958;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div>
</dd><dt class="paramhead"><a name="ODEDEF_UCPX" id="ODEDEF_UCPX"/>9: &#160;&#160;&#8194; UCPX(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPX">UCPX</a>
is
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_UCPX"><m:mi mathcolor="#EE0000" mathvariant="bold">UCPX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math>
 <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac>
</m:math>&#160;at the coupling point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msub><m:mi>&#958;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_RCP" id="ODEDEF_RCP"/>10: &#8194; RCP(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RCP">RCP</a>
is
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div><div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_RCP"><m:mi mathcolor="#EE0000" mathvariant="bold">RCP</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of the flux <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;at the coupling point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msub><m:mi>&#958;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_UCPT" id="ODEDEF_UCPT"/>11: &#8194; UCPT(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPT">UCPT</a>
is
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div> 
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_UCPT"><m:mi mathcolor="#EE0000" mathvariant="bold">UCPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math>
 <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>t</m:mi></m:mrow>
 </m:mfrac>
</m:math>&#160;at the coupling point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msub><m:mi>&#958;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_UCPTX" id="ODEDEF_UCPTX"/>12: &#8194; UCPTX(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NPDE">NPDE</a>,<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the second dimension of the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_UCPTX">UCPTX</a>
is
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div><div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_UCPTX"><m:mi mathcolor="#EE0000" mathvariant="bold">UCPTX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math>
 <m:mfrac other="display">
  <m:mrow><m:msup><m:mo>&#8706;</m:mo><m:mn>2</m:mn></m:msup><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mrow>
  <m:mrow>
   <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
   <m:mrow><m:mo>&#8706;</m:mo><m:mi>t</m:mi></m:mrow>
  </m:mrow>
 </m:mfrac>
</m:math>&#160;at the coupling point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:msub><m:mi>&#958;</m:mi><m:mi>j</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="ODEDEF_F" id="ODEDEF_F"/>13: &#8194; F(<a class="arg" href="../D03/d03ppf.xml#ODEDEF_NCODE">NCODE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_F"><m:mi mathcolor="#EE0000" mathvariant="bold">F</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must contain the <m:math><m:mi>i</m:mi></m:math>th component of <m:math><m:mi>F</m:mi></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>, where <m:math><m:mi>F</m:mi></m:math>&#160;is defined as

<div class="formula-eqn"><a name="eqn5" id="eqn5"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
 <m:mi>F</m:mi><m:mo>=</m:mo><m:mi>G</m:mi><m:mo>-</m:mo><m:mi>A</m:mi><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mo>-</m:mo><m:mi>B</m:mi>
 <m:mfenced><m:mtable>
 <m:mtr>
 <m:mtd><m:msubsup><m:mi>U</m:mi><m:mi>t</m:mi><m:mo>*</m:mo></m:msubsup></m:mtd>
 </m:mtr>
 <m:mtr>
 <m:mtd><m:msubsup><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow><m:mo>*</m:mo></m:msubsup></m:mtd>
 </m:mtr>
 </m:mtable></m:mfenced>
 <m:mtext>,</m:mtext>
</m:math></td><td class="formula-eqn2">
      (5)
     </td></tr></table></div>

or

<div class="formula-eqn"><a name="eqn6" id="eqn6"/><table class="formula-eqn"><tr><td class="formula-eqn"><m:math display="block">
 <m:mi>F</m:mi><m:mo>=</m:mo><m:mo>-</m:mo><m:mi>A</m:mi><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mo>-</m:mo><m:mi>B</m:mi>
 <m:mfenced><m:mtable>
 <m:mtr>
 <m:mtd><m:msubsup><m:mi>U</m:mi><m:mi>t</m:mi><m:mo>*</m:mo></m:msubsup></m:mtd>
 </m:mtr>
 <m:mtr>
 <m:mtd><m:msubsup><m:mi>U</m:mi><m:mrow><m:mi>x</m:mi><m:mi>t</m:mi></m:mrow><m:mo>*</m:mo></m:msubsup></m:mtd>
 </m:mtr>
 </m:mtable></m:mfenced>
 <m:mtext>.</m:mtext>
</m:math></td><td class="formula-eqn2">
      (6)
     </td></tr></table></div>

The definition of <m:math><m:mi>F</m:mi></m:math>&#160;is determined by the input value of <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IRES">IRES</a>.</div></dd><dt class="paramhead"><a name="ODEDEF_IRES" id="ODEDEF_IRES"/>14: &#8194; IRES &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the form of <m:math><m:mi>F</m:mi></m:math>&#160;that must be returned in the array <a class="arg" href="../D03/d03ppf.xml#ODEDEF_F">F</a>. 

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Equation <a class="eqn" href="#eqn5">(5)</a> must be used.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></dt>
<dd>Equation <a class="eqn" href="#eqn6">(6)</a> must be used.</dd></dl>
</div>
<div class="paramtext"><i>On exit</i>: should usually remain unchanged. However, you may reset <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IRES">IRES</a> to force the integration routine to take certain actions as described below:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>Indicates to the integrator that control should be passed back immediately to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq6"><m:mn mathcolor="#003399" mathvariant="bold">6</m:mn></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>Indicates to the integrator that the current time step should be abandoned and a smaller time step used instead. You may wish to set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;when a physically meaningless input or output value has been generated. If you consecutively set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ODEDEF_IRES"><m:mi mathcolor="#EE0000" mathvariant="bold">IRES</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>, then D03PPF/D03PPA returns to the calling subroutine with the error indicator set to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq4"><m:mn mathcolor="#003399" mathvariant="bold">4</m:mn></m:maction></m:math>.</dd></dl>
</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="ODEDEF_IUSER" id="ODEDEF_IUSER"/>15: &#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="ODEDEF_RUSER" id="ODEDEF_RUSER"/>16: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#ODEDEF">ODEDEF</a> is called from D03PPA with the parameters <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RUSER">RUSER</a> as supplied to D03PPA. You are free to use the arrays <a class="arg" href="../D03/d03ppf.xml#ODEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#ODEDEF_RUSER">RUSER</a> to supply information to <a class="arg" href="#ODEDEF">ODEDEF</a>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#ODEDEF">ODEDEF</a> must be declared as EXTERNAL in the (sub)program from which D03PPF/D03PPA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="NXI" id="NXI"/>13: &#8194; NXI &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of ODE/PDE coupling points.</div>
<div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>;</li>
<li class="listcons">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="XI" id="XI"/>14: &#8194; XI(<a class="arg" href="#NXI">NXI</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:math>, must be set to the ODE/PDE coupling points.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mo>&#8943;</m:mo><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XI"><m:mi mathcolor="#EE0000" mathvariant="bold">XI</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:mfenced></m:mrow></m:math>.
</div></dd><dt class="paramhead"><a name="NEQN" id="NEQN"/>15: &#8194; NEQN &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

the number of ODEs in the time direction.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>.
</div></dd><dt class="paramhead"><a name="RTOL" id="RTOL"/>16: &#8194; RTOL(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#RTOL">RTOL</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>&#160;and at least <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math>&#160;or <m:math><m:mn>4</m:mn></m:math>.</div><div class="paramtext"><i>On entry</i>: the relative local error tolerance.</div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#RTOL"><m:mi mathcolor="#EE0000" mathvariant="bold">RTOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>&#160;for all relevant <m:math><m:mi>i</m:mi></m:math>.
</div></dd><dt class="paramhead"><a name="ATOL" id="ATOL"/>17: &#8194; ATOL(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#ATOL">ATOL</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>3</m:mn></m:math>&#160;and at least <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction></m:math>&#160;if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math>&#160;or <m:math><m:mn>4</m:mn></m:math>.</div><div class="paramtext"><i>On entry</i>: the absolute local error tolerance.</div>
<div class="paramtext"><i>Constraints</i>:
   <div class="paramtext"/><ul class="listcons">
<li class="listcons"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>&#160;for all relevant <m:math><m:mi>i</m:mi></m:math>;</li>
<li class="listcons">Corresponding elements of <a class="arg" href="#ATOL">ATOL</a> and <a class="arg" href="#RTOL">RTOL</a> cannot both be <m:math><m:mn>0.0</m:mn></m:math>.</li>
</ul></div></dd><dt class="paramhead"><a name="ITOL" id="ITOL"/>18: &#8194; ITOL &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: a value to indicate the form of the local error test. <a class="arg" href="#ITOL">ITOL</a> indicates to D03PPF/D03PPA whether to interpret either or both of <a class="arg" href="#RTOL">RTOL</a> or <a class="arg" href="#ATOL">ATOL</a> as a vector or scalar. The error test to be satisfied is <m:math><m:mfenced open="&#8214;" close="&#8214;" separators=""><m:msub><m:mi>e</m:mi><m:mi>i</m:mi></m:msub><m:mo>/</m:mo><m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>&lt;</m:mo><m:mn>1.0</m:mn></m:math>, where <m:math><m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;is defined as follows:
<div class="tablediv"><table class="frame-none"><tbody><tr><td class="libdoc" valign="top" align="center"><a class="arg" href="#ITOL">ITOL</a></td><td class="libdoc" valign="top" align="left"><a class="arg" href="#RTOL">RTOL</a></td><td class="libdoc" valign="top" align="left"><a class="arg" href="#ATOL">ATOL</a></td><td class="libdoc" valign="top" align="center"><m:math><m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub></m:math></td></tr><tr><td class="libdoc" valign="top" align="center">1</td><td class="libdoc" valign="top" align="left">scalar</td><td class="libdoc" valign="top" align="left">scalar</td><td class="libdoc" valign="top" align="left"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#RTOL"><m:mi mathcolor="#EE0000" mathvariant="bold">RTOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#215;</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math></td></tr><tr><td class="libdoc" valign="top" align="center">2</td><td class="libdoc" valign="top" align="left">scalar</td><td class="libdoc" valign="top" align="left">vector</td><td class="libdoc" valign="top" align="left"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#RTOL"><m:mi mathcolor="#EE0000" mathvariant="bold">RTOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#215;</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math></td></tr><tr><td class="libdoc" valign="top" align="center">3</td><td class="libdoc" valign="top" align="left">vector</td><td class="libdoc" valign="top" align="left">scalar</td><td class="libdoc" valign="top" align="left"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#RTOL"><m:mi mathcolor="#EE0000" mathvariant="bold">RTOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&#215;</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math></td></tr><tr><td class="libdoc" valign="top" align="center">4</td><td class="libdoc" valign="top" align="left">vector</td><td class="libdoc" valign="top" align="left">vector</td><td class="libdoc" valign="top" align="left"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#RTOL"><m:mi mathcolor="#EE0000" mathvariant="bold">RTOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&#215;</m:mo><m:mfenced open="|" close="|" separators=""><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mo>+</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math></td></tr></tbody></table></div>
<div class="paramtext">In the above, <m:math><m:msub><m:mi>e</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;denotes the estimated local error for the <m:math><m:mi>i</m:mi></m:math>th component of the coupled PDE/ODE system in time, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction></m:math>.</div><div class="paramtext">The choice of norm used is defined by the parameter <a class="arg" href="#NORM">NORM</a>.</div></div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>1</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>4</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="NORM" id="NORM"/>19: &#8194; NORM &#8211; CHARACTER*1<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the type of norm to be used.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NORM"><m:mi mathcolor="#EE0000" mathvariant="bold">NORM</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'M'</m:mtext></m:math></dt>
<dd>Maximum norm.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NORM"><m:mi mathcolor="#EE0000" mathvariant="bold">NORM</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'A'</m:mtext></m:math></dt>
<dd>Averaged <m:math><m:msub><m:mi>L</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;norm.</dd></dl>
<div class="paramtext">If <m:math><m:msub><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mi mathvariant="normal">norm</m:mi></m:msub></m:math>&#160;denotes the norm of the vector <a class="arg" href="#U">U</a> of length <a class="arg" href="#NEQN">NEQN</a>, then for the averaged <m:math><m:msub><m:mi>L</m:mi><m:mn>2</m:mn></m:msub></m:math>&#160;norm 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mi mathvariant="normal">norm</m:mi></m:msub><m:mo>=</m:mo><m:msqrt><m:mfrac other="small"><m:mn>1</m:mn><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction></m:mfrac><m:munderover><m:mo>&#8721;</m:mo><m:mrow><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction></m:munderover><m:msup><m:mfenced separators=""><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>/</m:mo><m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub></m:mfenced><m:mn>2</m:mn></m:msup></m:msqrt><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

while for the maximum norm

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub>
  <m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction>
  <m:mi mathvariant="normal">norm</m:mi>
 </m:msub>
 <m:mo>=</m:mo>
 <m:mrow><m:munder><m:mi mathvariant="normal">max</m:mi><m:mi>i</m:mi></m:munder><m:mspace width="0.25em"/><m:mfenced open="|" close="|" separators="">
   <m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow>
   <m:mo>/</m:mo>
   <m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub>
  </m:mfenced></m:mrow>
 <m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

See the description of <a class="arg" href="#ITOL">ITOL</a> for the formulation of the weight vector <m:math><m:mi>w</m:mi></m:math>.</div></div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NORM"><m:mi mathcolor="#EE0000" mathvariant="bold">NORM</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'M'</m:mtext></m:math>&#160;or <m:math><m:mtext>'A'</m:mtext></m:math>.
</div></dd><dt class="paramhead"><a name="LAOPT" id="LAOPT"/>20: &#8194; LAOPT &#8211; CHARACTER*1<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the type of matrix algebra required.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math></dt>
<dd>Full matrix methods to be used.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'B'</m:mtext></m:math></dt>
<dd>Banded matrix methods to be used.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'S'</m:mtext></m:math></dt>
<dd>Sparse matrix methods to be used.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>, <m:math><m:mtext>'B'</m:mtext></m:math>&#160;or <m:math><m:mtext>'S'</m:mtext></m:math>.
</div>
<div class="paramtext"><b>Note:</b> you are recommended to use the banded option when no coupled ODEs are present (i.e., <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>).</div></dd><dt class="paramhead"><a name="ALGOPT" id="ALGOPT"/>21: &#8194; ALGOPT(<m:math><m:mn>30</m:mn></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: may be set to control various options available in the integrator. If you wish to employ all the default options, then <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math>&#160;should be set to <m:math><m:mn>0.0</m:mn></m:math>. Default values will also be used for any other elements of <a class="arg" href="#ALGOPT">ALGOPT</a> set to zero. The permissible values, default values, and meanings are as follows:

<dl>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Selects the ODE integration method to be used. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, a BDF method is used and if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, a Theta method is used. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd></dl>
<div class="paramtext">If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, then <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mn>3</m:mn><m:mo>,</m:mo><m:mn>4</m:mn></m:math>&#160;are not used.</div><dl>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the maximum order of the BDF integration formula to be used. <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow></m:math>&#160;may be <m:math><m:mn>1.0</m:mn></m:math>, <m:math><m:mn>2.0</m:mn></m:math>, <m:math><m:mn>3.0</m:mn></m:math>, <m:math><m:mn>4.0</m:mn></m:math>&#160;or <m:math><m:mn>5.0</m:mn></m:math>. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>5.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>3</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies what method is to be used to solve the system of nonlinear equations arising on each step of the BDF method. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>3</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>&#160;a modified Newton iteration is used and if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>3</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>&#160;a functional iteration method is used. If functional iteration is selected and the integrator encounters difficulty, then there is an automatic switch to the modified Newton iteration. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>3</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>4</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies whether or not the Petzold error test is to be employed. The Petzold error test results in extra overhead but is more suitable when algebraic equations are present, such as <m:math><m:msub><m:mi>P</m:mi><m:mrow><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mrow></m:msub><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>, for <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;for some <m:math><m:mi>i</m:mi></m:math>&#160;or when there is no <m:math><m:msub><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>t</m:mi></m:mfenced></m:math>&#160;dependence in the coupled ODE system. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>4</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, then the Petzold test is used. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>4</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, then the Petzold test is not used. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>4</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd></dl>
<div class="paramtext">If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, then <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>5</m:mn><m:mo>,</m:mo><m:mn>6</m:mn><m:mo>,</m:mo><m:mn>7</m:mn></m:math>&#160;are not used.</div><dl>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>5</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the value of Theta to be used in the Theta integration method. <m:math><m:mn>0.51</m:mn><m:mo>&#8804;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>5</m:mn></m:mfenced></m:mrow><m:mo>&#8804;</m:mo><m:mn>0.99</m:mn></m:math>. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>5</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.55</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>6</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies what method is to be used to solve the system of nonlinear equations arising on each step of the Theta method. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>6</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, a modified Newton iteration is used and if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>6</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, a functional iteration method is used. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>6</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>7</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies whether or not the integrator is allowed to switch automatically between modified Newton and functional iteration methods in order to be more efficient. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>7</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, then switching is allowed and if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>7</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, then switching is not allowed. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>7</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>11</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies a point in the time direction, <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>, beyond which integration must not be attempted. The use of <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>&#160;is described under the parameter <a class="arg" href="#ITASK">ITASK</a>. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&#8800;</m:mo><m:mn>0.0</m:mn></m:math>, a value of <m:math><m:mn>0.0</m:mn></m:math>&#160;for <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>11</m:mn></m:mfenced></m:mrow></m:math>, say, should be specified even if <a class="arg" href="#ITASK">ITASK</a> subsequently specifies that <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>&#160;will not be used.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>12</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the minimum absolute step size to be allowed in the time integration. If this option is not required, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>12</m:mn></m:mfenced></m:mrow></m:math>&#160;should be set to <m:math><m:mn>0.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>13</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the maximum absolute step size to be allowed in the time integration. If this option is not required, <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>13</m:mn></m:mfenced></m:mrow></m:math>&#160;should be set to <m:math><m:mn>0.0</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>14</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the initial step size to be attempted by the integrator. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>14</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>, then the initial step size is calculated internally.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>15</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies the maximum number of steps to be attempted by the integrator in any one call. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>15</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>, then no limit is imposed.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>23</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Specifies what method is to be used to solve the nonlinear equations at the initial point to initialize the values of <m:math><m:mi>U</m:mi></m:math>, <m:math><m:msub><m:mi>U</m:mi><m:mi>t</m:mi></m:msub></m:math>, <m:math><m:mi>V</m:mi></m:math>&#160;and <m:math><m:mover><m:mi>V</m:mi><m:mo>.</m:mo></m:mover></m:math>. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>23</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>, a modified Newton iteration is used and if <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>23</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>2.0</m:mn></m:math>, functional iteration is used. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>23</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>1.0</m:mn></m:math>.</dd></dl>
<div class="paramtext"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>30</m:mn></m:mfenced></m:mrow></m:math>&#160;are used only for the sparse matrix algebra option, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'S'</m:mtext></m:math>.</div><dl>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Governs the choice of pivots during the decomposition of the first Jacobian matrix. It should lie in the range <m:math><m:mn>0.0</m:mn><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mn>1.0</m:mn></m:math>, with smaller values biasing the algorithm towards maintaining sparsity at the expense of numerical stability. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>&#160;lies outside this range then the default value is used. If the routines regard the Jacobian matrix as numerically singular then increasing <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>&#160;towards <m:math><m:mn>1.0</m:mn></m:math>&#160;may help, but at the cost of increased fill-in. The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.1</m:mn></m:math>.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>30</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Is used as a relative pivot threshold during subsequent Jacobian decompositions (see <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>) below which an internal error is invoked. If <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>30</m:mn></m:mfenced></m:mrow></m:math>&#160;is greater than <m:math><m:mn>1.0</m:mn></m:math>&#160;no check is made on the pivot size, and this may be a necessary option if the Jacobian is found to be numerically singular (see <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>). The default value is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>30</m:mn></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0001</m:mn></m:math>.</dd></dl>
</div></dd><dt class="paramhead"><a name="REMESH" id="REMESH"/>22: &#8194; REMESH &#8211; LOGICAL<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: indicates whether or not spatial remeshing should be performed. 

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#REMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">REMESH</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.TRUE.</m:mi></m:math></dt>
<dd>Indicates that spatial remeshing should be performed as specified.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#REMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">REMESH</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.FALSE.</m:mi></m:math></dt>
<dd>Indicates that spatial remeshing should be suppressed.</dd></dl>
<div class="paramtext"><b>Note:</b>&#160; <a class="arg" href="#REMESH">REMESH</a> should <b>not</b> be changed between consecutive calls to D03PPF/D03PPA. Remeshing can be switched off or on at specified times by using appropriate values for the parameters <a class="arg" href="#NRMESH">NRMESH</a> and <a class="arg" href="#TRMESH">TRMESH</a> at each call.</div></div></dd><dt class="paramhead"><a name="NXFIX" id="NXFIX"/>23: &#8194; NXFIX &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the number of fixed mesh points.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>2</m:mn></m:math><div class="paramtext"><b>Note:</b> the end points <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:mfenced></m:mrow></m:math>&#160;are fixed automatically and hence should not be specified as fixed points.</div></div></dd><dt class="paramhead"><a name="XFIX" id="XFIX"/>24: &#8194; XFIX(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#XFIX">XFIX</a>
must be at least
<m:math><m:mrow><m:mi>max</m:mi><m:mspace width="0.125em"/><m:mfenced separators=""><m:mn>1</m:mn><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction></m:mfenced></m:mrow></m:math>.</div>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">XFIX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction></m:math>, must contain the value of the <m:math><m:mi>x</m:mi></m:math>&#160;co-ordinate at the <m:math><m:mi>i</m:mi></m:math>th fixed mesh point.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">XFIX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">XFIX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:mfenced></m:mrow></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>, and each fixed mesh point must coincide with a user-supplied initial mesh point, that is <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#XFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">XFIX</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;for some <m:math><m:mi>j</m:mi></m:math>, <m:math><m:mn>2</m:mn><m:mo>&#8804;</m:mo><m:mi>j</m:mi><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>.
<div class="paramtext"><b>Note:</b> the positions of the fixed mesh points in the array <a class="arg" href="#X">X</a> remain fixed during remeshing, and so the number of mesh points between adjacent fixed points (or between fixed points and end points) does not change. You should take this into account when choosing the initial mesh distribution.</div></div></dd><dt class="paramhead"><a name="NRMESH" id="NRMESH"/>25: &#8194; NRMESH &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: specifies the spatial remeshing frequency and criteria for the calculation and adoption of a new mesh. 

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">NRMESH</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Indicates that a new mesh is adopted according to the parameter <a class="arg" href="#DXMESH">DXMESH</a>. The mesh is tested every <m:math><m:mfenced open="|" close="|" separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">NRMESH</m:mi></m:maction></m:mfenced></m:math>&#160;timesteps.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">NRMESH</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Indicates that remeshing should take place just once at the end of the first time step reached when <m:math><m:mi>t</m:mi><m:mo>&gt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">TRMESH</m:mi></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">NRMESH</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Indicates that remeshing will take place every <a class="arg" href="#NRMESH">NRMESH</a> time steps, with no testing using <a class="arg" href="#DXMESH">DXMESH</a>.</dd></dl>
<div class="paramtext"><b>Note:</b> <a class="arg" href="#NRMESH">NRMESH</a> may be changed between consecutive calls to D03PPF/D03PPA to give greater flexibility over the times of remeshing.</div>
</div></dd><dt class="paramhead"><a name="DXMESH" id="DXMESH"/>26: &#8194; DXMESH &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: determines whether a new mesh is adopted when <a class="arg" href="#NRMESH">NRMESH</a> is set less than zero. A possible new mesh is calculated at the end of every <m:math><m:mfenced open="|" close="|" separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NRMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">NRMESH</m:mi></m:maction></m:mfenced></m:math>&#160;time steps, but is adopted only if 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi><m:mfenced separators=""><m:mi mathvariant="normal">new</m:mi></m:mfenced></m:msubsup><m:mo>&gt;</m:mo><m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#DXMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">DXMESH</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:msubsup><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup><m:mo>-</m:mo><m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup></m:mfenced> </m:math></td><td class="formula2"/></tr></table></div>
 or 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi><m:mfenced separators=""><m:mi mathvariant="normal">new</m:mi></m:mfenced></m:msubsup><m:mo>&lt;</m:mo><m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#DXMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">DXMESH</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:msubsup><m:mi>x</m:mi><m:mi>i</m:mi> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup><m:mo>-</m:mo><m:msubsup><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>-</m:mo> <m:mn>1</m:mn></m:mrow> <m:mfenced separators=""><m:mi mathvariant="normal">old</m:mi></m:mfenced> </m:msubsup></m:mfenced> </m:math></td><td class="formula2"/></tr></table></div>
 <a class="arg" href="#DXMESH">DXMESH</a> thus imposes a lower limit on the difference between one mesh and the next.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#DXMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">DXMESH</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>0.0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="TRMESH" id="TRMESH"/>27: &#8194; TRMESH &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: specifies when remeshing will take place when <a class="arg" href="#NRMESH">NRMESH</a> is set to zero. Remeshing will occur just once at the end of the first time step reached when <m:math><m:mi>t</m:mi></m:math>&#160;is greater than <a class="arg" href="#TRMESH">TRMESH</a>.
<div class="paramtext"><b>Note:</b> <a class="arg" href="#TRMESH">TRMESH</a> may be changed between consecutive calls to D03PPF/D03PPA to force remeshing at several specified times.</div>
</div></dd><dt class="paramhead"><a name="IPMINF" id="IPMINF"/>28: &#8194; IPMINF &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the level of trace information regarding the adaptive remeshing. Details are directed to the current advisory message unit (see <a class="rout" href="../X04/x04abf.xml">X04ABF</a>). 

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>No trace information.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Brief summary of mesh characteristics.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>More detailed information, including old and new mesh points, mesh sizes and monitor function values.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="XRATIO" id="XRATIO"/>29: &#8194; XRATIO &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: an input bound on the adjacent mesh ratio (greater than <m:math><m:mn>1.0</m:mn></m:math>&#160;and typically in the range <m:math><m:mn>1.5</m:mn></m:math>&#160;to <m:math><m:mn>3.0</m:mn></m:math>). The remeshing routines will attempt to ensure that 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced><m:mo>/</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#XRATIO"><m:mi mathcolor="#EE0000" mathvariant="bold">XRATIO</m:mi></m:maction><m:mo>&lt;</m:mo><m:msub><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub><m:mo>&lt;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#XRATIO"><m:mi mathcolor="#EE0000" mathvariant="bold">XRATIO</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub><m:mo>-</m:mo><m:msub><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:mfenced><m:mtext>.</m:mtext></m:math></td><td class="formula2"/></tr></table></div>
</div>
<div class="paramtext"><i>Suggested value</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#XRATIO"><m:mi mathcolor="#EE0000" mathvariant="bold">XRATIO</m:mi></m:maction><m:mo>=</m:mo><m:mn>1.5</m:mn></m:math>.

</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#XRATIO"><m:mi mathcolor="#EE0000" mathvariant="bold">XRATIO</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>1.0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="CON" id="CON"/>30: &#8194; CON &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: an input bound on the sub-integral of the monitor function <m:math><m:msup><m:mi>F</m:mi><m:mi mathvariant="normal">mon</m:mi></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;over each space step. The remeshing routines will attempt to ensure that 
<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block"> <m:munderover><m:mo>&#8747;</m:mo><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub><m:msub><m:mi>x</m:mi><m:mrow><m:mi>i</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mrow></m:msub></m:munderover><m:msup><m:mi>F</m:mi><m:mi mathvariant="normal">mon</m:mi></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mrow><m:mi>d</m:mi><m:mi>x</m:mi></m:mrow><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#CON"><m:mi mathcolor="#EE0000" mathvariant="bold">CON</m:mi></m:maction><m:munderover><m:mo>&#8747;</m:mo><m:msub><m:mi>x</m:mi><m:mn>1</m:mn></m:msub><m:msub><m:mi>x</m:mi><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:msub></m:munderover><m:msup><m:mi>F</m:mi><m:mi mathvariant="normal">mon</m:mi></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced><m:mrow><m:mi>d</m:mi><m:mi>x</m:mi></m:mrow><m:mtext>,</m:mtext> </m:math></td><td class="formula2"/></tr></table></div>
 (see <a class="ref" href="#ref479">Furzeland (1984)</a>). <a class="arg" href="#CON">CON</a> gives you more control over the mesh distribution e.g.,&#160;decreasing <a class="arg" href="#CON">CON</a> allows more clustering. A typical value is <m:math><m:mn>2</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>, but you are encouraged to experiment with different values. Its value is not critical and the mesh should be qualitatively correct for all values in the range given below.</div>
<div class="paramtext"><i>Suggested value</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#CON"><m:mi mathcolor="#EE0000" mathvariant="bold">CON</m:mi></m:maction><m:mo>=</m:mo><m:mrow><m:mn>2.0</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:mrow></m:math>.

</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>0.1</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#CON"><m:mi mathcolor="#EE0000" mathvariant="bold">CON</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>10.0</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>.
</div></dd><dt class="paramhead"><a name="MONITF" id="MONITF"/>31: &#8194; MONITF &#8211; SUBROUTINE, supplied by the NAG Library or the user.<span class="pclass">External Procedure</span></dt><dd><div class="paramtext"><a class="arg" href="#MONITF">MONITF</a> must supply and evaluate a remesh monitor function to indicate the solution behaviour of interest.</div>
<div class="paramtext">If you specify <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#REMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">REMESH</m:mi></m:maction><m:mo>=</m:mo><m:mi mathvariant="normal">.FALSE.</m:mi></m:math>, i.e., no remeshing, then <a class="arg" href="#MONITF">MONITF</a> will not be called and the dummy routine D03PCL/D53PCL 
for D03PPF (or D53PCL for D03PPA) 
may be used for <a class="arg" href="#MONITF">MONITF</a>. (D03PCL/D53PCL 
and D53PCL are 
 
included in the NAG Library.)</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#MONITF">MONITF</a>
   for D03PPF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;MONITF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#MONITF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_R">R</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_FMON">FMON</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPTS, NPDE</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, X(NPTS), U(NPDE,NPTS), R(NPDE,NPTS), FMON(NPTS)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#MONITF">MONITF</a>
   for D03PPA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;MONITF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03ppf.xml#MONITF_T">T</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_X">X</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_U">U</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_R">R</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_FMON">FMON</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_IUSER">IUSER</a>, <a class="arg" href="../D03/d03ppf.xml#MONITF_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPTS, NPDE, IUSER(*)</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, X(NPTS), U(NPDE,NPTS), R(NPDE,NPTS), FMON(NPTS), RUSER(*)</td></tr></table>
<dl><dt class="paramhead"><a name="MONITF_T" id="MONITF_T"/>1: &#160;&#160;&#8194; T &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the current value of the independent variable <m:math><m:mi>t</m:mi></m:math>.</div></dd><dt class="paramhead"><a name="MONITF_NPTS" id="MONITF_NPTS"/>2: &#160;&#160;&#8194; NPTS &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: 

the number of mesh points in the interval <m:math><m:mfenced separators="" open="[" close="]"><m:mi>a</m:mi><m:mo>,</m:mo><m:mi>b</m:mi></m:mfenced></m:math>.</div></dd><dt class="paramhead"><a name="MONITF_NPDE" id="MONITF_NPDE"/>3: &#160;&#160;&#8194; NPDE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the number of PDEs in the system.</div></dd><dt class="paramhead"><a name="MONITF_X" id="MONITF_X"/>4: &#160;&#160;&#8194; X(<a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the current mesh. <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math><m:msub><m:mi>x</m:mi><m:mi>i</m:mi></m:msub></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="MONITF_U" id="MONITF_U"/>5: &#160;&#160;&#8194; U(<a class="arg" href="../D03/d03ppf.xml#MONITF_NPDE">NPDE</a>,<a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_U"><m:mi mathcolor="#EE0000" mathvariant="bold">U</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced></m:math>&#160;at <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;and time <m:math><m:mi>t</m:mi></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="MONITF_R" id="MONITF_R"/>6: &#160;&#160;&#8194; R(<a class="arg" href="../D03/d03ppf.xml#MONITF_NPDE">NPDE</a>,<a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_R"><m:mi mathcolor="#EE0000" mathvariant="bold">R</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;contains the value of <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi><m:mo>,</m:mo><m:mi>U</m:mi><m:mo>,</m:mo><m:msub><m:mi>U</m:mi><m:mi>x</m:mi></m:msub><m:mo>,</m:mo><m:mi>V</m:mi></m:mfenced></m:math>&#160;at <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;and time <m:math><m:mi>t</m:mi></m:math>, for <m:math><m:mi>i</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction></m:math>&#160;and <m:math><m:mi>j</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mo>,</m:mo><m:mn>2</m:mn><m:mo>,</m:mo><m:mo>&#8230;</m:mo><m:mo>,</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</div></dd><dt class="paramhead"><a name="MONITF_FMON" id="MONITF_FMON"/>7: &#160;&#160;&#8194; FMON(<a class="arg" href="../D03/d03ppf.xml#MONITF_NPTS">NPTS</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Output</span></dt><dd><div class="paramtext"><i>On exit</i>: <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_FMON"><m:mi mathcolor="#EE0000" mathvariant="bold">FMON</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;must contain the value of the monitor function <m:math><m:msup><m:mi>F</m:mi><m:mi mathvariant="normal">mon</m:mi></m:msup><m:mfenced separators=""><m:mi>x</m:mi></m:mfenced></m:math>&#160;at mesh point <m:math><m:mi>x</m:mi><m:mo>=</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>.</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#MONITF_FMON"><m:mi mathcolor="#EE0000" mathvariant="bold">FMON</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>&#8805;</m:mo><m:mn>0</m:mn></m:math>.
</div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="MONITF_IUSER" id="MONITF_IUSER"/>8: &#160;&#160;&#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dt class="multi-paramhead"><a name="MONITF_RUSER" id="MONITF_RUSER"/>9: &#160;&#160;&#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><a class="arg" href="#MONITF">MONITF</a> is called from D03PPA with the parameters <a class="arg" href="../D03/d03ppf.xml#MONITF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#MONITF_RUSER">RUSER</a> as supplied to D03PPA. You are free to use the arrays <a class="arg" href="../D03/d03ppf.xml#MONITF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03ppf.xml#MONITF_RUSER">RUSER</a> to supply information to <a class="arg" href="#MONITF">MONITF</a>.</div></dd></dl>
</div>
<div class="paramtext"><a class="arg" href="#MONITF">MONITF</a> must be declared as EXTERNAL in the (sub)program from which D03PPF/D03PPA is called. Parameters denoted as <span class="italic">Input</span>  must <b>not</b>  be changed by this procedure.</div>
</dd><dt class="paramhead"><a name="RSAVE" id="RSAVE"/>32: &#8194; RSAVE(<a class="arg" href="#LRSAVE">LRSAVE</a>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Communication Array</span></dt><dd>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <a class="arg" href="#RSAVE">RSAVE</a> need not be set on entry.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, <a class="arg" href="#RSAVE">RSAVE</a> must be unchanged from the previous call to the routine because it contains required information about the iteration.</div></dd><dt class="paramhead"><a name="LRSAVE" id="LRSAVE"/>33: &#8194; LRSAVE &#8211; INTEGER<span class="pclass">Input</span></dt><dd><div class="paramtext"><i>On entry</i>: the dimension of the array <a class="arg" href="#RSAVE">RSAVE</a> as declared in the (sub)program from which D03PPF/D03PPA is called.
Its size depends on the type of matrix algebra selected.

<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LRSAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LRSAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mi mathvariant="italic">nwkres</m:mi><m:mo>+</m:mo><m:mi mathvariant="italic">lenode</m:mi></m:math>.</div><div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'B'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LRSAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LRSAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mfenced separators=""><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:mi mathvariant="italic">mlu</m:mi><m:mo>+</m:mo><m:mn>1</m:mn></m:mfenced><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mi mathvariant="italic">nwkres</m:mi><m:mo>+</m:mo><m:mi mathvariant="italic">lenode</m:mi></m:math>.</div>
 
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'S'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LRSAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LRSAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>4</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mn>11</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>/</m:mo><m:mn>2</m:mn><m:mo>+</m:mo><m:mn>1</m:mn><m:mo>+</m:mo><m:mi mathvariant="italic">nwkres</m:mi><m:mo>+</m:mo><m:mi mathvariant="italic">lenode</m:mi></m:math>.</div>
<div class="paramtext">Where
<table class="standard-100"><tr>
<td style="width:NaNem;" valign="baseline"/>
<td valign="top"><m:math><m:mi mathvariant="italic">mlu</m:mi></m:math>&#160;is the lower or upper half bandwidths such that<br/>
<m:math><m:mi mathvariant="italic">mlu</m:mi><m:mo>=</m:mo><m:mn>2</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>, for PDE problems only; or <br/> 
<m:math><m:mi mathvariant="italic">mlu</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:math>, for coupled PDE/ODE problems.</td>
</tr><tr>
<td style="width:NaNem;" valign="baseline"/>
<td valign="top"><m:math><m:mi mathvariant="italic">nwkres</m:mi><m:mo>=</m:mo>
 <m:mfenced open="{" close="" separators="">
  <m:mtable columnalign="left">
   <m:mtr>
    <m:mtd><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>+</m:mo><m:mn>6</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:mn>15</m:mn></m:mfenced><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction><m:mo>+</m:mo><m:mn>1</m:mn><m:mtext>,</m:mtext></m:mtd>
    <m:mtd><m:mtext>when &#8203;</m:mtext><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn><m:mtext>&#8203; and &#8203;</m:mtext><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn><m:mtext>;</m:mtext></m:mtd>
   </m:mtr>
   <m:mtr>
    <m:mtd><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:mn>21</m:mn></m:mfenced><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction><m:mo>+</m:mo><m:mn>2</m:mn><m:mtext>,</m:mtext></m:mtd>
    <m:mtd><m:mtext>when &#8203;</m:mtext><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn><m:mtext>&#8203; and &#8203;</m:mtext><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXI"><m:mi mathcolor="#EE0000" mathvariant="bold">NXI</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>; or</m:mtext></m:mtd>
   </m:mtr>
   <m:mtr>
    <m:mtd><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>3</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:mn>21</m:mn></m:mfenced><m:mo>+</m:mo><m:mn>7</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction><m:mo>+</m:mo><m:mn>3</m:mn><m:mtext>,</m:mtext></m:mtd>
    <m:mtd><m:mtext>when &#8203;</m:mtext><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>.</m:mtext></m:mtd>
   </m:mtr>
  </m:mtable>
 </m:mfenced>
</m:math>&#160;</td>
</tr><tr>
<td style="width:NaNem;" valign="baseline"/>
<td valign="top"><m:math><m:mi mathvariant="italic">lenode</m:mi><m:mo>=</m:mo>
 <m:mfenced open="{" close="" separators="">
  <m:mtable>
   <m:mtr>
    <m:mtd><m:mfenced separators=""><m:mn>6</m:mn><m:mo>+</m:mo><m:mi mathvariant="normal">int</m:mi><m:mfenced separators=""><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow></m:mfenced></m:mfenced><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mn>50</m:mn><m:mtext>,</m:mtext></m:mtd>
    <m:mtd><m:mtext>when the BDF method is used;</m:mtext></m:mtd>
   </m:mtr>
   <m:mtr>
    <m:mtd><m:mn>9</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mn>50</m:mn><m:mtext>,</m:mtext></m:mtd>
    <m:mtd><m:mtext>when the Theta method is used.</m:mtext></m:mtd>
   </m:mtr>
  </m:mtable>
 </m:mfenced>
</m:math>&#160;</td>
</tr></table>
</div>
<div class="paramtext"><b>Note:</b> when using the sparse option, the value of <a class="arg" href="#LRSAVE">LRSAVE</a> may be too small when supplied to the integrator. An estimate of the minimum size of <a class="arg" href="#LRSAVE">LRSAVE</a> is printed on the current error message unit if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and the routine returns with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq15"><m:mn mathcolor="#003399" mathvariant="bold">15</m:mn></m:maction></m:math>.</div>
</div></dd><dt class="paramhead"><a name="ISAVE" id="ISAVE"/>34: &#8194; ISAVE(<a class="arg" href="#LISAVE">LISAVE</a>) &#8211; INTEGER array<span class="pclass">Communication Array</span></dt><dd>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, <a class="arg" href="#ISAVE">ISAVE</a> need not be set on entry.</div>
<div class="paramtext">If <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, <a class="arg" href="#ISAVE">ISAVE</a> must be unchanged from the previous call to the routine because it contains required information about the iteration required for subsequent calls. In particular:

<dl>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISAVE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Contains the number of steps taken in time.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISAVE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>2</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Contains the number of residual evaluations of the resulting ODE system used. One such evaluation involves computing the PDE functions at all the mesh points, as well as one evaluation of the functions in the boundary conditions.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISAVE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>3</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Contains the number of Jacobian evaluations performed by the time integrator.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISAVE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>4</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Contains the order of the ODE method last used in the time integration.</dd>
<dt class="paramval"><m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">ISAVE</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>5</m:mn></m:mfenced></m:mrow></m:math></dt>
<dd>Contains the number of Newton iterations performed by the time integrator. Each iteration involves residual evaluation of the resulting ODE system followed by a back-substitution using the <m:math><m:mi>L</m:mi><m:mi>U</m:mi></m:math>&#160;decomposition of the Jacobian matrix.</dd></dl>
</div><div class="paramtext">The rest of the array is used as workspace.</div>
</dd><dt class="paramhead"><a name="LISAVE" id="LISAVE"/>35: &#8194; LISAVE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the dimension of the array <a class="arg" href="#ISAVE">ISAVE</a> as declared in the (sub)program from which D03PPF/D03PPA is called.
<div class="paramtext">Its size depends on the type of matrix algebra selected:
<ul class="listind"><li class="listind">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'B'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LISAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mn>25</m:mn><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction></m:math>;</li><li class="listind">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'F'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LISAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>25</m:mn><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction></m:math>;</li><li class="listind">if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>=</m:mo><m:mtext>'S'</m:mtext></m:math>, <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LISAVE"><m:mi mathcolor="#EE0000" mathvariant="bold">LISAVE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>25</m:mn><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>+</m:mo><m:mn>25</m:mn><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NXFIX"><m:mi mathcolor="#EE0000" mathvariant="bold">NXFIX</m:mi></m:maction></m:math>.</li></ul>
</div><div class="paramtext"><b>Note:</b>&#160; when using the sparse option, the value of <a class="arg" href="#LISAVE">LISAVE</a> may be too small when supplied to the integrator. An estimate of the minimum size of <a class="arg" href="#LISAVE">LISAVE</a> is printed on the current error message unit if <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and the routine returns with <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFeq15"><m:mn mathcolor="#003399" mathvariant="bold">15</m:mn></m:maction></m:math>.</div>
</div></dd><dt class="paramhead"><a name="ITASK" id="ITASK"/>36: &#8194; ITASK &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: specifies the task to be performed by the ODE integrator.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Normal computation of output values <a class="arg" href="#U">U</a> at <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>One step and return.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>Stop at first internal integration point at or beyond <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction></m:math>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>4</m:mn></m:math></dt>
<dd>Normal computation of output values <a class="arg" href="#U">U</a> at <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction></m:math>&#160;but without overshooting <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>&#160;where <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>&#160;is described under the parameter <a class="arg" href="#ALGOPT">ALGOPT</a>.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>5</m:mn></m:math></dt>
<dd>Take one step in the time direction and return, without passing <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>, where <m:math><m:msub><m:mi>t</m:mi><m:mi mathvariant="normal">crit</m:mi></m:msub></m:math>&#160;is described under the parameter <a class="arg" href="#ALGOPT">ALGOPT</a>.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, <m:math><m:mn>2</m:mn></m:math>, <m:math><m:mn>3</m:mn></m:math>, <m:math><m:mn>4</m:mn></m:math>&#160;or <m:math><m:mn>5</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="ITRACE" id="ITRACE"/>37: &#8194; ITRACE &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: the level of trace information required from D03PPF/D03PPA and the underlying ODE solver:

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math></dt>
<dd>No output is generated.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Only warning messages from the PDE solver are printed on the current error message unit (see <a class="rout" href="../X04/x04aaf.xml">X04AAF</a>).</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Output from the underlying ODE solver is printed on the current advisory message unit (see <a class="rout" href="../X04/x04abf.xml">X04ABF</a>). This output contains details of Jacobian entries, the nonlinear iteration and the time integration during the computation of the ODE system.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>Output from the underlying ODE solver is similar to that produced when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, except that the advisory messages are given in greater detail.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>&#8805;</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>Output from the underlying ODE solver is similar to that produced when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math>, except that the advisory messages are given in greater detail.</dd></dl>
<div class="paramtext">You are advised to set <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math>, unless you are experienced with  <a class="chap" href="../D02/d02conts.xml">sub-chapter D02M&#8211;N</a>.</div>
</div></dd><dt class="paramhead"><a name="IND" id="IND"/>38: &#8194; IND &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: must be set to <m:math><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>1</m:mn></m:math>.

<dl>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>0</m:mn></m:math></dt>
<dd>Starts or restarts the integration in time.</dd>
<dt class="paramval"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>Continues the integration after an earlier exit from the routine. In this case, only the parameters <a class="arg" href="#TOUT">TOUT</a> and <a class="arg" href="#IFAIL">IFAIL</a> and the remeshing parameters <a class="arg" href="#NRMESH">NRMESH</a>, <a class="arg" href="#DXMESH">DXMESH</a>, <a class="arg" href="#TRMESH">TRMESH</a>, <a class="arg" href="#XRATIO">XRATIO</a> and <a class="arg" href="#CON">CON</a> may be reset between calls to D03PPF/D03PPA.</dd></dl>
</div><div class="paramtext"><i>Constraint</i>:
  <m:math><m:mn>0</m:mn><m:mo>&#8804;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>1</m:mn></m:math>.
</div><div class="paramtext"><i>On exit</i>: <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>.</div></dd><dt class="paramhead"><a name="IFAIL" id="IFAIL"/>39: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> <span class="italic">for D03PPA, <a class="arg" href="#IFAIL">IFAIL</a> does not occur in this position in the parameter list.  See the additional parameters described below</span>.</div><div class="paramtext"><i>On entry</i>: <a class="arg" href="#IFAIL">IFAIL</a> must be set to <m:math><m:mn>0</m:mn></m:math>, <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>. If you are unfamiliar with this parameter you should refer to <a class="sec" href="../GENINT/essint.xml#library3">Section 3.3</a> in  the Essential Introduction for details.</div>
<div class="paramtext"><i>On exit</i>: <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;unless the routine detects an error (see <a class="sec" href="#errors">Section 6</a>). <div class="paramtext">For environments where it might be inappropriate to halt program execution when an error is detected, the value <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn>1</m:mn></m:math>&#160;is recommended.  If the output of error messages is undesirable, then the value <m:math><m:mn>1</m:mn></m:math>&#160;is recommended.  Otherwise, if you are not familiar with this parameter, the recommended value is <m:math><m:mn>0</m:mn></m:math>.  <b>When the value <m:math><m:mrow><m:mo>-</m:mo><m:mn mathvariant="bold">1</m:mn></m:mrow><m:mtext>&#8203; or &#8203;</m:mtext><m:mn mathvariant="bold">1</m:mn></m:math>&#160;is used it is essential to test the value of <a class="arg" href="#IFAIL">IFAIL</a> on exit.</b></div></div></dd><dd class="note"><b>Note:</b> <span class="italic"> the following are additional parameters for specific use with D03PPA.  Users of D03PPF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="IUSER" id="IUSER"/>39: &#8194; IUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; INTEGER array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#IUSER">IUSER</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>.</div>
<div class="paramtext"><a class="arg" href="#IUSER">IUSER</a> is not used by D03PPA, but is passed directly to <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a>, <a class="arg" href="#UVINIT">UVINIT</a>, <a class="arg" href="#ODEDEF">ODEDEF</a> and <a class="arg" href="#MONITF">MONITF</a> and may be used to pass information to these routines.</div></dd><dt class="paramhead"><a name="RUSER" id="RUSER"/>40: &#8194; RUSER(<m:math><m:mo>*</m:mo></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">User Workspace</span></dt><dd><div class="paramtext"><b>Note:</b> the dimension of the array <a class="arg" href="#RUSER">RUSER</a>
must be at least
<m:math><m:mn>1</m:mn></m:math>.</div>
<div class="paramtext"><a class="arg" href="#RUSER">RUSER</a> is not used by D03PPA, but is passed directly to <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a>, <a class="arg" href="#UVINIT">UVINIT</a>, <a class="arg" href="#ODEDEF">ODEDEF</a> and <a class="arg" href="#MONITF">MONITF</a> and may be used to pass information to these routines.</div></dd><dt class="paramhead"><a name="CWSAV" id="CWSAV"/>41: &#8194; CWSAV(<m:math><m:mn>10</m:mn></m:math>) &#8211; CHARACTER*80 array<span class="pclass">Communication Array</span></dt><dd/><dt class="paramhead"><a name="LWSAV" id="LWSAV"/>42: &#8194; LWSAV(<m:math><m:mn>100</m:mn></m:math>) &#8211; LOGICAL array<span class="pclass">Communication Array</span></dt><dd/><dt class="paramhead"><a name="IWSAV" id="IWSAV"/>43: &#8194; IWSAV(<m:math><m:mn>505</m:mn></m:math>) &#8211; INTEGER array<span class="pclass">Communication Array</span></dt><dd/><dt class="paramhead"><a name="RWSAV" id="RWSAV"/>44: &#8194; RWSAV(<m:math><m:mn>1100</m:mn></m:math>) &#8211; <span class="bitalic">double precision</span> array<span class="pclass">Communication Array</span></dt><dd/><dt class="paramhead"><a name="IFAIL2" id="IFAIL2"/>45: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd><div class="paramtext"><b>Note:</b> see the parameter description for <a class="arg" href="#IFAIL">IFAIL</a> above.</div></dd></dl><h2 class="standard"><a class="sec" name="errors" id="errors"/>6&#160;&#160;Error Indicators and Warnings</h2>
<div class="paramtext">If on entry <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">0</m:mn></m:maction></m:math>&#160;or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#errors"><m:mn mathcolor="#003399" mathvariant="bold">-1</m:mn></m:maction></m:math>, explanatory error messages are output on the current error message unit (as defined by <a class="rout" href="../X04/x04aaf.xml">X04AAF</a>).</div><div class="paramtext">Errors or warnings detected by the routine:</div>
<dl class="ifail">
<dt class="errorhead"><a name="IFeq1" id="IFeq1"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math></dt>
<dd>
<table class="ifail"><tr><td class="ifail1">On&#160;entry,</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#TOUT"><m:mi mathcolor="#EE0000" mathvariant="bold">TOUT</m:mi></m:maction><m:mo>-</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>&#160;is too small,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>1</m:mn></m:math>, <m:math><m:mn>2</m:mn></m:math>, <m:math><m:mn>3</m:mn></m:math>, <m:math><m:mn>4</m:mn></m:math>&#160;or <m:math><m:mn>5</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90">at least one of the coupling points defined in array <a class="arg" href="#XI">XI</a> is outside the interval <m:math><m:mfenced separators="" open="[" close="]"><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>,</m:mo><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:mfenced></m:mrow></m:mfenced></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#M"><m:mi mathcolor="#EE0000" mathvariant="bold">M</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0</m:mn></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>1</m:mn></m:mfenced></m:mrow><m:mo>&lt;</m:mo><m:mn>0.0</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>3</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>1</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NORM"><m:mi mathcolor="#EE0000" mathvariant="bold">NORM</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'A'</m:mtext></m:math>&#160;or <m:math><m:mtext>'M'</m:mtext></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#LAOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">LAOPT</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mtext>'F'</m:mtext></m:math>, <m:math><m:mtext>'B'</m:mtext></m:math>&#160;or <m:math><m:mtext>'S'</m:mtext></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ITOL</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>1</m:mn></m:math>, <m:math><m:mn>2</m:mn></m:math>, <m:math><m:mn>3</m:mn></m:math>&#160;or <m:math><m:mn>4</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IND"><m:mi mathcolor="#EE0000" mathvariant="bold">IND</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>&#160;or <m:math><m:mn>1</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90">mesh points <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#X"><m:mi mathcolor="#EE0000" mathvariant="bold">X</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow></m:math>&#160;are badly ordered,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><a class="arg" href="#LRSAVE">LRSAVE</a> is too small,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><a class="arg" href="#LISAVE">LISAVE</a> is too small,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><a class="arg" href="#NCODE">NCODE</a> and <a class="arg" href="#NXI">NXI</a> are incorrectly defined,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90">an element of <a class="arg" href="#RTOL">RTOL</a> or <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0.0</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90">corresponding elements of <a class="arg" href="#RTOL">RTOL</a> and <a class="arg" href="#ATOL">ATOL</a> are both <m:math><m:mn>0.0</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NEQN"><m:mi mathcolor="#EE0000" mathvariant="bold">NEQN</m:mi></m:maction><m:mo>&#8800;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPDE"><m:mi mathcolor="#EE0000" mathvariant="bold">NPDE</m:mi></m:maction><m:mo>&#215;</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>+</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#NCODE"><m:mi mathcolor="#EE0000" mathvariant="bold">NCODE</m:mi></m:maction></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><a class="arg" href="#NXFIX">NXFIX</a> not in the range <m:math><m:mn>0</m:mn></m:math>&#160;to <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>2</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90">fixed mesh point(s) do not coincide with any of the user-supplied mesh points,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#DXMESH"><m:mi mathcolor="#EE0000" mathvariant="bold">DXMESH</m:mi></m:maction><m:mo>&lt;</m:mo><m:mn>0.0</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn></m:math>&#160;or <m:math><m:mn>2</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#XRATIO"><m:mi mathcolor="#EE0000" mathvariant="bold">XRATIO</m:mi></m:maction><m:mo>&#8804;</m:mo><m:mn>1.0</m:mn></m:math>,</td></tr><tr><td class="ifail1">or</td><td class="ifail2-90"><a class="arg" href="#CON">CON</a> not in the range <m:math><m:mn>0.1</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>&#160;to <m:math><m:mn>10</m:mn><m:mo>/</m:mo><m:mfenced separators=""><m:maction actiontype="link" dsi:type="simple" dsi:href="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction><m:mo>-</m:mo><m:mn>1</m:mn></m:mfenced></m:math>.</td></tr></table>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq2" id="IFeq2"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>2</m:mn></m:math></dt>
<dd>
<div class="paramtext">The underlying ODE solver cannot make any further progress, with the values of <a class="arg" href="#ATOL">ATOL</a> and <a class="arg" href="#RTOL">RTOL</a>, across the integration range from the current point <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>. The components of <a class="arg" href="#U">U</a> contain the computed values at the current point <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq3" id="IFeq3"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>3</m:mn></m:math></dt>
<dd>
<div class="paramtext">In the underlying ODE solver, there were repeated error test failures on an attempted step, before completing the requested task, but the integration was successful as far as <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>. The problem may have a singularity, or the error requirement may be inappropriate.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq4" id="IFeq4"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>4</m:mn></m:math></dt>
<dd>
<div class="paramtext">In setting up the ODE system, the internal initialization routine was unable to initialize the derivative of the ODE system. This could be due to the fact that <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a> was repeatedly set to <m:math><m:mn>3</m:mn></m:math>&#160;in at least <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a> or <a class="arg" href="#ODEDEF">ODEDEF</a>, when the residual in the underlying ODE solver was being evaluated.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq5" id="IFeq5"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>5</m:mn></m:math></dt>
<dd>
<div class="paramtext">In solving the ODE system, a singular Jacobian has been encountered. You should check your problem formulation.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq6" id="IFeq6"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>6</m:mn></m:math></dt>
<dd>
<div class="paramtext">When evaluating the residual in solving the ODE system, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a> was set to <m:math><m:mn>2</m:mn></m:math>&#160;in at least <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a> or <a class="arg" href="#ODEDEF">ODEDEF</a>. Integration was successful as far as <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq7" id="IFeq7"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>7</m:mn></m:math></dt>
<dd>
<div class="paramtext">The values of <a class="arg" href="#ATOL">ATOL</a> and <a class="arg" href="#RTOL">RTOL</a> are so small that the routine is unable to start the integration in time.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq8" id="IFeq8"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>8</m:mn></m:math></dt>
<dd>
<div class="paramtext">In one of <a class="arg" href="#PDEDEF">PDEDEF</a>, <a class="arg" href="#BNDARY">BNDARY</a> or <a class="arg" href="#ODEDEF">ODEDEF</a>, <a class="arg" href="../D03/d03ppf.xml#PDEDEF_IRES">IRES</a> was set to an invalid value.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq9" id="IFeq9"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>9</m:mn></m:math>&#160;(<a class="rout" href="../D02/d02nnf.xml">D02NNF</a>)</dt>
<dd>
<div class="paramtext">A serious error has occurred in an internal call to the specified routine. Check the problem specification and all parameters and array dimensions. Setting <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITRACE"><m:mi mathcolor="#EE0000" mathvariant="bold">ITRACE</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;may provide more information. If the problem persists, contact <a class="url" href="http://www.nag.co.uk">NAG</a>.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq10" id="IFeq10"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>10</m:mn></m:math></dt>
<dd>
<div class="paramtext">The required task has been completed, but it is estimated that a small change in <a class="arg" href="#ATOL">ATOL</a> and <a class="arg" href="#RTOL">RTOL</a> is unlikely to produce any change in the computed solution. (Only applies when you are not operating in one step mode, that is when <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ITASK"><m:mi mathcolor="#EE0000" mathvariant="bold">ITASK</m:mi></m:maction><m:mo>&#8800;</m:mo><m:mn>2</m:mn></m:math>&#160;or <m:math><m:mn>5</m:mn></m:math>.)</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq11" id="IFeq11"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>11</m:mn></m:math></dt>
<dd>
<div class="paramtext">An error occurred during Jacobian formulation of the ODE system (a more detailed error description may be directed to the current error message unit). If using the sparse matrix algebra option, the values of <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>29</m:mn></m:mfenced></m:mrow></m:math>&#160;and <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>30</m:mn></m:mfenced></m:mrow></m:math>&#160;may be inappropriate.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq12" id="IFeq12"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>12</m:mn></m:math></dt>
<dd>
<div class="paramtext">In solving the ODE system, the maximum number of steps specified in <m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ALGOPT"><m:mi mathcolor="#EE0000" mathvariant="bold">ALGOPT</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mn>15</m:mn></m:mfenced></m:mrow></m:math>&#160;have been taken.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq13" id="IFeq13"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>13</m:mn></m:math></dt>
<dd>
<div class="paramtext">Some error weights <m:math><m:msub><m:mi>w</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;became zero during the time integration (see the description of <a class="arg" href="#ITOL">ITOL</a>). Pure relative error control (<m:math><m:mrow><m:maction actiontype="link" dsi:type="simple" dsi:href="#ATOL"><m:mi mathcolor="#EE0000" mathvariant="bold">ATOL</m:mi></m:maction><m:mfenced separators="," open="(" close=")"><m:mi>i</m:mi></m:mfenced></m:mrow><m:mo>=</m:mo><m:mn>0.0</m:mn></m:math>) was requested on a variable (the <m:math><m:mi>i</m:mi></m:math>th) which has become zero. The integration was successful as far as <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#TS"><m:mi mathcolor="#EE0000" mathvariant="bold">TS</m:mi></m:maction></m:math>.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq14" id="IFeq14"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>14</m:mn></m:math></dt>
<dd>
<div class="paramtext">The flux function <m:math><m:msub><m:mi>R</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;was detected as depending on time derivatives, which is not permissible.</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq15" id="IFeq15"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>15</m:mn></m:math></dt>
<dd>
<div class="paramtext">When using the sparse option, the value of <a class="arg" href="#LISAVE">LISAVE</a> or <a class="arg" href="#LRSAVE">LRSAVE</a> was not sufficient (more detailed information may be directed to the current error message unit).</div></dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq16" id="IFeq16"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>16</m:mn></m:math></dt>
<dd>
<div class="paramtext"><a class="arg" href="#REMESH">REMESH</a> has been changed between calls to D03PPF/D03PPA, which is not permissible.</div>
</dd>
</dl><dl class="ifail">
<dt class="errorhead"><a name="IFeq17" id="IFeq17"/><m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IFAIL"><m:mi mathcolor="#EE0000" mathvariant="bold">IFAIL</m:mi></m:maction><m:mo>=</m:mo><m:mn>17</m:mn></m:math></dt>
<dd>
<div class="paramtext">The remeshing process has produced zero or negative mesh spacing.  You are advised to check <a class="arg" href="#MONITF">MONITF</a> and to try adjusting the values of <a class="arg" href="#DXMESH">DXMESH</a>, <a class="arg" href="#XRATIO">XRATIO</a> and <a class="arg" href="#CON">CON</a>.  Setting <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#IPMINF"><m:mi mathcolor="#EE0000" mathvariant="bold">IPMINF</m:mi></m:maction><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;may provide more information.</div>
</dd>
</dl><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">D03PPF/D03PPA controls the accuracy of the integration in the time direction but not the accuracy of the approximation in space.  The spatial accuracy depends on both the number of mesh points and on their distribution in space.  In the time integration only the local error over a single step is controlled and so the accuracy over a number of steps cannot be guaranteed.  You should therefore test the effect of varying the accuracy parameters, <a class="arg" href="#ATOL">ATOL</a> and <a class="arg" href="#RTOL">RTOL</a>.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">The parameter specification allows you to include equations with only first-order derivatives in the space direction but there is no guarantee that the method of integration will be satisfactory for such systems.  The position and nature of the boundary conditions in particular are critical in defining a stable problem.  It may be advisable in such cases to reduce the whole system to first-order and to use the Keller box scheme routine <a class="rout" href="../D03/d03prf.xml">D03PRF</a>.</div><div class="paramtext">The time taken depends on the complexity of the parabolic system, the accuracy requested, and the frequency of the mesh updates.  For a given system with fixed accuracy and mesh-update frequency it is approximately proportional to <a class="arg" href="#NEQN">NEQN</a>.</div><h2 class="standard"><a class="sec" name="example" id="example"/>9&#160;&#160;Example</h2>
<div class="paramtext">This example uses Burgers Equation, a common test problem for remeshing algorithms, given by

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>U</m:mi></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>t</m:mi></m:mrow>
 </m:mfrac><m:mo>=</m:mo><m:mo>-</m:mo><m:mi>U</m:mi><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>U</m:mi></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>x</m:mi></m:mrow>
 </m:mfrac><m:mo>+</m:mo><m:mi>E</m:mi>
 <m:mfrac other="display">
  <m:mrow><m:msup><m:mo>&#8706;</m:mo><m:mn>2</m:mn></m:msup><m:mi>U</m:mi></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:msup><m:mi>x</m:mi><m:mn>2</m:mn></m:msup></m:mrow>
 </m:mfrac><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

for <m:math><m:mi>x</m:mi><m:mo>&#8712;</m:mo><m:mfenced separators="" open="[" close="]"><m:mn>0</m:mn><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced></m:math>&#160;and <m:math><m:mi>t</m:mi><m:mo>&#8712;</m:mo><m:mfenced separators="" open="[" close="]"><m:mn>0</m:mn><m:mo>,</m:mo><m:mn>1</m:mn></m:mfenced></m:math>, where <m:math><m:mi>E</m:mi></m:math>&#160;is a small constant.</div><div class="paramtext">The initial and boundary conditions are given by the exact solution

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mi>U</m:mi><m:mfenced separators=""><m:mi>x</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced><m:mo>=</m:mo><m:mfrac><m:mrow><m:mn>0.1</m:mn><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>A</m:mi></m:mfenced></m:mrow><m:mo>+</m:mo><m:mn>0.5</m:mn><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>B</m:mi></m:mfenced></m:mrow><m:mo>+</m:mo><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>C</m:mi></m:mfenced></m:mrow></m:mrow>
  <m:mrow><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>A</m:mi></m:mfenced></m:mrow><m:mo>+</m:mo><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>B</m:mi></m:mfenced></m:mrow><m:mo>+</m:mo><m:mrow><m:mi>exp</m:mi><m:mfenced separators=""><m:mo>-</m:mo><m:mi>C</m:mi></m:mfenced></m:mrow></m:mrow>
 </m:mfrac><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

where

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mtable columnalign="right left">
 <m:mtr>
  <m:mtd><m:mi>A</m:mi></m:mtd>
  <m:mtd><m:mo>=</m:mo><m:mfrac other="display">
  <m:mn>50</m:mn><m:mi>E</m:mi></m:mfrac><m:mfenced separators=""><m:mi>x</m:mi><m:mo>-</m:mo> <m:mn>0.5</m:mn><m:mo>+</m:mo> <m:mn>4.95</m:mn><m:mi>t</m:mi></m:mfenced><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd/>
 </m:mtr><m:mtr>
  <m:mtd><m:mi>B</m:mi></m:mtd>
  <m:mtd><m:mo>=</m:mo><m:mfrac other="display">
  <m:mn>250</m:mn><m:mi>E</m:mi></m:mfrac><m:mfenced separators=""><m:mi>x</m:mi><m:mo>-</m:mo> <m:mn>0.5</m:mn><m:mo>+</m:mo> <m:mn>0.75</m:mn><m:mi>t</m:mi></m:mfenced><m:mtext>,</m:mtext></m:mtd>
 </m:mtr><m:mtr>
  <m:mtd/>
 </m:mtr><m:mtr>
  <m:mtd><m:mi>C</m:mi></m:mtd>
  <m:mtd><m:mo>=</m:mo><m:mfrac other="display">
  <m:mn>500</m:mn><m:mi>E</m:mi></m:mfrac><m:mfenced separators=""><m:mi>x</m:mi><m:mo>-</m:mo> <m:mn>0.375</m:mn></m:mfenced><m:mtext>.</m:mtext></m:mtd>
 </m:mtr>
</m:mtable>
</m:math></td><td class="formula2"/></tr></table></div></div><h3 class="standard"><a class="sec" name="examtext" id="examtext"/>9.1&#160;&#160;Program Text</h3>
<div class="paramtext"><b>Note:</b> <span class="italic">the following programs illustrate the use of D03PPF and D03PPA</span>.</div><p><a class="verbatimref" href="../../examples/source/d03ppfe.f">Program Text (d03ppfe.f)</a></p><p><a class="verbatimref" href="../../examples/source/d03ppae.f">Program Text (d03ppae.f)</a></p><h3 class="standard"><a class="sec" name="examdata" id="examdata"/>9.2&#160;&#160;Program Data</h3>
<div class="paramtext">None.</div><h3 class="standard"><a class="sec" name="examresults" id="examresults"/>9.3&#160;&#160;Program Results</h3>
<p><a class="verbatimref" href="../../examples/baseresults/d03ppfe.r">Program Results (d03ppfe.r)</a></p><p><a class="verbatimref" href="../../examples/baseresults/d03ppae.r">Program Results (d03ppae.r)</a></p><div class="figure"><a name="d03ppf-plot" id="d03ppf-plot"/><img src="../figures/d03ppf-plot.png" alt="Example Program Plot for d03ppf-plot"/></div>
<hr/><div><a class="rout" href="../../pdf/D03/d03ppf.pdf">D03PPF/D03PPA (PDF version)</a></div><div><a class="chap" href="d03conts.xml">D03 Chapter Contents</a></div><div><a class="chapint" href="d03intro.xml">D03 Chapter Introduction</a></div>
<div><a class="htmltoc" href="../FRONTMATTER/manconts.xml">NAG Library Manual</a></div>
<div><hr/><a class="genint" href="../FRONTMATTER/copyright.xml">&#169; The Numerical Algorithms Group Ltd, Oxford, UK. 2009</a></div></body></html>
