![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
You can direct ANSYS FLUENT to display messages on a host, node, or serial process using the Message utility. To do this, simply use a conditional if statement and the appropriate compiler directive (e.g., #if RP_NODE) to select the process(es) you want the message to come from. This is demonstrated in the following example:
Example
#if RP_NODE Message("Total Area Before Summing %f\n",total\_area); #endif /* RP_NODE */ |
In this example, the message will be sent by the compute nodes. (It will not be sent by the host or serial process.)
Message0 is a specialized form of the Message utility. Message0 will send messages from compute node-0 only and is ignored on the other compute nodes, without having to use a compiler directive. Note that Message0 will also display messages on a serial process.
Example
/* Let Compute Node-0 display messages */ Message0("Total volume = %f\n",total_volume); |