CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

[MPI]: MPI_Cart_* vs DYI topology

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2021, 08:19
Default [MPI]: MPI_Cart_* vs DYI topology
  #1
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 347
Rep Power: 10
Gerry Kan is on a distinguished road
Howdy folks:

A bit of a question in MPI.

For a simple 2D code for a rectangular uniform grid, I have defined my own domain topology. That is, for each rank (kP), the corresponding (i, j) coordinates, problem size (ni x nj), grid offset (i0, j0) and its neighbors in the four principal directions (kE, kW, kN, kS) have been determined manually and stored in arrays.

Now I am thinking of replacing the part of this with MPI_Cart_* functions. I can see that, with this, I don't have to store the coordinate and neighbor information. However, I am still responsible for calculating the offset and problem size for the subdomains.

So this begs the question, whether it are other advantages (I could only think of potential use of MPI I/O, and perhaps some saving in memory) by using MPI_Cart* functions. If not I can only only justify this as being an "exercise" for using this feature.

Any opinions or comments are welcome.

Thanks in advance, Gerry.
Gerry Kan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[TurboGrid] problem with topology verinna ANSYS Meshing & Geometry 3 July 12, 2021 07:28
Turbogrid Topology Generation Issues t8fanning CFX 0 November 6, 2019 11:37
[ANSYS Meshing] Selective Shared Topology / Conformal Mesh Richard Renaud ANSYS Meshing & Geometry 2 November 25, 2015 19:58
[TGrid] Water Turbine meshed in TurboGrid: Geometry and Topology issues ama294 ANSYS Meshing & Geometry 12 September 29, 2014 13:23
[ICEM] Shifted Periodic topology venkat_aero2007 ANSYS Meshing & Geometry 17 August 27, 2013 01:41


All times are GMT -4. The time now is 01:21.