<div dir="ltr">A partial solution is to include them in $WIENROOT/parallel_options, as all the parallel routines source this file. You may be able to tweak this for what you want, but since I don't know exactly what you want to set I am not sure.<div><br></div><div>N.B., if you are using openmpi then you have to enable transfer for variables in the mpi call command, and perhaps for other flavors as well.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 8:25 AM, Pavel Ondracka <span dir="ltr"><<a href="mailto:pavel.ondracka@email.cz" target="_blank">pavel.ondracka@email.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Wien2k mailing list,<br>
<br>
I'm having some troubles passing environmental variables (eg.<br>
OMP_NUM_THREADS or similar) to lapw1 and lapw2. This works in serial<br>
mode where the lapw* programs are called directly, however in parallel<br>
mode they are run through remote shell and all environmental info is<br>
lost.<br>
I can declare them in my .bashrc and then it works (since the .bashrc<br>
is reloaded when remote shell is spawned) however i would  like to<br>
specify them per task.<br>
One solution I had in mind was to go through AcceptEnv in sshd however<br>
this is considered insecure according to cluster admins an is disabled.<br>
Another option is to modify the wien scripts to include the required<br>
variables when calling the remote shell, however at the moment I'm<br>
wondering if there is more universal and elegant solution?<br>
Any ideas?<br>
<br>
Best regards<br>
Pavel Ondračka<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Professor Laurence Marks<br>Department of Materials Science and Engineering<br>Northwestern University<br><a href="http://www.numis.northwestern.edu" target="_blank">www.numis.northwestern.edu</a><div>Corrosion in 4D: <a href="http://MURI4D.numis.northwestern.edu" target="_blank">MURI4D.numis.northwestern.edu</a><br>Co-Editor, Acta Cryst A<br>"Research is to see what everybody else has seen, and to think what nobody else has thought"<br>Albert Szent-Gyorgi</div></div></div>
</div>