Skip to content

Commit

Permalink
Deploying to gh-pages from @ 63ba038 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
aleaf committed Mar 8, 2024
1 parent f7d4a28 commit 7aa1fd5
Show file tree
Hide file tree
Showing 57 changed files with 1,307 additions and 852 deletions.
2 changes: 1 addition & 1 deletion latest/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4a7343d9c4c5274c8dbbc61990796867
config: defe3b52ed0842cb916ba842f4487da4
tags: 645f666f9bcd5a90fca523b33c5a78b7
8 changes: 4 additions & 4 deletions latest/10min.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>10 Minutes to Modflow-setup &mdash; modflow-setup 0.4.0.post3+gd2d459e documentation</title>
<title>10 Minutes to Modflow-setup &mdash; modflow-setup 0.4.0.post7+g63ba038 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="_static/plot_directive.css" />
Expand All @@ -15,7 +15,7 @@
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="_static/documentation_options.js?v=f3a8e391"></script>
<script src="_static/documentation_options.js?v=75abe509"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
Expand All @@ -40,7 +40,7 @@
modflow-setup
</a>
<div class="version">
0.4.0.post3+gd2d459e
0.4.0.post7+g63ba038
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down Expand Up @@ -444,7 +444,7 @@ <h2>5) Make a minimum working configuration file and model build script<a class=

<div role="contentinfo">
<p>&#169; Copyright 2019-2024, Modflow-setup developers |.
<span class="lastupdated">Last updated on Feb 15, 2024.
<span class="lastupdated">Last updated on Mar 08, 2024.
</span></p>
</div>

Expand Down
Binary file modified latest/_images/notebooks_Pleasant_lake_lgr_example_24_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified latest/_images/notebooks_Pleasant_lake_lgr_example_34_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions latest/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; modflow-setup 0.4.0.post3+gd2d459e documentation</title>
<title>Overview: module code &mdash; modflow-setup 0.4.0.post7+g63ba038 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
Expand All @@ -14,7 +14,7 @@
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../_static/documentation_options.js?v=f3a8e391"></script>
<script src="../_static/documentation_options.js?v=75abe509"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand All @@ -37,7 +37,7 @@
modflow-setup
</a>
<div class="version">
0.4.0.post3+gd2d459e
0.4.0.post7+g63ba038
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down Expand Up @@ -120,7 +120,7 @@ <h1>All modules for which code is available</h1>

<div role="contentinfo">
<p>&#169; Copyright 2019-2024, Modflow-setup developers |.
<span class="lastupdated">Last updated on Feb 15, 2024.
<span class="lastupdated">Last updated on Mar 08, 2024.
</span></p>
</div>

Expand Down
37 changes: 24 additions & 13 deletions latest/_modules/mfsetup/discretization.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mfsetup.discretization &mdash; modflow-setup 0.4.0.post3+gd2d459e documentation</title>
<title>mfsetup.discretization &mdash; modflow-setup 0.4.0.post7+g63ba038 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/plot_directive.css" />
Expand All @@ -14,7 +14,7 @@
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../_static/documentation_options.js?v=f3a8e391"></script>
<script src="../../_static/documentation_options.js?v=75abe509"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand All @@ -37,7 +37,7 @@
modflow-setup
</a>
<div class="version">
0.4.0.post3+gd2d459e
0.4.0.post7+g63ba038
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -434,7 +434,10 @@ <h1>Source code for mfsetup.discretization</h1><div class="highlight"><pre>
<span class="k">with</span> <span class="n">np</span><span class="o">.</span><span class="n">errstate</span><span class="p">(</span><span class="n">invalid</span><span class="o">=</span><span class="s1">&#39;ignore&#39;</span><span class="p">):</span>
<span class="n">too_thin</span> <span class="o">=</span> <span class="n">active</span> <span class="o">&amp;</span> <span class="p">(</span><span class="n">thicknesses</span> <span class="o">&lt;</span> <span class="n">minimum_thickness</span><span class="p">)</span>
<span class="n">new_layer_elevs</span><span class="p">[</span><span class="n">i</span><span class="p">,</span> <span class="n">too_thin</span><span class="p">]</span> <span class="o">=</span> <span class="n">new_layer_elevs</span><span class="p">[</span><span class="n">i</span> <span class="o">-</span> <span class="mi">1</span><span class="p">,</span> <span class="n">too_thin</span><span class="p">]</span> <span class="o">-</span> <span class="n">minimum_thickness</span> <span class="o">*</span> <span class="mf">1.001</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">nanmax</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">diff</span><span class="p">(</span><span class="n">new_layer_elevs</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)[</span><span class="n">ibound_array</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">])</span> <span class="o">*</span> <span class="o">-</span><span class="mi">1</span> <span class="o">&gt;=</span> <span class="n">minimum_thickness</span>
<span class="k">try</span><span class="p">:</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">nanmax</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">diff</span><span class="p">(</span><span class="n">new_layer_elevs</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)[</span><span class="n">ibound_array</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">])</span> <span class="o">*</span> <span class="o">-</span><span class="mi">1</span> <span class="o">&gt;=</span> <span class="n">minimum_thickness</span>
<span class="k">except</span><span class="p">:</span>
<span class="n">j</span><span class="o">=</span><span class="mi">2</span>
<span class="k">return</span> <span class="n">new_layer_elevs</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span></div>


Expand Down Expand Up @@ -546,15 +549,23 @@ <h1>Source code for mfsetup.discretization</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">make_lgr_idomain</span><span class="p">(</span><span class="n">parent_modelgrid</span><span class="p">,</span> <span class="n">inset_modelgrid</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Inactivate cells in parent_modelgrid that coincide</span>
<span class="sd"> with area of inset_modelgrid.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">rotation</span> <span class="o">!=</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">rotation</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="s1">&#39;Rotated grids not supported.&#39;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">rotation</span> <span class="o">!=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">rotation</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;LGR parent and inset models must have same rotation.&#39;</span>
<span class="sa">f</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">Parent rotation: </span><span class="si">{</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">rotation</span><span class="si">}</span><span class="s1">&#39;</span>
<span class="sa">f</span><span class="s1">&#39;</span><span class="se">\n</span><span class="s1">Inset rotation: </span><span class="si">{</span><span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">rotation</span><span class="si">}</span><span class="s1">&#39;</span>
<span class="p">)</span>
<span class="c1"># upper left corner of inset model in parent model</span>
<span class="c1"># use the cell centers, to avoid edge situation</span>
<span class="c1"># where neighboring parent cell is accidentally selected</span>
<span class="n">x0</span> <span class="o">=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">xcellcenters</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]</span>
<span class="n">y0</span> <span class="o">=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">ycellcenters</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]</span>
<span class="n">pi0</span><span class="p">,</span> <span class="n">pj0</span> <span class="o">=</span> <span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">intersect</span><span class="p">(</span><span class="n">x0</span><span class="p">,</span> <span class="n">y0</span><span class="p">,</span> <span class="n">forgive</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="c1"># lower right corner of inset model</span>
<span class="n">x1</span> <span class="o">=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">xcellcenters</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">]</span>
<span class="n">y1</span> <span class="o">=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">ycellcenters</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">]</span>
<span class="n">pi1</span><span class="p">,</span> <span class="n">pj1</span> <span class="o">=</span> <span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">intersect</span><span class="p">(</span><span class="n">x1</span><span class="p">,</span> <span class="n">y1</span><span class="p">,</span> <span class="n">forgive</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">idomain</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">ones</span><span class="p">(</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">shape</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">int</span><span class="p">)</span>
<span class="n">l</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">r</span><span class="p">,</span> <span class="n">t</span> <span class="o">=</span> <span class="n">inset_modelgrid</span><span class="o">.</span><span class="n">bounds</span>
<span class="n">isinset</span> <span class="o">=</span> <span class="p">(</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">xcellcenters</span> <span class="o">&gt;</span> <span class="n">l</span><span class="p">)</span> <span class="o">&amp;</span> \
<span class="p">(</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">xcellcenters</span> <span class="o">&lt;</span> <span class="n">r</span><span class="p">)</span> <span class="o">&amp;</span> \
<span class="p">(</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">ycellcenters</span> <span class="o">&gt;</span> <span class="n">b</span><span class="p">)</span> <span class="o">&amp;</span> \
<span class="p">(</span><span class="n">parent_modelgrid</span><span class="o">.</span><span class="n">ycellcenters</span> <span class="o">&lt;</span> <span class="n">t</span><span class="p">)</span>
<span class="n">idomain</span><span class="p">[:,</span> <span class="n">isinset</span><span class="p">]</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">idomain</span><span class="p">[:,</span> <span class="n">pi0</span><span class="p">:</span><span class="n">pi1</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> <span class="n">pj0</span><span class="p">:</span><span class="n">pj1</span><span class="o">+</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">return</span> <span class="n">idomain</span></div>


Expand Down Expand Up @@ -908,7 +919,7 @@ <h1>Source code for mfsetup.discretization</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>&#169; Copyright 2019-2024, Modflow-setup developers |.
<span class="lastupdated">Last updated on Feb 15, 2024.
<span class="lastupdated">Last updated on Mar 08, 2024.
</span></p>
</div>

Expand Down
8 changes: 4 additions & 4 deletions latest/_modules/mfsetup/fileio.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mfsetup.fileio &mdash; modflow-setup 0.4.0.post3+gd2d459e documentation</title>
<title>mfsetup.fileio &mdash; modflow-setup 0.4.0.post7+g63ba038 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/plot_directive.css" />
Expand All @@ -14,7 +14,7 @@
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../_static/documentation_options.js?v=f3a8e391"></script>
<script src="../../_static/documentation_options.js?v=75abe509"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand All @@ -37,7 +37,7 @@
modflow-setup
</a>
<div class="version">
0.4.0.post3+gd2d459e
0.4.0.post7+g63ba038
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -1402,7 +1402,7 @@ <h1>Source code for mfsetup.fileio</h1><div class="highlight"><pre>

<div role="contentinfo">
<p>&#169; Copyright 2019-2024, Modflow-setup developers |.
<span class="lastupdated">Last updated on Feb 15, 2024.
<span class="lastupdated">Last updated on Mar 08, 2024.
</span></p>
</div>

Expand Down
Loading

0 comments on commit 7aa1fd5

Please sign in to comment.