123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <title>PUMA: /Users/home/WC/puma/src/restartmod.f90 Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript">
- $(document).ready(initResizable);
- </script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { searchBox.OnSelectItem(0); });
- </script>
- </head>
- <body>
- <div id="top"><!-- do not remove this div! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
-
- <td id="projectlogo"><img alt="Logo" src="puma103.jpg"/></td>
-
-
- <td style="padding-left: 0.5em;">
- <div id="projectname">PUMA
-  <span id="projectnumber">219</span>
- </div>
- <div id="projectbrief">Portable University Model of the Atmosphere</div>
- </td>
-
-
-
- </tr>
- </tbody>
- </table>
- </div>
- <!-- Generated by Doxygen 1.7.5.1 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Data Types List</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>File Members</span></a></li>
- </ul>
- </div>
- </div>
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- initNavTree('restartmod_8f90.html','');
- </script>
- <div id="doc-content">
- <div class="header">
- <div class="headertitle">
- <div class="title">/Users/home/WC/puma/src/restartmod.f90</div> </div>
- </div>
- <div class="contents">
- <a href="restartmod_8f90.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="classrestartmod.html">00001</a> <span class="keyword">module</span> <a class="code" href="classrestartmod.html">restartmod</a>
- <a name="l00002"></a><a class="code" href="classrestartmod.html#a119672601ee8ad1243340351dc2faf68">00002</a> <span class="keywordtype">integer</span>, <span class="keywordtype">parameter</span> :: nresdim = 200 <span class="comment">! Max number of records</span>
- <a name="l00003"></a><a class="code" href="classrestartmod.html#a52e198eada6191afcaadc69e5e5095bd">00003</a> <span class="keywordtype">integer</span>, <span class="keywordtype">parameter</span> :: nreaunit = 33 <span class="comment">! FORTRAN unit for reading</span>
- <a name="l00004"></a><a class="code" href="classrestartmod.html#af19c3e29c219ca79f3ab6b6b18df1f41">00004</a> <span class="keywordtype">integer</span>, <span class="keywordtype">parameter</span> :: nwriunit = 34 <span class="comment">! FORTRAN unit for writing</span>
- <a name="l00005"></a><a class="code" href="classrestartmod.html#a15d8821292e2f6f6b26576d57ca25af5">00005</a> <span class="keywordtype">integer</span> :: nexcheck = 1 <span class="comment">! Extended checks</span>
- <a name="l00006"></a><a class="code" href="classrestartmod.html#a45dcb9f30f8dfa87fcbf479bf0faee46">00006</a> <span class="keywordtype">integer</span> :: nresnum = 0 <span class="comment">! Actual number of records</span>
- <a name="l00007"></a><a class="code" href="classrestartmod.html#a77d97f720a628d5e57e7589cd1dbc7c8">00007</a> <span class="keywordtype">integer</span> :: nlastrec = 0 <span class="comment">! Last read record</span>
- <a name="l00008"></a><a class="code" href="classrestartmod.html#a8a3daeed29c348b61636e5e6994b9a28">00008</a> <span class="keywordtype">integer</span> :: nud = 6 <span class="comment">! Standard output</span>
- <a name="l00009"></a><a class="code" href="classrestartmod.html#a7a18509625928d4fe3a5d1f5033589ab">00009</a> <span class="keywordtype">character (len=16)</span> :: yresnam(nresdim) <span class="comment">! Array of record names</span>
- <a name="l00010"></a>00010 <span class="keyword"> end module restartmod</span>
- <a name="l00011"></a>00011
- <a name="l00012"></a>00012 <span class="comment">! ======================</span>
- <a name="l00013"></a>00013 <span class="comment">! SUBROUTINE RESTART_INI</span>
- <a name="l00014"></a>00014 <span class="comment">! ======================</span>
- <a name="l00015"></a>00015
- <a name="l00016"></a><a class="code" href="restartmod_8f90.html#a1afb89bd2af13e06ddcbeeb393eeb191">00016</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a1afb89bd2af13e06ddcbeeb393eeb191">restart_ini</a>(lrestart,yrfile)
- <a name="l00017"></a>00017 use <span class="keywordflow">restartmod</span>
- <a name="l00018"></a>00018
- <a name="l00019"></a>00019 <span class="keywordtype">logical</span> :: lrestart
- <a name="l00020"></a>00020 <span class="keywordtype">character (len=*)</span> :: yrfile
- <a name="l00021"></a>00021 <span class="keywordtype">character (len=16)</span> :: yn <span class="comment">! variable name</span>
- <a name="l00022"></a>00022
- <a name="l00023"></a>00023 <span class="keyword">inquire</span>(file=yrfile,exist=lrestart)
- <a name="l00024"></a>00024 <span class="keyword">if</span> (lrestart) <span class="keyword">then</span>
- <a name="l00025"></a>00025 <span class="keyword">open</span>(nreaunit,file=yrfile,form=<span class="stringliteral">'unformatted'</span>)
- <a name="l00026"></a>00026 <span class="keyword">do</span>
- <a name="l00027"></a>00027 <span class="keyword">read</span> (nreaunit,IOSTAT=iostat) yn
- <a name="l00028"></a>00028 <span class="keyword">if</span> (iostat /= 0) exit
- <a name="l00029"></a>00029 nresnum = nresnum + 1
- <a name="l00030"></a>00030 yresnam(nresnum) = yn
- <a name="l00031"></a>00031 <span class="keyword">read</span> (nreaunit,IOSTAT=iostat)
- <a name="l00032"></a>00032 <span class="keyword">if</span> (iostat /= 0) exit
- <a name="l00033"></a>00033 <span class="keyword">if</span> (nresnum >= nresdim) <span class="keyword">then</span>
- <a name="l00034"></a>00034 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Too many variables in restart file'</span>
- <a name="l00035"></a>00035 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Increase NRESDIM in module restartmod'</span>
- <a name="l00036"></a>00036 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'*** Error Stop ***'</span>
- <a name="l00037"></a>00037 stop
- <a name="l00038"></a>00038 <span class="keyword">endif</span>
- <a name="l00039"></a>00039 <span class="keyword">enddo</span>
- <a name="l00040"></a>00040
- <a name="l00041"></a>00041 <span class="keyword">write</span>(nud,<span class="stringliteral">'(a,i4,3a/)'</span>) <span class="stringliteral">'Found '</span>,nresnum, &
- <a name="l00042"></a>00042 <span class="stringliteral">' variables in file <'</span>,trim(yrfile),<span class="stringliteral">'>'</span>
- <a name="l00043"></a>00043 <span class="keyword">do</span> j = 1 , nresnum
- <a name="l00044"></a>00044 <span class="keyword">write</span>(nud,<span class="stringliteral">'(i4," : ",8x,1x,a)'</span>) j,yresnam(j)
- <a name="l00045"></a>00045 <span class="keyword">enddo</span>
- <a name="l00046"></a>00046 nlastrec = nresnum
- <a name="l00047"></a>00047 <span class="keyword">endif</span> <span class="comment">! (lrestart)</span>
- <a name="l00048"></a>00048
- <a name="l00049"></a>00049 <span class="comment">! file must be left open for further access</span>
- <a name="l00050"></a>00050
- <a name="l00051"></a>00051 return
- <a name="l00052"></a>00052 <span class="keyword"> end subroutine restart_ini </span>
- <a name="l00053"></a>00053
- <a name="l00054"></a>00054
- <a name="l00055"></a>00055 <span class="comment">! ==========================</span>
- <a name="l00056"></a>00056 <span class="comment">! SUBROUTINE RESTART_PREPARE</span>
- <a name="l00057"></a>00057 <span class="comment">! ==========================</span>
- <a name="l00058"></a>00058
- <a name="l00059"></a><a class="code" href="restartmod_8f90.html#affb1e8d0fa727d359e1292ada8ba0f2b">00059</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#affb1e8d0fa727d359e1292ada8ba0f2b">restart_prepare</a>(ywfile)
- <a name="l00060"></a>00060 use <span class="keywordflow">restartmod</span>
- <a name="l00061"></a>00061
- <a name="l00062"></a>00062 <span class="keywordtype">character (len=*)</span> :: ywfile
- <a name="l00063"></a>00063
- <a name="l00064"></a>00064 <span class="keyword">open</span>(nwriunit,file=ywfile,form=<span class="stringliteral">'unformatted'</span>)
- <a name="l00065"></a>00065
- <a name="l00066"></a>00066 return
- <a name="l00067"></a>00067 <span class="keyword"> end subroutine restart_prepare</span>
- <a name="l00068"></a>00068
- <a name="l00069"></a>00069
- <a name="l00070"></a>00070 <span class="comment">! =======================</span>
- <a name="l00071"></a>00071 <span class="comment">! SUBROUTINE RESTART_STOP</span>
- <a name="l00072"></a>00072 <span class="comment">! =======================</span>
- <a name="l00073"></a>00073
- <a name="l00074"></a><a class="code" href="restartmod_8f90.html#a1a30dfa47b42e8b1354434ebf55eb6f7">00074</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a1a30dfa47b42e8b1354434ebf55eb6f7">restart_stop</a>
- <a name="l00075"></a>00075 use <span class="keywordflow">restartmod</span>
- <a name="l00076"></a>00076
- <a name="l00077"></a>00077 <span class="keyword">close</span> (nreaunit)
- <a name="l00078"></a>00078 <span class="keyword">close</span> (nwriunit)
- <a name="l00079"></a>00079
- <a name="l00080"></a>00080 return
- <a name="l00081"></a>00081 <span class="keyword"> end subroutine restart_stop</span>
- <a name="l00082"></a>00082
- <a name="l00083"></a>00083
- <a name="l00084"></a>00084 <span class="comment">! ==============================</span>
- <a name="l00085"></a>00085 <span class="comment">! SUBROUTINE GET_RESTART_INTEGER</span>
- <a name="l00086"></a>00086 <span class="comment">! ==============================</span>
- <a name="l00087"></a>00087
- <a name="l00088"></a><a class="code" href="restartmod_8f90.html#a31b0dacd7c45db47ddaedb4d402b44ba">00088</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a31b0dacd7c45db47ddaedb4d402b44ba">get_restart_integer</a>(yn,kv)
- <a name="l00089"></a>00089 use <span class="keywordflow">restartmod</span>
- <a name="l00090"></a>00090
- <a name="l00091"></a>00091 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00092"></a>00092 <span class="keywordtype">integer</span> :: kv
- <a name="l00093"></a>00093
- <a name="l00094"></a>00094 <span class="keyword">do</span> j = 1 , nresnum
- <a name="l00095"></a>00095 <span class="keyword">if</span> (trim(yn) == trim(yresnam(j))) <span class="keyword">then</span>
- <a name="l00096"></a>00096 call <a class="code" href="restartmod_8f90.html#a448c48ee0bf18c6f95ca432ec7f04666">fileseek</a>(yn,j)
- <a name="l00097"></a>00097 <span class="keyword">read</span> (nreaunit) kv
- <a name="l00098"></a>00098 nlastrec = nlastrec + 1
- <a name="l00099"></a>00099 return
- <a name="l00100"></a>00100 <span class="keyword">endif</span>
- <a name="l00101"></a>00101 <span class="keyword">enddo</span>
- <a name="l00102"></a>00102 <span class="keyword">if</span> (nexcheck == 1) <span class="keyword">then</span>
- <a name="l00103"></a>00103 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'*** Error in get_restart_integer ***'</span>
- <a name="l00104"></a>00104 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Requested integer {'</span>,yn,<span class="stringliteral">'} was not found'</span>
- <a name="l00105"></a>00105 stop
- <a name="l00106"></a>00106 <span class="keyword">endif</span>
- <a name="l00107"></a>00107 return
- <a name="l00108"></a>00108 <span class="keyword"> end subroutine get_restart_integer</span>
- <a name="l00109"></a>00109
- <a name="l00110"></a>00110
- <a name="l00111"></a>00111 <span class="comment">! ============================</span>
- <a name="l00112"></a>00112 <span class="comment">! SUBROUTINE GET_RESTART_ARRAY</span>
- <a name="l00113"></a>00113 <span class="comment">! ============================</span>
- <a name="l00114"></a>00114
- <a name="l00115"></a><a class="code" href="restartmod_8f90.html#af0f1ce9b6762aa2537cc22d5fc319b7c">00115</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#af0f1ce9b6762aa2537cc22d5fc319b7c">get_restart_array</a>(yn,pa,k1,k2,k3)
- <a name="l00116"></a>00116 use <span class="keywordflow">restartmod</span>
- <a name="l00117"></a>00117
- <a name="l00118"></a>00118 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00119"></a>00119 <span class="keywordtype">real</span> :: pa(k2,k3)
- <a name="l00120"></a>00120
- <a name="l00121"></a>00121 <span class="keyword">do</span> j = 1 , nresnum
- <a name="l00122"></a>00122 <span class="keyword">if</span> (trim(yn) == trim(yresnam(j))) <span class="keyword">then</span>
- <a name="l00123"></a>00123 call <a class="code" href="restartmod_8f90.html#a448c48ee0bf18c6f95ca432ec7f04666">fileseek</a>(yn,j)
- <a name="l00124"></a>00124 <span class="keyword">read</span> (nreaunit) pa(1:k1,:)
- <a name="l00125"></a>00125 nlastrec = nlastrec + 1
- <a name="l00126"></a>00126 return
- <a name="l00127"></a>00127 <span class="keyword">endif</span>
- <a name="l00128"></a>00128 <span class="keyword">enddo</span>
- <a name="l00129"></a>00129 <span class="keyword">if</span> (nexcheck == 1) <span class="keyword">then</span>
- <a name="l00130"></a>00130 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'*** Error in get_restart_array ***'</span>
- <a name="l00131"></a>00131 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Requested array {'</span>,yn,<span class="stringliteral">'} was not found'</span>
- <a name="l00132"></a>00132 stop
- <a name="l00133"></a>00133 <span class="keyword">endif</span>
- <a name="l00134"></a>00134 return
- <a name="l00135"></a>00135 <span class="keyword"> end subroutine get_restart_array</span>
- <a name="l00136"></a>00136
- <a name="l00137"></a>00137
- <a name="l00138"></a>00138 <span class="comment">! ==============================</span>
- <a name="l00139"></a>00139 <span class="comment">! SUBROUTINE PUT_RESTART_INTEGER</span>
- <a name="l00140"></a>00140 <span class="comment">! ==============================</span>
- <a name="l00141"></a>00141
- <a name="l00142"></a><a class="code" href="restartmod_8f90.html#a16bdaf2753fbc691f99b0837e5de11db">00142</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a16bdaf2753fbc691f99b0837e5de11db">put_restart_integer</a>(yn,kv)
- <a name="l00143"></a>00143 use <span class="keywordflow">restartmod</span>
- <a name="l00144"></a>00144
- <a name="l00145"></a>00145 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00146"></a>00146 <span class="keywordtype">character (len=16)</span> :: yy
- <a name="l00147"></a>00147 <span class="keywordtype">integer</span> :: kv
- <a name="l00148"></a>00148
- <a name="l00149"></a>00149 yy = yn
- <a name="l00150"></a>00150 <span class="keyword">write</span>(nwriunit) yy
- <a name="l00151"></a>00151 <span class="keyword">write</span>(nwriunit) kv
- <a name="l00152"></a>00152 return
- <a name="l00153"></a>00153 <span class="keyword"> end subroutine put_restart_integer</span>
- <a name="l00154"></a>00154
- <a name="l00155"></a>00155
- <a name="l00156"></a>00156 <span class="comment">! ============================</span>
- <a name="l00157"></a>00157 <span class="comment">! SUBROUTINE PUT_RESTART_ARRAY</span>
- <a name="l00158"></a>00158 <span class="comment">! ============================</span>
- <a name="l00159"></a>00159
- <a name="l00160"></a><a class="code" href="restartmod_8f90.html#a52485001dbbaed032e48d894e6302c22">00160</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a52485001dbbaed032e48d894e6302c22">put_restart_array</a>(yn,pa,k1,k2,k3)
- <a name="l00161"></a>00161 use <span class="keywordflow">restartmod</span>
- <a name="l00162"></a>00162
- <a name="l00163"></a>00163 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00164"></a>00164 <span class="keywordtype">character (len=16)</span> :: yy
- <a name="l00165"></a>00165 <span class="keywordtype">integer</span> :: k1,k2,k3
- <a name="l00166"></a>00166 <span class="keywordtype">real</span> :: pa(k2,k3)
- <a name="l00167"></a>00167
- <a name="l00168"></a>00168 yy = yn
- <a name="l00169"></a>00169 <span class="keyword">write</span>(nwriunit) yy
- <a name="l00170"></a>00170 <span class="keyword">write</span>(nwriunit) pa(1:k1,1:k3)
- <a name="l00171"></a>00171 return
- <a name="l00172"></a>00172 <span class="keyword"> end subroutine put_restart_array</span>
- <a name="l00173"></a>00173
- <a name="l00174"></a>00174
- <a name="l00175"></a>00175 <span class="comment">! ===================</span>
- <a name="l00176"></a>00176 <span class="comment">! SUBROUTINE FILESEEK</span>
- <a name="l00177"></a>00177 <span class="comment">! ===================</span>
- <a name="l00178"></a>00178
- <a name="l00179"></a><a class="code" href="restartmod_8f90.html#a448c48ee0bf18c6f95ca432ec7f04666">00179</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a448c48ee0bf18c6f95ca432ec7f04666">fileseek</a>(yn,k)
- <a name="l00180"></a>00180 use <span class="keywordflow">restartmod</span>
- <a name="l00181"></a>00181
- <a name="l00182"></a>00182 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00183"></a>00183 <span class="keywordtype">character (len=16)</span> :: yy
- <a name="l00184"></a>00184
- <a name="l00185"></a>00185 <span class="comment">! write(nud,*) 'Pos:',nlastrec,' Want:',k</span>
- <a name="l00186"></a>00186 <span class="keyword">if</span> (k <= nlastrec) <span class="keyword">then</span>
- <a name="l00187"></a>00187 <span class="comment">! write(nud,*) 'Rewinding'</span>
- <a name="l00188"></a>00188 rewind nreaunit
- <a name="l00189"></a>00189 nlastrec = 0
- <a name="l00190"></a>00190 <span class="keyword">endif</span>
- <a name="l00191"></a>00191
- <a name="l00192"></a>00192 <span class="keyword">do</span>
- <a name="l00193"></a>00193 <span class="keyword">read</span> (nreaunit,iostat=iostat) yy
- <a name="l00194"></a>00194 <span class="keyword">if</span> (iostat /= 0) exit
- <a name="l00195"></a>00195 <span class="keyword">if</span> (trim(yn) == trim(yy)) return <span class="comment">! success</span>
- <a name="l00196"></a>00196 <span class="keyword">read</span> (nreaunit,iostat=iostat) <span class="comment">! skip data</span>
- <a name="l00197"></a>00197 <span class="keyword">if</span> (iostat /= 0) exit
- <a name="l00198"></a>00198 nlastrec = nlastrec + 1
- <a name="l00199"></a>00199 <span class="keyword">enddo</span>
- <a name="l00200"></a>00200 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Variable <'</span>,trim(yn),<span class="stringliteral">'> not in restart file'</span>
- <a name="l00201"></a>00201 return
- <a name="l00202"></a>00202 <span class="keyword"> end</span>
- <a name="l00203"></a>00203
- <a name="l00204"></a>00204
- <a name="l00205"></a>00205 <span class="comment">! =========================</span>
- <a name="l00206"></a>00206 <span class="comment">! SUBROUTINE CHECK_EQUALITY</span>
- <a name="l00207"></a>00207 <span class="comment">! =========================</span>
- <a name="l00208"></a>00208
- <a name="l00209"></a><a class="code" href="restartmod_8f90.html#a76d8e5ad55db13cfbbb15b57d81b5073">00209</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a76d8e5ad55db13cfbbb15b57d81b5073">check_equality</a>(yn,pa,pb,k1,k2)
- <a name="l00210"></a>00210 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00211"></a>00211 <span class="keywordtype">real</span> :: pa(k1,k2)
- <a name="l00212"></a>00212 <span class="keywordtype">real</span> :: pb(k1,k2)
- <a name="l00213"></a>00213
- <a name="l00214"></a>00214 <span class="keyword">do</span> j2 = 1 , k2
- <a name="l00215"></a>00215 <span class="keyword">do</span> j1 = 1 , k1
- <a name="l00216"></a>00216 <span class="keyword">if</span> (pa(j1,j2) /= pb(j1,j2)) <span class="keyword">then</span>
- <a name="l00217"></a>00217 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'No Equality on '</span>,yn,<span class="stringliteral">'('</span>,j1,<span class="stringliteral">','</span>,j2,<span class="stringliteral">')'</span>,pa(j1,j2),pb(j1,j2)
- <a name="l00218"></a>00218 return
- <a name="l00219"></a>00219 <span class="keyword">endif</span>
- <a name="l00220"></a>00220 <span class="keyword">enddo</span>
- <a name="l00221"></a>00221 <span class="keyword">enddo</span>
- <a name="l00222"></a>00222 <span class="keyword">write</span>(nud,*) <span class="stringliteral">'Array {'</span>,yn,<span class="stringliteral">'} is OK'</span>
- <a name="l00223"></a>00223 return
- <a name="l00224"></a>00224 <span class="keyword"> end</span>
- <a name="l00225"></a>00225
- <a name="l00226"></a>00226
- <a name="l00227"></a>00227 <span class="comment">! ==================</span>
- <a name="l00228"></a>00228 <span class="comment">! SUBROUTINE VARSEEK</span>
- <a name="l00229"></a>00229 <span class="comment">! ==================</span>
- <a name="l00230"></a>00230
- <a name="l00231"></a><a class="code" href="restartmod_8f90.html#a715f93e4ee50830196f64c403c7bdeed">00231</a> <span class="keyword">subroutine </span><a class="code" href="restartmod_8f90.html#a715f93e4ee50830196f64c403c7bdeed">varseek</a>(yn,knum)
- <a name="l00232"></a>00232 use <span class="keywordflow">restartmod</span>
- <a name="l00233"></a>00233
- <a name="l00234"></a>00234 <span class="keywordtype">character (len=*)</span> :: yn
- <a name="l00235"></a>00235 <span class="keywordtype">character (len=16)</span> :: ytmp
- <a name="l00236"></a>00236 <span class="keywordtype">integer</span> :: k, knum
- <a name="l00237"></a>00237
- <a name="l00238"></a>00238 knum = 0
- <a name="l00239"></a>00239 <span class="keyword">do</span> k = 1,nresdim
- <a name="l00240"></a>00240 ytmp = yresnam(k)
- <a name="l00241"></a>00241 <span class="keyword">if</span> (trim(yn) == trim(ytmp)) <span class="keyword">then</span>
- <a name="l00242"></a>00242 knum = k
- <a name="l00243"></a>00243 <span class="keyword">endif</span>
- <a name="l00244"></a>00244 <span class="keyword">enddo</span>
- <a name="l00245"></a>00245 return
- <a name="l00246"></a>00246 <span class="keyword"> end</span>
- </pre></div></div>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="restartmod_8f90.html">restartmod.f90</a> </li>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Defines</a></div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <li class="footer">Generated on Wed Sep 21 2011 12:35:46 for PUMA by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
- </ul>
- </div>
- </body>
- </html>
|