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.

ModelUtil.load

Please login with a confirmed email address before reporting spam

Hi everyone,
when I open a Model in my Java-Code model = ModelUtil.load("Model", filepath); within a ProgressWorker the finished(Throwable t) Methode is called multiple times. Same for model.sol("sol1").runAll(); within a ProgressWorker.

- So how do I make sure the model ist loaded first an then calculated?

Thanx
Matthias

1 Reply Last Post Aug 9, 2012, 6:04 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 9, 2012, 6:04 a.m. EDT
The only way to solve the problem up to now was to set up a counter incrementing at each start und decrement at each finish.
The only way to solve the problem up to now was to set up a counter incrementing at each start und decrement at each finish.

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.