[Nek5000-users] Sharing parameters between processors
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Tue Dec 1 05:48:42 CST 2015
OK thanks, I will try that!
Oscar
On 01/12/2015 11:37, nek5000-users at lists.mcs.anl.gov wrote :
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).
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.
philipp
On 2015-12-01 08:38, nek5000-users at lists.mcs.anl.gov wrote:
Hi Paul,
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.
Oscar
On 01/12/2015 03:47, nek5000-users at lists.mcs.anl.gov
<mailto:nek5000-users at lists.mcs.anl.gov> wrote :
Hi Oscar,
Is there a reason why your quantity is modified only on one processor,
and not on the others?
How many values are you working with?
Paul
------------------------------------------------------------------------
*From:* nek5000-users-bounces at lists.mcs.anl.gov
<mailto:nek5000-users-bounces at lists.mcs.anl.gov>
[nek5000-users-bounces at lists.mcs.anl.gov
<mailto:nek5000-users-bounces at lists.mcs.anl.gov>] on behalf of
nek5000-users at lists.mcs.anl.gov
<mailto:nek5000-users at lists.mcs.anl.gov>
[nek5000-users at lists.mcs.anl.gov <mailto:nek5000-users at lists.mcs.anl.gov>]
*Sent:* Monday, November 30, 2015 4:31 PM
*To:* nek5000-users at lists.mcs.anl.gov
<mailto:nek5000-users at lists.mcs.anl.gov>
*Subject:* [Nek5000-users] Sharing parameters between processors
Hi Nekers,
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?
Thanks for your help,
Oscar Valdorez
_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20151201/36ec532f/attachment-0001.html>
More information about the Nek5000-users
mailing list