|
[Sponsors] |
October 11, 2016, 09:06 |
How can I globally reduce to any value?
|
#1 |
New Member
Join Date: Sep 2016
Posts: 9
Rep Power: 10 |
I understand that there are global reduction macros for parallel computing, which can make all the nodes have a minimum/ maximum/ boolean value. But I do not want to reduce to a minimum/ maximum.
Instead, say I have a vector [a1, a2, a3]. Each node has a copy of this vector, and the values differ from node to node. I want all nodes to take the values from the node which has minimum a1. e.g: NODE0: [0.21, 5, 8] NODE1: [0.1, 4, 10] NODE2: [0.15, 0, -5] I want all nodes to have the vector corresponding to minimum a1. In other words, after reduction, I want my data to look like this: NODE0: [0.1, 4, 10] NODE1: [0.1, 4, 10] NODE2: [0.1, 4, 10] Does anyone have any idea if this is possible? Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to reduce reducing rpvar dpm/parallel/loop-factor | Tarantino | FLUENT | 13 | December 5, 2017 10:39 |
Hi Do mesh have to do to reduce the temperature at the outlet? i need the reduce temp | reslan | FLUENT | 0 | March 16, 2016 03:10 |
to reduce overall cells using snappy | vishnunitro | Main CFD Forum | 0 | February 24, 2014 11:41 |
openfoam reduce() and MPI_barrier | mechy | OpenFOAM Programming & Development | 3 | October 7, 2013 10:11 |
Very Urgent: How to reduce no of cell types? | Harendra | Siemens | 3 | December 14, 2004 17:13 |