Refactor measurement update handling in Reactor_PFR class to include default case for measurement types

This commit is contained in:
2025-09-26 16:36:09 +02:00
parent 254f9eec5a
commit 2bc244cae7

View File

@@ -326,9 +326,10 @@ class Reactor_PFR extends Reactor {
grid_pos = Math.round(position / this.config.length * this.n_x); grid_pos = Math.round(position / this.config.length * this.n_x);
this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation
break; break;
} default:
super._updateMeasurement(measurementType, value, position, context); super._updateMeasurement(measurementType, value, position, context);
} }
}
/** /**
* Apply boundary conditions to the reactor state. * Apply boundary conditions to the reactor state.