[FLASH-USERS] sum over all blocks

Maksim Kozlov maksim.kozlov at nu.edu.kz
Tue Jun 8 02:57:36 EDT 2021


Dear flash users,
I need to sum some variable over all blocks of the computational domain.
Blocks of the computational domain are divided between different processors
for parallel computations. Variables blockCount in
Simulation_adjustEvolution or count in  gr_expandDomain  take into account
only blocks processed by one processor not all blocks in the computational
domain. Cycles in these subroutines run only through blocks of one
processor. I would really appreciate it if somebody gives me an idea on how
I can run through all blocks of the computational domain to calculate the
sum of some variable over all blocks (for example total volume of blocks or
total mass of blocks).
Thank you very much!
Maksim Kozlov

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Без
вирусов. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210608/0b7d25dd/attachment.htm>


More information about the flash-users mailing list