-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed several recently introduced code smells
- Moved a variable declaration to inside the `if` statement (to limit the variable's scope as much as possible). - Pass some polymorphic objects by reference to `const`. - Renamed a few function parameters to comply with the Kratos Style Guide. - Improved the code layout. - Don't raise `Exception`, but use a more specific error class. - Only pass a single argument when constructing a `RuntimeError`. - Avoid having an unused loop variable (replaced `i` by `_`). - Use operators `+=` and `-=` when appropriate. - Don't multiply by a hard-coded 1. - Moved reading of GiD output files to its own class and refactored its implementation into smaller and easy to understand methods.
- Loading branch information
Showing
6 changed files
with
135 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters