Skip to content

Memory safe SBMworkflow#14303

Merged
NickNick9 merged 3 commits intomasterfrom
PR_save_memory_SBM_process
Mar 18, 2026
Merged

Memory safe SBMworkflow#14303
NickNick9 merged 3 commits intomasterfrom
PR_save_memory_SBM_process

Conversation

@andrewgorgi
Copy link
Contributor

📝 Description
Avoid the creation of useless Nodes and control points of the background mesh

🆕 Changelog

-SnakeSbmProcess::CreateSurrogateBuondaryFromSnakeInner/Outer:
- Creates the surrogate nodes directly in the loop for the construction of the surrogate edges
- ensure_surrogate_node function to check if the nodes are already created in the modelPart

  • IgaModelerSbm::
    - Additional method ActivateNodesInElementsAndCleanRoot
    - Remove all the Control Points (Nodes) which are not included in the elements created

@andrewgorgi andrewgorgi requested a review from a team as a code owner March 17, 2026 16:32
Copy link
Contributor

@NickNick9 NickNick9 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.
Just for me to know, you did not applied the same for 3d, right?

}

// checks if the node exists in the surrogate model part otherwise create it
auto ensure_surrogate_node = [&](IndexType node_id, int node_i, int node_j) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you create a Method of the class?
also ensure_surrogate_node is not enough self-explaining in my opinion

@andrewgorgi
Copy link
Contributor Author

Looks good. Just for me to know, you did not applied the same for 3d, right?

It should be applied to 3D for what concerns the elimination of the unused control points, but I didn't touch the 3D snake process. It should be easily extendable to 3D anyway

@NickNick9 NickNick9 merged commit 423f2ed into master Mar 18, 2026
10 checks passed
@NickNick9 NickNick9 deleted the PR_save_memory_SBM_process branch March 18, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants