You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In model.py function clear() which calls solution.java.clearSolution() is not working for COMSOL 6.2.
See 6.2 COMSOL manual:
From version 5.3a, the method model.sol().clearSolution() is deprecated and replaced by the method
model.sol().clearSolutionData() since clearSolutionData generally works as expected, while clearSolution clears settings unexpectedly.
The text was updated successfully, but these errors were encountered:
Hi. Good catch. I think this can be safely replaced, given that we don't support Comsol versions older than 5.5 anyway. Do you want to create the PR? Other than in model.py, it seems that the method is also called directly from the test suite in two different places. But it's just a simple search-and-replace, and then maybe run the test suite.
I guesss I'd always been using .clearSolution(), even in the old Matlab scripts I used to use for Comsol automation way back when, and then never looked up the API documentation again. That would explain how it got there. I've never noticed that it "clears settings unexpectedly". Have you?
It is a bit strange they'd introduce a new method for what sounds like a bug fix. Seems unnecessary. Probably also means that, even though deprecated, it will probably never actually be removed.
In model.py function
clear()
which callssolution.java.clearSolution()
is not working for COMSOL 6.2.See 6.2 COMSOL manual:
The text was updated successfully, but these errors were encountered: