Skip to content

Commit

Permalink
update from devel 4ad0f74
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarnakov committed Jan 14, 2024
1 parent 3d92150 commit 073e2dc
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitrev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e57c18a
4ad0f74
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ wasm:
(cd "$(REPO)" && git rev-parse --short HEAD) > .gitrev
$(RSYNC) $(REPO)/build_wasm/{poisson{.js,.wasm,_inc.js,.css},favicon.png,libs} poisson/
$(RSYNC) $(REPO)/build_wasm/poisson.html poisson/index.html
$(RSYNC) $(REPO)/build_wasm/wave{.js,.wasm} wave/
$(RSYNC) $(REPO)/build_wasm/wave.html wave/index.html
$(RSYNC) $(REPO)/build_wasm/axes_xt.svg wave/

commit:
git commit --edit -m "update from devel `cat .gitrev`"
Expand Down
7 changes: 7 additions & 0 deletions poisson/poisson.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,10 @@ kbd {
font-size: 1em;
text-align: left;
}
.axes {
height: 2.5em;
width: 2.5em;
position: absolute;
left: 0;
bottom: 0;
}
131 changes: 131 additions & 0 deletions wave/axes_xt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions wave/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="favicon.png" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ODIL Wave</title>
<link rel="stylesheet" href="poisson.css" />
</head>
<body>
<noscript>
<div>
This demo needs JavaScript.
</div>
</noscript>

<div id="content_column">
<div class="row">
<a class="github-button" href="https://github.com/pkarnakov/autodiff" data-size="large" data-show-count="true" aria-label="Star on GitHub">Star</a>
<a href="https://github.com/pkarnakov/autodiff" style="position:relative; bottom:0.6em;">github.com/pkarnakov/autodiff</a>
</div>
<div class="row">
<canvas id="canvas" tabindex=-1></canvas>
</div>
<div class="row" style="position: relative;">
<input type="button" title="space" class="button" id="button_pause" value="pause" onclick="togglePause();">
<input type="button" title='r' class="button" id="button_restart" value="restart" onclick="pressButton('r')">
<img src="axes_xt.svg" class="axes" />
</div>
<div class="row">
<span class="kbdspan"><kbd>click</kbd> draw mask (imposes exact solution),</span>
<span class="kbdspan"><kbd>space</kbd> toggle pause,</span>
<span class="kbdspan"><kbd>r</kbd> restart</span>
</div>
<div class="row" id="text_status"></div>
<div class="row">
Wave equation without initial or boundary conditions.<br>
Draw a mask field to impose the exact solution.
</div>
</div>

<script async defer src="libs/github_buttons.js"></script>
<script src="poisson_inc.js"></script>
<script async src="wave.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions wave/wave.js

Large diffs are not rendered by default.

Binary file added wave/wave.wasm
Binary file not shown.

0 comments on commit 073e2dc

Please sign in to comment.