Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Error when using API command
Posted May 2, 2011, 10:05 a.m. EDT Interfacing Version 4.1 2 Replies
Please login with a confirmed email address before reporting spam
Hi everyone,
we have a computer, recently upgraded from 4.0a -> 4.1 , where we have a strange problem:
When using some API command (under Matlab) there are systematically error occuring.
When we are running a .m file exported via 4.0a, there is no error in execution.
The same model's .m file exported via 4.1.0.185 -> error occur.
Here is an example:
________________
[...]
model.geom('geom1').feature.create('blk1', 'Block');
model.geom('geom1').runAll;
model.geom('geom1').edgeParamRange(5)
__________________
Here, the error will occur at the last command, returning the following:
__________________
??? Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Illegal input edge number X#5
Messages:
Illegal input edge number X#5
Stack trace:
at com.comsol.model.impl.GeomInfoBaseImpl.b(Unknown Source)
at com.comsol.model.impl.GeomContainerImpl.d(Unknown Source)
at com.comsol.model.impl.GeomContainerImpl.edgeParamRange(Unknown Source)
___________________
This desktop is running with MatLab 2008b.
we have a computer, recently upgraded from 4.0a -> 4.1 , where we have a strange problem:
When using some API command (under Matlab) there are systematically error occuring.
When we are running a .m file exported via 4.0a, there is no error in execution.
The same model's .m file exported via 4.1.0.185 -> error occur.
Here is an example:
________________
[...]
model.geom('geom1').feature.create('blk1', 'Block');
model.geom('geom1').runAll;
model.geom('geom1').edgeParamRange(5)
__________________
Here, the error will occur at the last command, returning the following:
__________________
??? Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: Illegal input edge number X#5
Messages:
Illegal input edge number X#5
Stack trace:
at com.comsol.model.impl.GeomInfoBaseImpl.b(Unknown Source)
at com.comsol.model.impl.GeomContainerImpl.d(Unknown Source)
at com.comsol.model.impl.GeomContainerImpl.edgeParamRange(Unknown Source)
___________________
This desktop is running with MatLab 2008b.
2 Replies Last Post May 4, 2011, 9:59 a.m. EDT