From f44bac9aabe47bc9ba87354751bbfa3e8b39576b Mon Sep 17 00:00:00 2001 From: HorriblePerson555 <47578455+HorriblePerson555@users.noreply.github.com> Date: Thu, 16 Oct 2025 15:30:51 +0200 Subject: [PATCH] Add warnings for reactor child positioning and grid sizing discrepancies --- src/specificClass.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/specificClass.js b/src/specificClass.js index 3aeef2f..bd5af1b 100644 --- a/src/specificClass.js +++ b/src/specificClass.js @@ -150,6 +150,14 @@ class Reactor { return; } + if (reactorChild.functionality.positionVsParent != "upstream") { + this.logger.warn("Reactor children of reactors should always be upstream."); + } + + if (math.abs(reactorChild.d_x - this.d_x) / this.d_x < 0.025) { + this.logger.warn("Significant grid sizing discrepancies between adjacent reactors! Change resolutions to match reactors grid step, or implement boundary value interpolation."); + } + this.upstreamReactor = reactorChild; reactorChild.downstreamReactor = this;