MPh: Discovery of Comsol 6.0 fails on Linux

Hi, I’ve upgraded my comsol version to 6.0 and now mph is failing to locate comsol. I did a quick research and it seems that the following code is failing with comsol 6.0: backends.append({ 'name': name, 'major': major, 'minor': minor, 'patch': patch, 'build': build, 'root': root, 'jvm': jvm, 'java': java, 'server': [comsol, 'mphserver'], I’ve downgraded and it works as usual. Louis

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Great! the test now passes with the patch.

Many Thanks for the work, I’ll wait for the release when you’ll have the time.

Hi I confirm that on a linux server mph fails to find the comsol installation. the proposed discovery test returns :

$ python3 tools/test.py discovery --log
Running test group "discovery".
[00:00.138] Checking installation folder "/usr/local/comsol60/multiphysics".
[00:01.060] Reported version info is "COMSOL Multiphysics 6.0.0.318".
[00:01.061] Assigned name "6.0" to this installation.`
[00:01.061] Did not find Java virtual machine.
[00:01.061] Could not locate any Comsol installation.
Traceback (most recent call last):
  File "XXXXX/tests/MPh-main/tests/test_discovery.py", line 40, in <module>
    test_backend()
  File "XXXXX/tests/MPh-main/tests/test_discovery.py", line 25, in test_backend
    backend = mph.discovery.backend()
  File "XXXXX/tests/MPh-main/mph/discovery.py", line 416, in backend
    raise RuntimeError(error)
RuntimeError: Could not locate any Comsol installation.
Failed after 1 s.

tell me if you want additional information

The below holds for Windows 10, COMSOL 6.0: I can confirm that I can run and test everything that does not need a license, and if this is the issue the exception is quite clear.

So if the installation is performed correctly, MPh works with COMSOL 6.0 on either Windows and macOS, I would assume it should work on Linux too.

Thanks for your quick reply. Now I still use COMSOL 5.6 version, later I’ll try to use COMSOL 6.0 because it’s a significant update and I’m willing to report some info with you to improve MPh.