Refactor measurement update handling in Reactor_PFR class to include default case for measurement types
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user