|
[Sponsors] |
Fluent is stuck after data transfer to nodes? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 30, 2022, 10:28 |
Fluent is stuck after data transfer to nodes?
|
#1 |
Member
Mohammad Shafiee
Join Date: Apr 2021
Posts: 30
Rep Power: 7 |
Hi,
I've encountered another problem with data transfer from the host to the nodes. Lets assume my code looks something like this: Code:
DEFINE_ADJUST(name,libname) { real a[4], b[4], c[4], V ; #if !RP_HOST /*I use nodes to calculate V*/ #endif /*!RP_HOST*/ node_to_host_real_1(V) ; #if !RP_NODE /* I use V to calculate a & b on the host process*/ #endif /*!RP_NODE*/ host_to_node_real(a,4) ; /*solution is stuck here*/ host_to_node_real(b,4) ; Message0("\n a[1] = %f\n", a[1]) ; /*This line is not executed*/ #if !RP_HOST /*Use a & b to calculate c on the nodes*/ #endif /*!RP_HOST*/ } |
|
July 1, 2022, 03:10 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
the code you've showed seems to be correct.
issue could be with memory allocation. you may check your arrays on the host with message macro Code:
Message("\n a[1] = %f\n", a[1]) ;
__________________
best regards ****************************** press LIKE if this message was helpful |
|
July 1, 2022, 07:23 |
|
#3 | |
Member
Mohammad Shafiee
Join Date: Apr 2021
Posts: 30
Rep Power: 7 |
Quote:
but I did check them before posting my problem here. I can print the array elements from the host process, transfering them to nodes though, is not working properly for some reason. |
||
July 3, 2022, 18:09 |
|
#4 |
Member
Mohammad Shafiee
Join Date: Apr 2021
Posts: 30
Rep Power: 7 |
Update:
So, as a work around, instead of using "host_to_node_real" function, I used "PRF_CSEND_REAL(node_zero, &a, 4, myid)" to send the data from the host and then used "PRF_CRECV_REAL(host, &a, 4, host)" to receive it on the node_0. But now during compilation, I'm getting the "undeclared identifier" error for the host parameter. And I'm stuck again! :/ How to fix this? |
|
July 3, 2022, 19:04 |
|
#5 | |
Member
Mohammad Shafiee
Join Date: Apr 2021
Posts: 30
Rep Power: 7 |
Quote:
Code:
PRF_CRECV_REAL(node_host, &a, 4, node_host) ; However, using these "low level message passing macros" did not solve my problem mentioned in the beginning of this thread. Solver is still stuck at executing them |
||
Tags |
parallelization, udf crash |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
Fluent Tutorial on Heat transfer | Far | FLUENT | 15 | July 29, 2017 16:31 |
Animation of Fluent data with paraview | Lilly | FLUENT | 1 | June 26, 2016 17:07 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Fluent crash on writing data file after thousand iterations | Chuck87 | FLUENT | 0 | September 2, 2015 17:17 |