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

Explain to the compiler that there is an external instantiation of some member variables. #5188

Merged
merged 1 commit into from Jul 8, 2023

Conversation

bangerth
Copy link
Contributor

@bangerth bangerth commented Jul 7, 2023

Supersedes #5175.

Copy link
Member

@tjhei tjhei left a comment

Choose a reason for hiding this comment

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

The testers are not happy with the current solution.

ASPECT_INSTANTIATE(INSTANTIATE)

// Now also instantiate static member variables:
template
Copy link
Member

Choose a reason for hiding this comment

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

Can you use the ASPECT_INSTANTIATE macro above? This would do the dim part for you.

@bangerth
Copy link
Contributor Author

bangerth commented Jul 7, 2023

I needed to get far enough in my compile to actually compile this file locally. I think this should now work.

@bangerth
Copy link
Contributor Author

bangerth commented Jul 7, 2023

OK, this seems to work now!

Copy link
Member

@gassmoeller gassmoeller left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I will let @tjhei take another look.

@tjhei tjhei merged commit 6047e5c into geodynamics:main Jul 8, 2023
6 checks passed
@bangerth bangerth deleted the instantiate branch July 8, 2023 04:09
bangerth added a commit that referenced this pull request Jul 8, 2023
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.

None yet

3 participants