Skip to content

Commit

Permalink
i need to think about this algo more
Browse files Browse the repository at this point in the history
  • Loading branch information
joonarafael committed Jun 16, 2024
1 parent 00e8cc6 commit 954a3e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/algos/analyze/analyze.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";

import { checkSequential } from "./checksequential";

export default function analyzeMaster(
delayMap: { borehole: number; delay: number }[]
) {
Expand Down Expand Up @@ -31,5 +33,7 @@ export default function analyzeMaster(
});
}

const sequentialCheckResult = checkSequential(delayGraph);

return delayGraph;
}
7 changes: 7 additions & 0 deletions app/algos/analyze/checksequential.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use client";

type DelayGraph = { delay: number; count: number }[];

export const checkSequential = (delayGraph: DelayGraph) => {
let sequential: DelayGraph = [];
};
2 changes: 2 additions & 0 deletions app/calc/calculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ const Calculator: React.FC<CalculatorProps> = ({
setAnalysis(result);

setAppView("analyze");
} else {
toast("No entry borehole found!");
}
} catch (err) {
toast("Error analyzing the field.");
Expand Down

0 comments on commit 954a3e3

Please sign in to comment.