[Nek5000-users] Sharing parameters between processors

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Nov 30 20:47:03 CST 2015


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 [nek5000-users-bounces at lists.mcs.anl.gov] on behalf of nek5000-users at lists.mcs.anl.gov [nek5000-users at lists.mcs.anl.gov]
Sent: Monday, November 30, 2015 4:31 PM
To: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20151201/ca340db7/attachment.html>


More information about the Nek5000-users mailing list