Skip to content
Snippets Groups Projects
Commit 09b7241f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

error if invalid radius

parent 7d938382
No related branches found
No related tags found
No related merge requests found
Pipeline #7853 passed
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
Include "waveguide2D_Hbend.dat" ; Include "waveguide2D_Hbend.dat" ;
If(R < W/2 + 1e-3)
Error("Invalid radius");
R = W/2 + 1e-3;
EndIf
p[] += newp ; Point(newp) = {0, R, 0, res} ; p[] += newp ; Point(newp) = {0, R, 0, res} ;
p[] += newp ; Point(newp) = {-L,-W/2, 0, res} ; p[] += newp ; Point(newp) = {-L,-W/2, 0, res} ;
p[] += newp ; Point(newp) = { 0,-W/2, 0, res} ; p[] += newp ; Point(newp) = { 0,-W/2, 0, res} ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment