TAGGED: parallelization
-
-
July 1, 2022 at 5:33 pm
m.shafiee1374
SubscriberHi,
I've encountered another problem with data transfer from the host to the nodes. Lets assume my code looks something like this:
DEFINE_ADJUST(name,libname){real a[4], b[4], c[4], V ;#if !RP_HOST/*Nodes are used to calculate V*/#endif /*!RP_HOST*/node_to_host_real_1(V) ;#if !RP_NODE/*V is used to calculate a & b on the host process*//*I'm able to print a&b values on the TUI from here*/#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*/}All of the above works fine (a and b are filled with real numbers), until it reaches the first line with red comment and the solver gets stuck there without giving any errors whatsoever (I have to actually end the fluent process to force it to exit). Also, I'm not getting any errors during compilation. Whats wrong here? or how can I debug this since I'm not getting any errors? -
July 3, 2022 at 6:49 pm
m.shafiee1374
SubscriberUpdate:
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 at 10:08 pm
m.shafiee1374
SubscriberAfter looking through para.h file from the fluent installation directory, I realized the correct variable that shows the host id is "node_host" not "host" (a mistake in udf manual). so the correct form is :PRF_CRECV_REAL(node_host, &a, 4, node_host) ;Which is then compiled with no errors.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:(
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3744
-
2572
-
1793
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.