-
Notifications
You must be signed in to change notification settings - Fork 843
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
Feature restructuring sliding meshes #2334
base: develop
Are you sure you want to change the base?
Conversation
// end = clock(); | ||
// cout << "Reconstruct supermesh: " << fixed << double(end - start) / double(CLOCKS_PER_SEC) << setprecision(5) << | ||
// " sec " << endl; |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -184,6 +215,8 @@ | |||
|
|||
target_segment = new unsigned long[2]; | |||
|
|||
// start = clock(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -173,6 +202,8 @@ | |||
*/ | |||
if (nVertexTarget) targetVertices[markTarget].resize(nVertexTarget); | |||
|
|||
// start = clock(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
// end = clock(); | ||
// cout << "Build ADT: " << fixed << double(end - start) / double(CLOCKS_PER_SEC) << setprecision(5) << " sec " << | ||
// endl; |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -165,6 +171,29 @@ | |||
Donor_LinkedNodes = Buffer_Receive_LinkedNodes; | |||
Donor_Proc = Buffer_Receive_Proc; | |||
|
|||
// start = clock(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
// end = clock(); | ||
// cout << "Reconstruct donor: " << fixed << double(end - start) / double(CLOCKS_PER_SEC) << setprecision(5) << " | ||
// sec " << endl; |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -153,9 +154,14 @@ | |||
Target_StartLinkedNodes = Buffer_Receive_StartLinkedNodes; | |||
Target_LinkedNodes = Buffer_Receive_LinkedNodes; | |||
|
|||
// start = clock(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
// end = clock(); | ||
// cout << "Reconstruct Target: " << fixed << double(end - start) / double(CLOCKS_PER_SEC) << setprecision(5) << " | ||
// sec " << endl; |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -142,9 +138,14 @@ | |||
3 -Reconstruct the boundaries from parallel partitioning | |||
*/ | |||
|
|||
// start = clock(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
|
||
Normal = new su2double[nDim]; | ||
Direction = new su2double[nDim]; | ||
|
||
// clock_t start, end; |
Check notice
Code scanning / CodeQL
Commented-out code Note
break; | ||
} | ||
} | ||
VertexADT.DetermineNearestNode(&Coord_i[0], dist, donor_StartIndex, rankID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VertexADT.DetermineNearestNode(&Coord_i[0], dist, donor_StartIndex, rankID); | |
VertexADT.DetermineNearestNode(Coord_i, dist, donor_StartIndex, rankID); |
unsigned long* DB_nNode_donor; | ||
su2double*** DB_nNode_donor_element; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the vector and matrix classes here?
* \param[in] P2 - second point of triangle | ||
* \param[in] P3 - third point of triangle | ||
*/ | ||
static su2double ComputeTriangleArea(const su2double* P1, const su2double* P2, const su2double* P3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's just one line it's better to define it inline. We may already have something similar in GeometryToolbox, and if not you can add this function to it.
Proposed Changes
This a initial merge to begin incorporating some modification to the sliding mesh interface which we are planning to improve in the next future.
Related Work
Mostly performance improvements in the creation of the super mesh for the Weighted Average sliding mesh approach.
ADT is now used to initialize the supermesh construction. Some portions of the code were re-implemented using a smarter algorithm which reduces the code length.
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.
pre-commit run --all
to format old commits.