CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   userfiles between parallel (https://www.cfd-online.com/Forums/siemens/56731-userfiles-between-parallel.html)

Duarte Albuquerque July 19, 2008 10:31

userfiles between parallel
 
Hi. I am made a moving mesh model that computed the new mesh with some variables in mine "newxyz.f". I would like to use more than 1 processor. How can I make the comunication between different processors?

I have the variables in vectors in common blocks.

thanks for reading

Duarte Albuquerque

steve July 29, 2008 11:17

Re: userfiles between parallel
 
Newxyz works on all processors, so you should be able to calculate everything locally.

If you want to make sure a value is the same on all processors then the way I have had sucess is that I initialise the variable to be a large negative number on all processors, perform the calculation on processor X (which results in a positive number) and the perform a GMAX operation on the variable. This guarantees that the values are the same on all processors.

If the number is -ve, then use the GMIN operation and a large positive initial number.

Other operations are IGMAX/IGMIN for integers and sums of varibles via GSUM and IGSUM.

Your local Agent can help here.

Steve


All times are GMT -4. The time now is 22:51.