Skip to content

Commit 0b36728

Browse files
committed
Fix favicon path and clean up comments in heat-conduction-2d-fin-webgpu.html
1 parent 80b601e commit 0b36728

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tutorials/heat-conduction-2d-fin-webgpu.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<html>
1717
<head>
1818
<title>FEAScript: Heat Conduction in a 2D Fin (WebGPU)</title>
19-
<link rel="icon" type="image/x-icon" href="../../../../FEAScript-website/assets/favicon.ico" />
19+
<link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
2020
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2121
<meta
2222
name="description"
@@ -214,26 +214,22 @@ <h2 id="results">Results</h2>
214214
Solving...
215215
</div>
216216
<div id="resultsCanvas"></div>
217-
<div id="timeDisplay" style="margin-top: 1em"></div>
218217

219218
<ul id="menu">
220219
<li><a href="https://feascript.com/index.html">Home</a></li>
221220
<li><a href="https://feascript.com/#tutorials">All Tutorials</a></li>
222221
</ul>
223222

224223
<script type="module">
225-
//Import FEAScript library from GitHub
224+
// Import FEAScript library from GitHub
226225
import { FEAScriptModel, plotSolution } from "https://core.feascript.com/src/index.js";
227-
//Import FEAScript library from a local directory
226+
// Import FEAScript library from a local directory
228227
// import { FEAScriptModel, plotSolution } from "../../FEAScript-core/src/index.js";
229228

230229
window.addEventListener("DOMContentLoaded", async () => {
231230
const resultDiv = document.getElementById("loading");
232-
const timeDiv = document.getElementById("timeDisplay");
233231
resultDiv.style.display = "block";
234232

235-
const startTime = performance.now();
236-
237233
const model = new FEAScriptModel();
238234
model.setSolverConfig("heatConductionScript");
239235

@@ -255,9 +251,6 @@ <h2 id="results">Results</h2>
255251

256252
const { solutionVector, nodesCoordinates } = await model.solveAsync();
257253

258-
const endTime = performance.now();
259-
const solvingTime = ((endTime - startTime) / 1000).toFixed(3);
260-
timeDiv.innerHTML = `Solving time: ${solvingTime} seconds`;
261254
resultDiv.style.display = "none";
262255

263256
plotSolution(

0 commit comments

Comments
 (0)