Skip to content

Conversation

@pcarruscag
Copy link
Member

So this:

template <class T> \\ <--- This...
class A {
  su2double a[4] = {0.0}; \\ <--- ...with = {0.0};
};

seems to be the problem.

@pcarruscag pcarruscag requested a review from aa-g November 17, 2021 16:13
@pcarruscag pcarruscag merged commit a4836f4 into develop Nov 17, 2021
@pcarruscag pcarruscag deleted the fix_gcc485 branch November 17, 2021 17:32
@TobiKattmann
Copy link
Contributor

Nice job 👍 , I guess you checked with compiler Explorer :)

I am confident that this will also solve this persons cfd online issue

Jacobian_Buffer[4] = {0.0}; /// Static storage for the Jacobian (which needs to be pointer for return type).
su2double Residual[2];
su2double* Jacobian_i[2];
su2double Jacobian_Buffer[4]; /// Static storage for the Jacobian (which needs to be pointer for return type).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe do the initialization by hand in the constructor then? Or is it not necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants