Skip to content

Commit ef69a48

Browse files
committed
Removed the print statements
1 parent cac3fdc commit ef69a48

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

process/neutronics.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,6 @@ def _summation_shorthand(
673673
A scalar.
674674
"""
675675

676-
print(f"_summation_shorthand is called with {num_layer=}, {n=}, {max_group=}")
677676
def coef_pair(g: int) -> npt.NDArray[float]:
678677
"""
679678
A quick function to get the coefficient pair at the specified
@@ -809,7 +808,6 @@ def solve_group_n(self, n: int) -> None:
809808
The allowed range of values = [0, self.n_groups-1]. Therefore,
810809
n=0 shows the reaction rate for group 1, n=1 for group 2, etc.
811810
"""
812-
print(f"solve_group_n({n})")
813811
if n not in range(self.n_groups):
814812
raise ValueError(
815813
f"n must be a positive integer between 0 and {self.n_groups}!"
@@ -843,17 +841,14 @@ def solve_group_n(self, n: int) -> None:
843841
include_upscatter = self.contains_upscatter and self.num_iteration[n] != 0
844842
in_scatter_max_group = self.n_groups if include_upscatter else n + 1
845843

846-
print(f"Start of solve_group_n({n})")
847844
try:
848845
for num_layer in range(self.n_layers):
849-
print(f" Prepopulating layer {num_layer}")
850846
# Setting up aliases for shorter code
851847
_coefs = Coefficients([], [])
852848
mat = self.materials[num_layer]
853849
src_matrix = mat.sigma_s + mat.sigma_in
854850
diffusion_const_n = self.diffusion_const[num_layer, n]
855851
for g in range(in_scatter_max_group):
856-
print(f" Analysing inscatter group={g}")
857852
if g == n:
858853
# placeholder zeros, to be properly calculated later.
859854
_coefs.c.append(0.0)
@@ -879,7 +874,6 @@ def solve_group_n(self, n: int) -> None:
879874
scale_factor = (l2n * l2g) / l2_diff / diffusion_const_n
880875
in_scatter_min_group = 0 if include_upscatter else g
881876

882-
print(f" Calculating group coefficients[{num_layer}, {n}].c/s[{g}] using self.coefficients[{num_layer}, {[i for i in range(in_scatter_min_group, in_scatter_max_group) if i != n]}].c/s[{g}]")
883877
_coefs.c.append(
884878
np.sum([
885879
(src_matrix[i, n]
@@ -904,8 +898,6 @@ def solve_group_n(self, n: int) -> None:
904898
)
905899

906900
self.coefficients[num_layer, n] = _coefs
907-
print(f" Prepopulating layer {num_layer} block exited.")
908-
print(f"Main diagonal start s: in coefficients[{0}, {n}].s[{n}] using coefficients of self.coefficients[{0}, {n}].s{[g for g in range(in_scatter_max_group) if g != n]}")
909901
self.coefficients[0, n].s[n] = np.sqrt(abs(self.l2[0, n])) * (
910902
-self.fluxes[n] / self.diffusion_const[0, n]
911903
) - (
@@ -916,7 +908,6 @@ def solve_group_n(self, n: int) -> None:
916908
])
917909
)
918910

919-
print(f"Main diagonal prep: Obtaining the matrices M and vectors v across all layers [{[num_layer for num_layer in range(self.n_layers - 1)]}, {n}] ")
920911
m_list, v_list = self._get_all_propagation_operator(
921912
n, include_upscatter
922913
)
@@ -934,7 +925,6 @@ def solve_group_n(self, n: int) -> None:
934925
n, self.n_layers - 1, self.extended_boundary[n]
935926
)
936927
final_left_vector = row_vector @ affine_transform_matrix_stack
937-
print(f"Main diagonal start c: attempting to fill in coefficients[{0}, {n}].c[{n}]")
938928
final_const = (
939929
-self._summation_shorthand(
940930
n,
@@ -956,7 +946,6 @@ def solve_group_n(self, n: int) -> None:
956946
"cross-section value."
957947
)
958948

959-
print(f"Main diagonal: forward solving the rest of the coefficients[{[num_layer+1 for num_layer in range(self.n_layers-1)]}, {n}].c/s[{n}]")
960949
for num_layer in range(self.n_layers - 1):
961950
[
962951
self.coefficients[num_layer + 1, n].c[n],

0 commit comments

Comments
 (0)