<?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>D03PCF/D03PCA : 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/d03pcf.pdf">D03PCF/D03PCA (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/>D03PCF/D03PCA</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 D03PCF</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 D03PCA</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">D03PCF/D03PCA integrates a system of linear or nonlinear parabolic partial differential equations (PDEs) in one space variable.  The spatial discretization is performed using finite differences, and the method of lines is employed to reduce the PDEs to a system of ordinary differential equations (ODEs).  The resulting system is solved using a backward differentiation formula method.</div><div class="paramtext">D03PCA is a version of D03PCF 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 D03PCF</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;D03PCF&#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="#U">U</a>, <a class="arg" href="#NPTS">NPTS</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#ACC">ACC</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, 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(NPDE,NPTS), X(NPTS), ACC, RSAVE(LRSAVE)</td></tr><tr><td class="tdfspec1">EXTERNAL</td><td class="tdfspec2">PDEDEF, BNDARY</td></tr></table><h3 class="standard"><a class="sec" name="routAspec" id="routAspec"/>2.2&#160;&#160;Specification for D03PCA</h3>
<table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;D03PCA&#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="#U">U</a>, <a class="arg" href="#NPTS">NPTS</a>, <a class="arg" href="#X">X</a>, <a class="arg" href="#ACC">ACC</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, 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(NPDE,NPTS), X(NPTS), ACC, RSAVE(LRSAVE), RUSER(*), RWSAV(1100)</td></tr><tr><td class="tdfspec1">LOGICAL</td><td class="tdfspec2">LWSAV(100)</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</td></tr></table><h2 class="standard"><a class="sec" name="description" id="description"/>3&#160;&#160;Description</h2>
<div class="paramtext">D03PCF/D03PCA integrates the system of parabolic equations:

<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:mtext>, &#8195;</m:mtext><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>

where <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;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 the vector <m:math><m:mi>U</m:mi></m:math>&#160;is the set of solution values

<div class="formula-eqn"><a name="eqn2" id="eqn2"/><table class="formula-eqn"><tr><td class="formula-eqn"><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="formula-eqn2">
      (2)
     </td></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 its partial derivative with respect to <m:math><m:mi>x</m:mi></m:math>.  Note that <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 not depend on <m:math>
 <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:math>.</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 user-defined 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>.  The co-ordinate system in space is defined by the value 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.  The mesh should be chosen in accordance with the expected behaviour of the solution.</div><div class="paramtext">The system 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;which must be specified in <a class="arg" href="#PDEDEF">PDEDEF</a>.</div><div class="paramtext">The initial 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;must be given at <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:msub><m:mi>t</m:mi><m:mn>0</m:mn></m:msub></m:math>.  The functions <m:math><m:msub><m:mi>R</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>, which may be thought of as fluxes, are also used in the definition of the boundary conditions for each equation.  The boundary conditions must have the form

<div class="formula-eqn"><a name="eqn3" id="eqn3"/><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: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: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">
      (3)
     </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>.</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"><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">(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>,
<m:math><m:msub><m:mi>Q</m:mi><m:mi>i</m:mi></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">the evaluation 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>,
<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 at the mid-points of the mesh intervals 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 mesh points <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>;</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(iv)</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 problem; and</td>
</tr><tr>
<td style="width:2.1em;" valign="baseline">(v)</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 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:math>&#160;ODEs in the time direction.  This system is then integrated forwards in time using a backward differentiation formula method.</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="ref303" id="ref303"/>Dew P M and Walsh J (1981)  A set of library routines for solving parabolic equations in one space variable <i>ACM Trans. Math. Software</i> <b>7</b> 295&#8211;314 </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 in the system 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 compute 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. <a class="arg" href="#PDEDEF">PDEDEF</a> is called approximately midway between each pair of mesh points in turn by D03PCF/D03PCA.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#PDEDEF">PDEDEF</a>
   for D03PCF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;PDEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03pcf.xml#PDEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_T">T</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_X">X</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_U">U</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_UX">UX</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_P">P</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_Q">Q</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_R">R</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_IRES">IRES</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, IRES</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, X, U(NPDE), UX(NPDE), P(NPDE,NPDE), Q(NPDE), R(NPDE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#PDEDEF">PDEDEF</a>
   for D03PCA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;PDEDEF&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03pcf.xml#PDEDEF_NPDE">NPDE</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_T">T</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_X">X</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_U">U</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_UX">UX</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_P">P</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_Q">Q</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_R">R</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_IRES">IRES</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_IUSER">IUSER</a>, <a class="arg" href="../D03/d03pcf.xml#PDEDEF_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, 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), 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/d03pcf.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/d03pcf.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_P" id="PDEDEF_P"/>6: &#160;&#160;&#8194; P(<a class="arg" href="../D03/d03pcf.xml#PDEDEF_NPDE">NPDE</a>,<a class="arg" href="../D03/d03pcf.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: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"/>7: &#160;&#160;&#8194; Q(<a class="arg" href="../D03/d03pcf.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: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"/>8: &#160;&#160;&#8194; R(<a class="arg" href="../D03/d03pcf.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: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"/>9: &#160;&#160;&#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/d03pcf.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 D03PCF/D03PCA 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 D03PCA.  Users of D03PCF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="PDEDEF_IUSER" id="PDEDEF_IUSER"/>10: &#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"/>11: &#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 D03PCA with the parameters <a class="arg" href="../D03/d03pcf.xml#PDEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03pcf.xml#PDEDEF_RUSER">RUSER</a> as supplied to D03PCA. You are free to use the arrays <a class="arg" href="../D03/d03pcf.xml#PDEDEF_IUSER">IUSER</a> and <a class="arg" href="../D03/d03pcf.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 D03PCF/D03PCA 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 compute 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 define the boundary conditions as in equation <a class="eqn" href="#eqn3">(3)</a>.</div><div class="subprog">
<div class="paramtext">The specification of 
   <a class="arg" href="#BNDARY">BNDARY</a>
   for D03PCF is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;BNDARY&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03pcf.xml#BNDARY_NPDE">NPDE</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_T">T</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_U">U</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_UX">UX</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_IBND">IBND</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_BETA">BETA</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_GAMMA">GAMMA</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_IRES">IRES</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, IBND, IRES</td></tr><tr><td class="tdfspec1"><b><i>double&#160;precision</i></b></td><td class="tdfspec2">T, U(NPDE), UX(NPDE), BETA(NPDE), GAMMA(NPDE)</td></tr></table>
<div class="paramtext">The specification of 
   <a class="arg" href="#BNDARY">BNDARY</a>
   for D03PCA is:</div><table class="fspec"><tr><td class="tdfspec1">SUBROUTINE&#160;BNDARY&#160;(</td><td class="tdfspec2"><a class="arg" href="../D03/d03pcf.xml#BNDARY_NPDE">NPDE</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_T">T</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_U">U</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_UX">UX</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_IBND">IBND</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_BETA">BETA</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_GAMMA">GAMMA</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_IRES">IRES</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_IUSER">IUSER</a>, <a class="arg" href="../D03/d03pcf.xml#BNDARY_RUSER">RUSER</a>)</td></tr><tr><td class="tdfspec1">INTEGER</td><td class="tdfspec2">NPDE, 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), 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/d03pcf.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/d03pcf.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/d03pcf.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/d03pcf.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_IBND" id="BNDARY_IBND"/>5: &#160;&#160;&#8194; IBND &#8211; INTEGER<span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: determines the position of the boundary conditions. 

<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>Indicates that <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"/>6: &#160;&#160;&#8194; BETA(<a class="arg" href="../D03/d03pcf.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/d03pcf.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"/>7: &#160;&#160;&#8194; GAMMA(<a class="arg" href="../D03/d03pcf.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:mfenced></m:math>&#160;at the boundary specified by <a class="arg" href="../D03/d03pcf.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"/>8: &#160;&#160;&#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/d03pcf.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 D03PCF/D03PCA 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 D03PCA.  Users of D03PCF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="BNDARY_IUSER" id="BNDARY_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="BNDARY_RUSER" id="BNDARY_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="#BNDARY">BNDARY</a> is called from D03PCA with the parameters <a class="arg" href="../D03/d03pcf.xml#BNDARY_IUSER">IUSER</a> and <a class="arg" href="../D03/d03pcf.xml#BNDARY_RUSER">RUSER</a> as supplied to D03PCA. You are free to use the arrays <a class="arg" href="../D03/d03pcf.xml#BNDARY_IUSER">IUSER</a> and <a class="arg" href="../D03/d03pcf.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 D03PCF/D03PCA 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"/>7: &#160;&#160;&#8194; U(<a class="arg" href="#NPDE">NPDE</a>,<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 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;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>&#160;and the 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>j</m:mi></m:mfenced></m:mrow></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="#NPTS"><m:mi mathcolor="#EE0000" mathvariant="bold">NPTS</m:mi></m:maction></m:math>.</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:mi>i</m:mi><m:mi>j</m:mi></m:mfenced></m:mrow></m:math>&#160;will contain the computed solution 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"/>8: &#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"/>9: &#160;&#160;&#8194; X(<a class="arg" href="#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 mesh points in the spatial 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>, 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></dd><dt class="paramhead"><a name="ACC" id="ACC"/>10: &#8194; ACC &#8211; <span class="bitalic">double precision</span><span class="pclass">Input</span></dt><dd>
<div class="paramtext"><i>On entry</i>: a positive quantity for controlling the local error estimate in the time integration. If <m:math><m:mi>E</m:mi><m:mfenced separators=""><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mfenced></m:math>&#160;is the estimated error for <m:math><m:msub><m:mi>U</m:mi><m:mi>i</m:mi></m:msub></m:math>&#160;at the <m:math><m:mi>j</m:mi></m:math>th mesh point, the error test is:

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced open="|" close="|" separators=""><m:mi>E</m:mi><m:mfenced separators=""><m:mi>i</m:mi><m:mo>,</m:mo><m:mi>j</m:mi></m:mfenced></m:mfenced><m:mo>=</m:mo><m:maction actiontype="link" dsi:type="simple" dsi:href="#ACC"><m:mi mathcolor="#EE0000" mathvariant="bold">ACC</m:mi></m:maction><m:mo>&#215;</m:mo><m:mfenced separators=""><m:mn>1.0</m:mn><m:mo>+</m:mo><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:mi>j</m:mi></m:mfenced></m:mrow></m:mfenced></m:mfenced><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div></div>
<div class="paramtext"><i>Constraint</i>:
  <m:math><m:maction actiontype="link" dsi:type="simple" dsi:href="#ACC"><m:mi mathcolor="#EE0000" mathvariant="bold">ACC</m:mi></m:maction><m:mo>&gt;</m:mo><m:mn>0.0</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="RSAVE" id="RSAVE"/>11: &#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"/>12: &#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 D03PCF/D03PCA is called.</div><div class="paramtext"><i>Constraint</i>:
  <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>6</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>10</m:mn></m:mfenced><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>&#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: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>21</m:mn></m:mfenced><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:mspace linebreak="newline"/><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:mn>54</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="ISAVE" id="ISAVE"/>13: &#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. 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 last backward differentiation formula method used.</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 an ODE residual evaluation 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></dd><dt class="paramhead"><a name="LISAVE" id="LISAVE"/>14: &#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 D03PCF/D03PCA is called.</div><div class="paramtext"><i>Constraint</i>:
  <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="#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:mn>24</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="ITASK" id="ITASK"/>15: &#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></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>&#160;or <m:math><m:mn>3</m:mn></m:math>.
</div></dd><dt class="paramhead"><a name="ITRACE" id="ITRACE"/>16: &#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 D03PCF/D03PCA and the underlying ODE solver. <a class="arg" href="#ITRACE">ITRACE</a> may take the value <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, <m:math><m:mn>0</m:mn></m:math>, <m:math><m:mn>1</m:mn></m:math>, <m:math><m:mn>2</m:mn></m:math>&#160;or <m:math><m:mn>3</m:mn></m:math>. 

<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>=</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>&gt;</m:mo><m:mn>0</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></dl>
<div class="paramtext">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>&lt;</m:mo><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>, then <m:math><m:mrow><m:mo>-</m:mo><m:mn>1</m:mn></m:mrow></m:math>&#160;is assumed and similarly 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>3</m:mn></m:math>, then <m:math><m:mn>3</m:mn></m:math>&#160;is assumed.</div>
<div class="paramtext">The advisory messages are given in greater detail as <a class="arg" href="#ITRACE">ITRACE</a> increases. 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"/>17: &#8194; IND &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><i>On entry</i>: indicates whether this is a continuation call or a new integration.

<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> should be reset between calls to D03PCF/D03PCA.</dd></dl>
</div><div class="paramtext"><i>Constraint</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>0</m:mn></m:math>&#160;or <m:math><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"/>18: &#8194; IFAIL &#8211; INTEGER<span class="pclass">Input/Output</span></dt><dd>
<div class="paramtext"><b>Note:</b> <span class="italic">for D03PCA, <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 D03PCA.  Users of D03PCF therefore need not read the remainder of this description</span>.</dd><dt class="paramhead"><a name="IUSER" id="IUSER"/>18: &#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 D03PCA, but is passed directly to <a class="arg" href="#PDEDEF">PDEDEF</a> and <a class="arg" href="#BNDARY">BNDARY</a> and may be used to pass information to these routines.</div></dd><dt class="paramhead"><a name="RUSER" id="RUSER"/>19: &#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 D03PCA, but is passed directly to <a class="arg" href="#PDEDEF">PDEDEF</a> and <a class="arg" href="#BNDARY">BNDARY</a> and may be used to pass information to these routines.</div></dd><dt class="paramhead"><a name="CWSAV" id="CWSAV"/>20: &#8194; CWSAV(<m:math><m:mn>10</m:mn></m:math>) &#8211; CHARACTER*80 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="#CWSAV">CWSAV</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="#CWSAV">CWSAV</a> must be unchanged from the previous call to the routine.</div></dd><dt class="paramhead"><a name="LWSAV" id="LWSAV"/>21: &#8194; LWSAV(<m:math><m:mn>100</m:mn></m:math>) &#8211; LOGICAL 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="#LWSAV">LWSAV</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="#LWSAV">LWSAV</a> must be unchanged from the previous call to the routine.</div></dd><dt class="paramhead"><a name="IWSAV" id="IWSAV"/>22: &#8194; IWSAV(<m:math><m:mn>505</m:mn></m:math>) &#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="#IWSAV">IWSAV</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="#IWSAV">IWSAV</a> must be unchanged from the previous call to the routine.</div></dd><dt class="paramhead"><a name="RWSAV" id="RWSAV"/>23: &#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><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="#RWSAV">RWSAV</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="#RWSAV">RWSAV</a> must be unchanged from the previous call to the routine.</div></dd><dt class="paramhead"><a name="IFAIL2" id="IFAIL2"/>24: &#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>&#8804;</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>,</td></tr><tr><td class="ifail1">or</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>&#160;or <m:math><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="#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"><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:mtext>the mesh points &#8203;</m:mtext><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 not ordered,</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="#ACC"><m:mi mathcolor="#EE0000" mathvariant="bold">ACC</m:mi></m:maction><m:mo>&#8804;</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="#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"><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></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 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>&#160;with the supplied value of <a class="arg" href="#ACC">ACC</a>. 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 errors or corrector convergence test failures on an attempted step, before completing the requested task. The problem may have a singularity or <a class="arg" href="#ACC">ACC</a> is too small for the integration to continue. 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="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/d03pcf.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> or <a class="arg" href="#BNDARY">BNDARY</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/d03pcf.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> or <a class="arg" href="#BNDARY">BNDARY</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 value of <a class="arg" href="#ACC">ACC</a> is 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> or <a class="arg" href="#BNDARY">BNDARY</a>, <a class="arg" href="../D03/d03pcf.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="#ACC">ACC</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>.)</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).</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">Not applicable.</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">Not applicable.</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><h2 class="standard"><a class="sec" name="accuracy" id="accuracy"/>7&#160;&#160;Accuracy</h2>
<div class="paramtext">D03PCF/D03PCA 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 parameter, <a class="arg" href="#ACC">ACC</a>.</div><h2 class="standard"><a class="sec" name="fcomments" id="fcomments"/>8&#160;&#160;Further Comments</h2>
<div class="paramtext">D03PCF/D03PCA is designed to solve parabolic systems (possibly including some elliptic equations) with second-order derivatives in space.  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/d03pef.xml">D03PEF</a>.</div><div class="paramtext">The time taken depends on the complexity of the parabolic system and on the accuracy requested.</div><h2 class="standard"><a class="sec" name="example" id="example"/>9&#160;&#160;Example</h2>
<div class="paramtext">We use the example given in <a class="ref" href="#ref303">Dew and Walsh (1981)</a> which consists of an elliptic-parabolic pair of PDEs.  The problem was originally derived from a single third-order in space PDE.  The elliptic equation is

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfrac><m:mn>1</m:mn><m:mi>r</m:mi></m:mfrac><m:mfrac other="display">
 <m:mo>&#8706;</m:mo><m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac>
<m:mfenced separators=""><m:msup><m:mi>r</m:mi><m:mn>2</m:mn></m:msup><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac></m:mfenced><m:mo>=</m:mo><m:mn>4</m:mn><m:mi>&#945;</m:mi>
<m:mfenced separators=""><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub><m:mo>+</m:mo><m:mi>r</m:mi><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac></m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

and the parabolic equation is

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfenced separators=""><m:mn>1</m:mn><m:mo>-</m:mo><m:msup><m:mi>r</m:mi><m:mn>2</m:mn></m:msup></m:mfenced> <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></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:mfrac><m:mn>1</m:mn><m:mi>r</m:mi></m:mfrac><m:mfrac other="display">
 <m:mo>&#8706;</m:mo><m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac>
<m:mfenced separators=""><m:mi>r</m:mi>
<m:mfenced separators=""><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac><m:mo>-</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub><m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub></m:mfenced>
</m:mfenced>
</m:math></td><td class="formula2"/></tr></table></div>

where <m:math><m:mfenced separators=""><m:mi>r</m:mi><m:mo>,</m:mo><m:mi>t</m:mi></m:mfenced><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:mo>&#215;</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>.  The boundary conditions are given by

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>&#8195; at &#8203;</m:mtext><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0</m:mn><m:mtext>,</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

and

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:mfrac other="display">
 <m:mo>&#8706;</m:mo><m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac><m:mfenced separators=""><m:mi>r</m:mi><m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub></m:mfenced><m:mo>=</m:mo> <m:mn>0</m:mn> <m:mtext>&#8195; and &#8195;</m:mtext> <m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub><m:mo>=</m:mo> <m:mn>0</m:mn> <m:mtext>&#8195; at &#8203;</m:mtext> <m:mi>r</m:mi><m:mo>=</m:mo><m:mn>1</m:mn><m:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div></div><div class="paramtext">The first of these boundary conditions implies that the flux term in the second PDE,
<m:math>
<m:mfenced separators="">
 <m:mfrac other="display">
  <m:mrow><m:mo>&#8706;</m:mo><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub></m:mrow>
  <m:mrow><m:mo>&#8706;</m:mo><m:mi>r</m:mi></m:mrow>
 </m:mfrac>
 <m:mo>-</m:mo>
 <m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub>
 <m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub>
</m:mfenced>
</m:math>, is zero at <m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>.</div><div class="paramtext">The initial conditions at <m:math><m:mi>t</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math>&#160;are given by

<div class="formula"><table class="formula"><tr><td class="formula"><m:math display="block">
<m:msub><m:mi>U</m:mi><m:mn>1</m:mn></m:msub><m:mo>=</m:mo><m:mn>2</m:mn><m:mi>&#945;</m:mi><m:mi>r</m:mi><m:mtext>&#8195; and &#8195;</m:mtext><m:msub><m:mi>U</m:mi><m:mn>2</m:mn></m:msub><m:mo>=</m:mo><m:mn>1.0</m:mn><m:mtext>, &#8195; &#8203;</m:mtext><m:mi>r</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:mtext>.</m:mtext>
</m:math></td><td class="formula2"/></tr></table></div>

The value <m:math><m:mi>&#945;</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>&#160;was used in the problem definition.  A mesh of <m:math><m:mn>20</m:mn></m:math>&#160;points was used with a circular mesh spacing to cluster the points towards the right-hand side of the spatial interval,
<m:math><m:mi>r</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>.</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 D03PCF and D03PCA</span>.</div><p><a class="verbatimref" href="../../examples/source/d03pcfe.f">Program Text (d03pcfe.f)</a></p><p><a class="verbatimref" href="../../examples/source/d03pcae.f">Program Text (d03pcae.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/d03pcfe.r">Program Results (d03pcfe.r)</a></p><p><a class="verbatimref" href="../../examples/baseresults/d03pcae.r">Program Results (d03pcae.r)</a></p><div class="figure"><a name="d03pcf1-plot" id="d03pcf1-plot"/><img src="../figures/d03pcf1-plot.png" alt="Example Program Plot for d03pcf1-plot"/></div><div class="figure"><a name="d03pcf2-plot" id="d03pcf2-plot"/><img src="../figures/d03pcf2-plot.png" alt="Example Program Plot for d03pcf2-plot"/></div>
<hr/><div><a class="rout" href="../../pdf/D03/d03pcf.pdf">D03PCF/D03PCA (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>
