Skip to content

Do not error out in Bamg - #409

Merged
prj- merged 1 commit into
developfrom
jolivet/fix-bamg
Aug 21, 2026
Merged

prj- merged 1 commit into
developfrom
jolivet/fix-bamg

Conversation

@prj-

@prj- prj- commented Aug 21, 2026

Copy link
Copy Markdown
Member

No description provided.

Thanks-to: Chris Douglas @cmdoug
@prj-
prj- requested a balanced review from Copilot August 21, 2026 12:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

This PR changes BAMG mesh-building behavior to avoid hard-failing when border points are extremely close, replacing the error with a warning and adjusting subdomain orientation handling.

Changes:

  • Replace ExecError with a conditional warning message when lmin < diameter*1e-7.
  • Change how Gh->subdomains[i].sens is computed from Nbseg.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

long Nbseg =k->Nbseg(stack,index);
long n= Max(1L,Abs(Nbseg));
Gh->subdomains[i].sens = Nbseg >0 ? 1 : -1;
Gh->subdomains[i].sens = Nbseg < 0 ? -1 : 1;
Comment on lines +539 to +540
if(lmin < diameter*1e-7 && verbosity)
cout << " Warning: border points are very close < diameter*1e-7." << endl;
if(lmin<diameter*1e-7) {
ExecError(" Error points border points to close < diameter*1e-7 ");}
if(lmin < diameter*1e-7 && verbosity)
cout << " Warning: border points are very close < diameter*1e-7." << endl;
@prj-
prj- merged commit be4fed0 into develop Aug 21, 2026
@prj-
prj- deleted the jolivet/fix-bamg branch August 21, 2026 20:00
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