Closed kldunn closed 11 years ago
One example of redundancy is the print and write_results methods, since there appears to be no need to have both methods in both KDE and TrackLength mesh tally classes.
I have added a few common functions and variables to the MeshTally base class that were involved in the setup process for both KDEMeshTally and TrackLengthMeshTally classes:
I have combined write_results() and print() methods in the KDEMeshTally and MeshTally implementation as a part of cleaning up the code formatting and adding detailed comments stage. There are still two print methods in TrackLengthMeshTally that can probably be simplified/extended to the MeshTally Base class.
As part of the cleanup stage of KDEMeshTally, I generalized the end_history() and add_score_to_tally() methods. Both of these can probably be moved up to MeshTally as TrackLengthMeshTally also needs to perform these tasks and I do not think that there is a major difference in their implementations.
This has been replaced by #92
Check current implementations of KDE and TrackLength mesh tallies for redundancy and common functionality that can be moved to MeshTally.