Refactor measurement update handling in Reactor_PFR class to include default case for measurement types
This commit is contained in:
@@ -326,8 +326,9 @@ 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user