<div dir="ltr">Hi Paul,<br>
<br>
Thanks for your quick answer! These are random numbers I use. They is not a very large number of them,
I have about 100 elements in my array. However,I need to use the same on all my
domain, but as they are random, I can only generate them once.<br>
<br>
Oscar<br>
<br>
<div class="">On 01/12/2015 03:47, <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> wrote :<br>
</div>
<blockquote cite="mid:mailman.11289.1448938044.24727.nek5000-users@lists.mcs.anl.gov" type="cite">
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
<div><br>
</div>
Hi Oscar,
<div><br>
</div>
<div>Is there a reason why your quantity is modified only on one processor, and not on the others?</div>
<div><br>
</div>
<div>How many values are you working with?</div>
<div><br>
</div>
<div>Paul</div>
<div><br>
<div style="font-family:Times New Roman;color:rgb(0,0,0);font-size:16px">
<hr tabindex="-1">
<div id="divRpF160876" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b>
<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>
[<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>] on behalf of
<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> [<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>]<br>
<b>Sent:</b> Monday, November 30, 2015 4:31 PM<br>
<b>To:</b> <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a><br>
<b>Subject:</b> [Nek5000-users] Sharing parameters between processors<br>
</font><br>
</div>
<div>
<div dir="ltr">
<p style="margin-bottom:0cm;line-height:100%">Hi Nekers,<br>
</p>
<p style="margin-bottom:0cm;line-height:100%">In my current simulation,
I am defining an array containing parameters that are shared between
several processors. I have tried to do this in the usercheck subroutine,
with a COMMON statement. However, the COMMON
statement enables saving the parameters between two successive calls of
the usercheck by the same processor, but does not enable to share a
variable between two processor. In other words, if I modify the variable
a on the processor 1, the variable a on the
processor 2 will not be modified, which is not what I want. Any idea on
how to do that?</p>
<p style="margin-bottom:0cm;line-height:100%">Thanks for your help,</p>
<p style="margin-bottom:0cm;line-height:100%">Oscar Valdorez </p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>