ryosuke-hirai / HORMONE

Repository for hydrodynamical code HORMONE
GNU General Public License v3.0
1 stars 1 forks source link

Further optimize smear #84

Closed ryosuke-hirai closed 1 month ago

ryosuke-hirai commented 2 months ago

When running simulations on very large numbers of MPI nodes, the computation is mostly bottlenecked by the communication in the MPI sweep of smear. Currently, it is written in a way that it loops over the effective cells and there is a couple of reduction calls (for mass, momentum, chemical species and energy) per cell. In principle, the number of reduction calls can be reduced to just two calls, if the values are stored into an array with a length of the number of effective cells.

Plan: