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 3.5a: start .m-files in batch mode
Posted 8 août 2009, 06:32 UTC−4 5 Replies
Please login with a confirmed email address before reporting spam
Dear Community,
I just installed the latest COMSOL-version 3.5a on my Ubuntu system (previously I used 3.5) and tried to start a job in batch mode. The .m-file (Modell.m) is located in the folder /S40C00 and I get the following error message:
____________________________________________________________________________________________________________________________________________
voelker@Claire:~/COMSOL-Ergebnisse/090806/sent090806/S40C00$ /usr/local/comsol35a/bin/comsol batch Modell
COMSOL Batch (64-bit)
------------------------------------------------------------
Version: COMSOL 3.5a (COMSOL 3.5.0.603)
Patent pending.
Copyright (c) 1998-2008 by COMSOL AB.
All rights reserved.
------------------------------------------------------------
Starting batch job.
------------------------------------------------------------
COMSOL Batch failed!
Error: Invalid arguments. Number of arguments must be even.
Stack trace:
java.lang.RuntimeException: Invalid arguments. Number of arguments must be even.
at com.femlab.server.BatchRunner.a(Unknown Source)
at com.femlab.server.BatchRunner.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.femlab.server.Launcher.main(Unknown Source)
____________________________________________________________________________________________________________________________________________
This happens both with m.-files created in COMSOL 3.5 and 3.5a. I tried it with several jobs that I already successfully ran under version 3.5, but always it's the same error message.
I prepare the -m-files as follows: My colleague has version 3.5a running on her desktop with matlab. She creates the modells in COMSOL, saves them as .mph, then loads them in Matlab (flload *.mph), saves them in Matlab (flsave *.mph fem), reloads them in COMSOL as .mph and then again saves them as *.m (and .mphm). These final *.m / *.mphm files are transfered to my computer (I don't have matlab), where I start them in batch-mode.
This procedure worked fine as long as we both used version 3.5. Since my colleague updated to 3.5a, I couldn't start her files any more (error message: files were created with newer version). Now that I also installed version 3.5a, I cannot start any jobs in batch mode at all (error message: see above).
What am I doing wrong, when I try to start jobs in batch mode? Did the commands for the batch mode change in the latest version 3.5a?
Thanks for your help,
Best regards,
Benjamin Voelker
I just installed the latest COMSOL-version 3.5a on my Ubuntu system (previously I used 3.5) and tried to start a job in batch mode. The .m-file (Modell.m) is located in the folder /S40C00 and I get the following error message:
____________________________________________________________________________________________________________________________________________
voelker@Claire:~/COMSOL-Ergebnisse/090806/sent090806/S40C00$ /usr/local/comsol35a/bin/comsol batch Modell
COMSOL Batch (64-bit)
------------------------------------------------------------
Version: COMSOL 3.5a (COMSOL 3.5.0.603)
Patent pending.
Copyright (c) 1998-2008 by COMSOL AB.
All rights reserved.
------------------------------------------------------------
Starting batch job.
------------------------------------------------------------
COMSOL Batch failed!
Error: Invalid arguments. Number of arguments must be even.
Stack trace:
java.lang.RuntimeException: Invalid arguments. Number of arguments must be even.
at com.femlab.server.BatchRunner.a(Unknown Source)
at com.femlab.server.BatchRunner.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.femlab.server.Launcher.main(Unknown Source)
____________________________________________________________________________________________________________________________________________
This happens both with m.-files created in COMSOL 3.5 and 3.5a. I tried it with several jobs that I already successfully ran under version 3.5, but always it's the same error message.
I prepare the -m-files as follows: My colleague has version 3.5a running on her desktop with matlab. She creates the modells in COMSOL, saves them as .mph, then loads them in Matlab (flload *.mph), saves them in Matlab (flsave *.mph fem), reloads them in COMSOL as .mph and then again saves them as *.m (and .mphm). These final *.m / *.mphm files are transfered to my computer (I don't have matlab), where I start them in batch-mode.
This procedure worked fine as long as we both used version 3.5. Since my colleague updated to 3.5a, I couldn't start her files any more (error message: files were created with newer version). Now that I also installed version 3.5a, I cannot start any jobs in batch mode at all (error message: see above).
What am I doing wrong, when I try to start jobs in batch mode? Did the commands for the batch mode change in the latest version 3.5a?
Thanks for your help,
Best regards,
Benjamin Voelker
5 Replies Last Post 14 août 2009, 10:25 UTC−4