change structure of webfrontend
This commit is contained in:
parent
38e9797ff7
commit
037d1b3ff9
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from subprocess import check_call
|
from subprocess import check_call
|
||||||
from shutil import copyfile
|
from shutil import copyfile, copytree
|
||||||
import tempfile
|
import tempfile
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
@ -61,5 +61,4 @@ if __name__ == "__main__":
|
||||||
print("wasm-opt not found, not optimising further")
|
print("wasm-opt not found, not optimising further")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for f in ["index.html", "main.js", "style.css"]:
|
copytree("webfront", publish, dirs_exist_ok=True)
|
||||||
copyfile(f, publish.joinpath(f))
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { EulerUniverse, MaxwellUniverse, default as init, set_panic_hook as setPanicHook } from "./sbp.js";
|
import { EulerUniverse, default as init, set_panic_hook as setPanicHook } from "../sbp.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialises and runs the Maxwell solver,
|
* Initialises and runs the Euler solver,
|
||||||
* plotting the solution to a canvas using webgl
|
* plotting the solution to a canvas using webgl
|
||||||
*/
|
*/
|
||||||
(async function run() {
|
(async function run() {
|
||||||
const wasm = await init("./sbp_bg.wasm");
|
const wasm = await init("../sbp_bg.wasm");
|
||||||
setPanicHook();
|
setPanicHook();
|
||||||
const DIAMOND = false;
|
const DIAMOND = false;
|
||||||
const UPWIND = true;
|
const UPWIND = true;
|
|
@ -5,9 +5,9 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="generator" content="by-hand" />
|
<meta name="generator" content="by-hand" />
|
||||||
<meta name="viewpost" context="width=device-width, inital-scale=1.0, user-scalable=yes" />
|
<meta name="viewpost" context="width=device-width, inital-scale=1.0, user-scalable=yes" />
|
||||||
<title>SBP waves</title>
|
<title>Euler solver (ΣBP)</title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="../style.css">
|
||||||
<script async type="module" src="main.js"></script>
|
<script async type="module" src="euler.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas id="glCanvas"></canvas>
|
<canvas id="glCanvas"></canvas>
|
Loading…
Reference in New Issue