Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Segmentation Fault using geomcsg()

Please login with a confirmed email address before reporting spam

I get a segmentation fault in matlab everytime I run my comsol-generated m-file. The excerpt, below, should re-create the segmentation fault. It seems to happen only if I have three parameters being passed to geomcsg(). Using any two does not cause the function to crash everything. I'm wondering why this is happening and how it can be fixed. Thanks for any help.

Kevin

% COMSOL Multiphysics Model M-file
% Generated by COMSOL 3.5a (COMSOL 3.5.0.603, $Date: 2008/12/03 17:02:19 $)

flclear fem

% COMSOL version
clear vrsn
vrsn.name = 'COMSOL 3.5';
vrsn.ext = 'a';
vrsn.major = 0;
vrsn.build = 603;
vrsn.rcs = '$Name: $';
vrsn.date = '$Date: 2008/12/03 17:02:19 $';
fem.version = vrsn;

% Geometry
g1=rect2('4.29','2.43','base','corner','pos',{'0','0'},'rot','0');
g2=curve2([0,0],[0.18,2.25]);
parr={point2(2.145,1.215)};
g3=geomcoerce('point',parr);

% Analyzed geometry
clear p c s
p.objs={g3};
p.name={'PT1'};
p.tags={'g3'};

c.objs={g2};
c.name={'B1'};
c.tags={'g2'};

s.objs={g1};
s.name={'R1'};
s.tags={'g1'};

fem.draw=struct('p',p,'c',c,'s',s);
fem.geom=geomcsg(fem);

0 Replies Last Post 2010年2月24日 GMT-5 22:23
COMSOL Moderator

Hello Kevin Barnhart

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.