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.

Comsol with matlab error on HPC cluster

Please login with a confirmed email address before reporting spam

Dear All,

I run my comsol models with matlab on HPC cluster which have CentOS Linux installed on it. I use the following command for starting Comsol server on HPC

comsol mphserver &

This command starts Comsol server successfully but when I start connecting matlab to it by the following commmand:

matlab -nodesktop -nosplash -r "mphstart; mymfile.m; exit",

there appears an error which say: "Comsol server must run before calling mphstart", while I am sure about starting Comsol server, even when I try to start Comsol with Matlab by the command:

comsol mphserver matlab

server starts and runs Matlab but a confusing java error occurred and further processing is blocked.
FYI, I use Comsol version 5.3, It is interesting to inform you that everything is OK on my laptop with Windows 7. These errors occurs when I try to perform my simulations on HPC.

Any suggestions and helps are appreciated, Thanks,

1 Reply Last Post 30 août 2017, 07:06 UTC−4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 30 août 2017, 07:06 UTC−4
Hi Robert

It seems as if your Matlab session can't see your session where Comsol Multiphysics Server is running. Are you running these on the same computer? Does the computer have a firewall?

Supplying mphstart with the server name and port number often helps.



--
Lars Gregersen
Comsol Denmark
Hi Robert It seems as if your Matlab session can't see your session where Comsol Multiphysics Server is running. Are you running these on the same computer? Does the computer have a firewall? Supplying mphstart with the server name and port number often helps. -- Lars Gregersen Comsol Denmark

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.