Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary initialization of windVectors in horizontalAxisWindTurbinesALM.C #2

Open
ghost opened this issue Oct 26, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 26, 2015

First initialization of windVectors:
Line 639-640

    // Define the windVectors array and set it to zero.
    windVectors.append(List<List<vector> >(NumBl[j],List<vector>(numBladePoints[i],vector::zero)));

Duplicated initialization and then assignment in:
Line 1103-1107

            // Zero the wind vector.
            windVectors[i][j][k] = vector::zero;

            // Now put the velocity in that cell into blade-oriented coordinates.
            windVectors[i][j][k] = windVectorsLocal[iter];

From the above code, it is obvious line 1104 is unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants