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

[Core] Adding kratos_api to geometry_utils #7113

Conversation

sunethwarna
Copy link
Member

I forgot to add kratos_api to few methods introduced recently.

@sunethwarna sunethwarna requested a review from philbucher June 19, 2020 10:44
@sunethwarna sunethwarna requested a review from a team as a code owner June 19, 2020 10:44
@sunethwarna sunethwarna self-assigned this Jun 19, 2020
@sunethwarna sunethwarna added the FastPR This Pr is simple and / or has been already tested and the revision should be fast label Jun 19, 2020
@@ -116,7 +116,7 @@ void GeometryUtils::EvaluateHistoricalVariableGradientAtGaussPoint(

// template instantiations

template void GeometryUtils::EvaluateHistoricalVariableValueAtGaussPoint<array_1d<double, 3>>(
Copy link
Member

Choose a reason for hiding this comment

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

I am confused as to why you add this in the cpp

@roigcarlo you know the win stuff better, can you take a look please?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is to have noalias for non primitive types, and not to have noalias for doubles

Copy link
Member

Choose a reason for hiding this comment

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

I get that but I never saw KRATOS_API in a source file

Copy link
Member Author

Choose a reason for hiding this comment

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

I followed what is done in the earlier PR for stat app.. No idea why I did it :|, @roigcarlo could you maybe clarify where we need to put KRATOS_API to make it compile in windows?

Copy link
Member

Choose a reason for hiding this comment

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

Explicit instabtiations without especialization.

To be completely honest still not sure if it is needed or its enough with the instantiation. If it passes thr ci withoit you can remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you may be add it to wiki :), how one should add KRATOS_API?. There are lots of developers who only has linux compilations in their workstations. So we rely on CI to capture windows compilation errors and it takes time also. :/

In this case, it was not even captured in original PR because, this was not used until now in #7039.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a page here @roigcarlo @philbucher according to my experiences with trial and error. Could you please have a look?

https://github.com/KratosMultiphysics/Kratos/wiki/KRATOS_API-for-Windows-Compilation

Copy link
Member

Choose a reason for hiding this comment

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

to me looks ok but I am not a Win expert 🤸‍♂️

@sunethwarna sunethwarna requested a review from roigcarlo June 19, 2020 11:47
@sunethwarna sunethwarna requested a review from philbucher June 19, 2020 13:20
@sunethwarna
Copy link
Member Author

I think this PR now only have least amount of KRATOS_API usage.

Copy link
Member

@philbucher philbucher left a comment

Choose a reason for hiding this comment

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

ok if it compiles

@sunethwarna
Copy link
Member Author

thanks @philbucher and @roigcarlo :)

@sunethwarna sunethwarna merged commit 01e9721 into master Jun 19, 2020
@sunethwarna sunethwarna deleted the core/geometry_utils/expose_evaluate_at_gauss_point_to_windows branch June 19, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ FastPR This Pr is simple and / or has been already tested and the revision should be fast Kratos Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants