<div dir="ltr">OK thanks, I will try that!<br>
<br>
Oscar<br>
<br>
<div class="">On 01/12/2015 11:37, <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> wrote :<br>
</div>
<blockquote cite="mid:mailman.11306.1448966319.24727.nek5000-users@lists.mcs.anl.gov" type="cite">For that purpose you could also use a pseudo-random-numbmer generator 
that produces the sae numbers on each processor (i.e. uses the same seed).
  <br>

  <br>
Otherwise, use what I wrote earlier, namely a bcast operation. That is 
one line in the code assuming the data is produced on processor 0.
  <br>

  <br>
philipp
  <br>

  <br>
On 2015-12-01 08:38, <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> wrote:
  <br>
  <blockquote type="cite">Hi Paul,
<br>
<br>Thanks for your quick answer! These are random numbers I use. They is
<br>not a very large number of them, I have about 100 elements in my array.
<br>However,I need to use the same on all my domain, but as they are random,
<br>I can only generate them once.
<br>
<br>Oscar
<br>
<br>On 01/12/2015 03:47, <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>
<br><mailto:<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>> wrote :
<br><blockquote type="cite">
<br>Hi Oscar,
<br>
<br>Is there a reason why your quantity is modified only on one processor,
<br>and not on the others?
<br>
<br>How many values are you working with?
<br>
<br>Paul
<br>
<br>------------------------------------------------------------------------
<br>*From:* <a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>
<br><mailto:<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>>
<br>[<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>
<br><mailto:<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov">nek5000-users-bounces@lists.mcs.anl.gov</a>>] on behalf of
<br><a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>
<br><mailto:<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>>
<br>[<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a> <mailto:<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>>]
<br>*Sent:* Monday, November 30, 2015 4:31 PM
<br>*To:* <a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>
<br><mailto:<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>>
<br>*Subject:* [Nek5000-users] Sharing parameters between processors
<br>
<br>Hi Nekers,
<br>
<br>In my current simulation, I am defining an array containing parameters
<br>that are shared between several processors. I have tried to do this in
<br>the usercheck subroutine, with a COMMON statement. However, the COMMON
<br>statement enables saving the parameters between two successive calls
<br>of the usercheck by the same processor, but does not enable to share a
<br>variable between two processor. In other words, if I modify the
<br>variable a on the processor 1, the variable a on the processor 2 will
<br>not be modified, which is not what I want. Any idea on how to do that?
<br>
<br>Thanks for your help,
<br>
<br>Oscar Valdorez
<br>
<br></blockquote>
<br>
<br>_______________________________________________
<br>Nek5000-users mailing list
<br><a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
<br><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
<br>
<br></blockquote>
_______________________________________________
  <br>
Nek5000-users mailing list
  <br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a>
  <br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
  <br>

  <br>

  <br>


</blockquote>
<br>
</div>