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 |
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 06:40. |