[MITgcm-support] [EXTERNAL] Question about MPI sums
Wang, Ou (US 329B)
ou.wang at jpl.nasa.gov
Thu Jun 22 13:15:30 EDT 2023
Hi Hassan,
Are there any routines that are more selective about the tiles included in the sum?
I am not aware of any.
Is there a routine that works like global_sum_tile.F but for element-wise vector addition instead of single values?
The subroutine global_vec_sum.F might be what you are looking for.
Best,
Ou Wang
From: MITgcm-support <mitgcm-support-bounces at mitgcm.org> on behalf of Hassan Mason <hcm7920 at nyu.edu>
Date: Thursday, June 22, 2023 at 9:53 AM
To: mitgcm-support at mitgcm.org <mitgcm-support at mitgcm.org>
Subject: [EXTERNAL] [MITgcm-support] Question about MPI sums
Hi all,
I'm currently constructing an addition to MITgcm and I'm stuck implementing it with MPI.
I have a value that's calculated for each tile and I need to sum over all tiles aligned in a horizontal direction. In other words, I want to sum over a specific column of tiles, and in the end each tile would know the sum of the column to which it belongs.
I see there are routines like global_sum_tile.F that perform a global sum, but are there any routines that are more selective about the tiles included in the sum? Alternatively, is there a routine that works like global_sum_tile.F but for element-wise vector addition instead of single values?
Thanks!
Hassan Mason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20230622/e9d28139/attachment.html>
More information about the MITgcm-support
mailing list