Add warnings for reactor child positioning and grid sizing discrepancies

This commit is contained in:
HorriblePerson555
2025-10-16 15:30:51 +02:00
parent 1dc9cd0031
commit f44bac9aab

View File

@@ -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;