/ proof-of-concept / plate-dynamics-lab
Sign in
proof-of-concept / plate-dynamics-lab
plate-dynamics-lab / packages / components / src / status / ValidityNotes.tsx
32 lines · 850 BCodeBlameHistory
80c0b6dPlate dynamics lab: plates in realizable mounts under gravity, explicit finite differences on WebGPUJeremy Magland 1import type { MethodDefinition, PlateResult } from "@plate-dyn/core";
3/** What the method idealizes in general, and what this particular run approximated. */
4export function ValidityNotes({
5 method,
6 result,
7}: {
8 method: MethodDefinition;
9 result?: PlateResult | null;
10}) {
11 return (
12 <div className="pl-small">
13 <ul style={{ margin: "4px 0", paddingLeft: 18 }}>
14 {method.validity.map((v, i) => (
15 <li key={i}>{v}</li>
16 ))}
17 </ul>
18 {result && result.info.notes.length > 0 && (
19 <>
20 <div className="pl-muted" style={{ marginTop: 6 }}>
21 This run:
22 </div>
23 <ul style={{ margin: "4px 0", paddingLeft: 18 }}>
24 {result.info.notes.map((n, i) => (
25 <li key={i}>{n}</li>
26 ))}
27 </ul>
28 </>
29 )}
30 </div>
31 );
↑↓ move↵openescclose