Skip to content

Commit

Permalink
fix: setPartialFuel skill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bruberu committed Jul 21, 2024
1 parent 6270fad commit 200c314
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ public void prepareThermalProperties() {
}

public void computeGeometry() {
effectiveControlRods.clear();
effectiveCoolantChannels.clear();
moderatorTipped = false;
double[][] geometricMatrixSlowNeutrons = new double[fuelRods.size()][fuelRods.size()];
double[][] geometricMatrixFastNeutrons = new double[fuelRods.size()][fuelRods.size()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public IFissionFuelStats getPartialFuel() {

@Override
public boolean setPartialFuel(IFissionFuelStats prop) {
if (prop == this.partialFuel) {
return false;
}
this.partialFuel = prop;
if (this.internalFuelRod != null) {
this.internalFuelRod.setFuel(prop);
Expand Down

0 comments on commit 200c314

Please sign in to comment.