-
Notifications
You must be signed in to change notification settings - Fork 7
/
claw43to44.html
180 lines (168 loc) · 7.17 KB
/
claw43to44.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!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/html; charset=utf-8" />
<title>Converting from Clawpack 4.3 to 4.4 or 4.5 — Clawpack 5.0.0rc-alpha documentation</title>
<link rel="stylesheet" href="_static/flasky.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/base.css" type="text/css" />
<link rel="stylesheet" href="_static/layout.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '5.0.0rc-alpha',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="shortcut icon" href="_static/clawicon.ico"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="top" title="Clawpack 5.0.0rc-alpha documentation" href="index.html" />
<link rel="next" title="Changes to input parameters in setrun.py from 4.x to 5.0" href="setrun_changes.html" />
<link rel="prev" title="Converting from Clawpack 4.6 to 5.0" href="claw46to50.html" />
</head>
<body>
<div id="main-wrapper" class="sphinx">
<div id="header-wrapper">
<section id="header">
<!-- <h1><a href="http://clawpack.org/">Clawpack</a></h1> -->
<h1><a href="index.html">Clawpack-5</a></h1>
<nav>
<ul>
<li>
<a href="toc_condensed.html">Docs</a>
</li>
<li>
<a href="installing.html">Install</a>
</li>
<li>
<a class="" href="galleries.html">Gallery</a>
</li>
<li>
<a class="active" href="https://groups.google.com/forum/#!forum/claw-users">Support</a>
</li>
<li>
<a class="active" href="http://github.com/organizations/clawpack">Source</a>
</li>
<li>
<a class="" href="developers.html">Develop</a>
</li>
</ul>
</nav>
</section>
<div class="decoration"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="setrun_changes.html" title="Changes to input parameters in setrun.py from 4.x to 5.0"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="claw46to50.html" title="Converting from Clawpack 4.6 to 5.0"
accesskey="P">previous</a> |</li>
<li><a href="contents.html">Clawpack 5.0.0rc-alpha documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="converting-from-clawpack-4-3-to-4-4-or-4-5">
<span id="claw43to44"></span><h1>Converting from Clawpack 4.3 to 4.4 or 4.5<a class="headerlink" href="#converting-from-clawpack-4-3-to-4-4-or-4-5" title="Permalink to this headline">¶</a></h1>
<p>The minimal change needed to make a 4.3 application run in 4.4 (or 4.5)
is to rename
the <em>clawNez.data</em> file as <em>claw.data</em> and add a line to the top with a
single value <em>N</em>, the number of space dimensions.</p>
<p>To take full advantage of new features available in Clawpack 4.4 you may
also want to:</p>
<blockquote>
<div><ul class="simple">
<li>Create a <em>setrun.py</em> file to automatically generate <em>claw.data</em>,</li>
<li>Modify <em>setrun.py</em> to also create <em>setprob.data</em> or other data files you
read in. In this case you must alse modify <em>setprob.f</em> to use the
library routine <em>opendatafile</em> instead of the f77 function <em>open</em> as
illustrated in examples. This routine skips over the warning message
generated at the top of data files.</li>
<li>Switch to Python graphics by creating an appropriate <em>setplot.py</em> file,</li>
<li>Rewrite the Makefile to give options ‘make .output’, ‘make .plots’, etc.</li>
<li>Create a README.txt file that has links to the various other files in
this directory, that will be converted to README.html by ‘make .htmls’</li>
</ul>
</div></blockquote>
<div class="section" id="python-conversion-tool">
<h2>Python conversion tool<a class="headerlink" href="#python-conversion-tool" title="Permalink to this headline">¶</a></h2>
<p>A first pass at all of the conversions listed above can often be achieved by
typing:</p>
<div class="highlight-python"><pre>$ python $CLAW/python/convert43to44.py</pre>
</div>
<p>in your application directory. You should then inspect the files generated
and fix any broken links, etc.</p>
<p>Currently this works for 1d and 2d applications on a single grid,
but not for <em>amrclaw</em>.</p>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<p><a href="index.html">
<img class="logo" src= "_static/clawlogo.jpg" alt="Logo"/>
</a>
<h2>Version 5.0.0rc-alpha</h2>
</p>
<h3><a href="contents.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Converting from Clawpack 4.3 to 4.4 or 4.5</a><ul>
<li><a class="reference internal" href="#python-conversion-tool">Python conversion tool</a></li>
</ul>
</li>
</ul>
<h3>Related Topics</h3>
<ul>
<li><a href="contents.html">Documentation overview</a><ul>
<li>Previous: <a href="claw46to50.html" title="previous chapter">Converting from Clawpack 4.6 to 5.0</a></li>
<li>Next: <a href="setrun_changes.html" title="next chapter">Changes to input parameters in setrun.py from 4.x to 5.0</a></li>
</ul></li>
</ul>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/claw43to44.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2013, The Clawpack Development Team.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
</div>
</body>
</html>