- #1
grumpymrgruff
- 17
- 2
Hi all - I've been working on some code in Comsol w/ Matlab that works fine on any machine I run it on - so long as I run it through the Comsol w/ Matlab GUI.
No matter which machine I run it on, the program fails if I run Comsol w/ Matlab through a CLI. Specifically, the geominport() function fails to import my geom.mphbin file with the following error (gap is the name of my model m-file):
I am planning to submit this code as a job on a computer cluster where any kind of GUI interface will be out of the question. Has anyone using Comsol/Matlab encountered this problem before, and do you know any workarounds that will let me get my code running without a GUI?
Thanks much!
No matter which machine I run it on, the program fails if I run Comsol w/ Matlab through a CLI. Specifically, the geominport() function fails to import my geom.mphbin file with the following error (gap is the name of my model m-file):
Code:
>> gap
? Java exception occurred:
java.lang.NullPointerException
at com.femlab.server.MlProgressDlg.runAndWait(Unknown Source)
at com.femlab.server.FlRunnable.a(Unknown Source)
at com.femlab.server.FlRunnable.smartRunner(Unknown Source)
Error in ==> geomimport at 208
glr.jptr.smartRunner(report, 500);
Error in ==> gap at 23
garr = geomimport('./geom.mphbin');
I am planning to submit this code as a job on a computer cluster where any kind of GUI interface will be out of the question. Has anyone using Comsol/Matlab encountered this problem before, and do you know any workarounds that will let me get my code running without a GUI?
Thanks much!