Skip to content

[Core] Extend CppTestsUtilities with CreateCubeSkinModelPart and CreateCubeModelPart#11697

Merged
loumalouomega merged 4 commits intomasterfrom
core/update-cpp-test-utilities
Oct 18, 2023
Merged

[Core] Extend CppTestsUtilities with CreateCubeSkinModelPart and CreateCubeModelPart#11697
loumalouomega merged 4 commits intomasterfrom
core/update-cpp-test-utilities

Conversation

@loumalouomega
Copy link
Member

@loumalouomega loumalouomega commented Oct 18, 2023

📝 Description

Code related to the creation of a cube skin model part (CreateCubeSkinModelPart) and a cube model part (CreateCubeModelPart) were removed. Instead, the CppTestsUtilities::CreateCubeSkinModelPart and CppTestsUtilities::CreateCubeModelPart functions has been moved to the utilities/cpp_tests_utilities.h file, and it is now used to create the model part.

🆕 Changelog

@loumalouomega loumalouomega added Kratos Core C++ Testing FastPR This Pr is simple and / or has been already tested and the revision should be fast Transition labels Oct 18, 2023
@loumalouomega loumalouomega requested a review from a team as a code owner October 18, 2023 14:36
@loumalouomega loumalouomega changed the title [Core] Extend CppTestsUtilities with CreateCubeSkinModelPart and CreateCubeModelPart [Core] Extend CppTestsUtilities with CreateCubeSkinModelPart and CreateCubeModelPart Oct 18, 2023
///@name Kratos Classes
///@{
// forward declaring ModelPart to be avoid including heavy header here
// forward declaring ModelPart adn Model to be avoid including heavy header here
Copy link
Member

Choose a reason for hiding this comment

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

and

* @param HalfZ The half-length of the cube in the Z-direction.
* @return ModelPart& The created cube skin model part.
*/
ModelPart& KRATOS_API(KRATOS_CORE) CreateCubeSkinModelPart(
Copy link
Member

Choose a reason for hiding this comment

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

I believe that for individual functions has to be

KRATOS_API(KRATOS_CORE) ModelPart&

Copy link
Member Author

Choose a reason for hiding this comment

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

Huuuuuum ...

@loumalouomega loumalouomega merged commit 72e6035 into master Oct 18, 2023
@loumalouomega loumalouomega deleted the core/update-cpp-test-utilities branch October 18, 2023 17:19
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 Testing Transition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants