<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="http://www.comsol.fi/community/forums/general/rss/thread/2738.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: &quot;wait&quot; option missing when using COMSOL/Matlab with a scheduler (Python)</title>
  <link>http://www.comsol.fi/community/forums/general/thread/2738/</link>
  <description>Most recent forum messages</description>
  <pubDate>Sun, 14 Mar 2010 13:48:40 +0000</pubDate>
  <image>
   <title>COMSOL Forums: &quot;wait&quot; option missing when using COMSOL/Matlab with a scheduler (Python)</title>
   <url>http://www.comsol.fi/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.fi/community/forums/general/thread/2738/</link>
  </image>
  <item>
   <title>Re: &quot;wait&quot; option missing when using COMSOL/Matlab with a scheduler (Python)</title>
   <link>http://www.comsol.fi/community/forums/general/thread/2738/#p9931</link>
   <description>I had exactly the same problem and couldn't get the wait option to work.  What i eventually did was create a batch file for each model i wanted to run and then created a main batch file which called each one of these individually using: &amp;quot;start /wait &amp;lt;path&amp;gt;\Batch.bat&amp;quot;.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
So my main batch file looked like:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
start /wait &amp;lt;path&amp;gt;\Batch1.bat&lt;br /&gt;&#13;
start /wait &amp;lt;path&amp;gt;\Batch2.bat&lt;br /&gt;&#13;
start /wait &amp;lt;path&amp;gt;\Batch3.bat&lt;br /&gt;&#13;
start /wait &amp;lt;path&amp;gt;\Batch4.bat&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
and the contents of for example Batch1.bat was:&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
start c:\COMSOL35\bin\comsol.exe matlab -ml /nodesktop -ml /nosplash -mlr &amp;quot;cd &amp;lt;path_to_model&amp;gt;; model1&amp;quot;.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Not sure if this helps you though as havent used python scheduler</description>
   <pubDate>Sun, 14 Mar 2010 13:48:40 +0000</pubDate>
   <guid isPermaLink="false">2738.1268574520.9931</guid>
  </item>
  <item>
   <title>&quot;wait&quot; option missing when using COMSOL/Matlab with a scheduler (Python)</title>
   <link>http://www.comsol.fi/community/forums/general/thread/2738/#p7052</link>
   <description>Hello,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I am using COMSOL/Matlab with a scheduler (Python).&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
For ordinary Matlab it is possible to use the wait option, e.g. matlab -nodesktop -minimize -r -wait &amp;quot;checkMail, exit&amp;quot;, which tells the scheduler to wait till 'checkMail.m' is completed.&lt;br /&gt;&#13;
Reference: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/matlabwindows.html&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
However, the &amp;quot;wait&amp;quot; option does not work for COMSOL/Matlab, e.g. C:/Programme/Comsol35a/bin/comsol.exe matlab -ml /nodesktop -ml /nosplash -ml /wait -mlr &amp;quot;flreport('off'), mainprogram, exit&amp;quot;&lt;br /&gt;&#13;
This holds, even though COMSOL tells, that the ordinary Matlab options can be used:&lt;br /&gt;&#13;
http://www.comsol.com/support/knowledgebase/980/&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Is there any way to use the &amp;quot;wait&amp;quot; option?&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I ended up writing an ASCII file and telling the scheduler to wait for this file to be written.&lt;br /&gt;&#13;
Contacting COMSOL support was not very helpful, at least so far.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Regards,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Andreas</description>
   <pubDate>Thu, 21 Jan 2010 05:09:03 +0000</pubDate>
   <guid isPermaLink="false">2738.1264050543.7052</guid>
  </item>
 </channel>
</rss>

