Synchronize geometry coordinates from master rank to all worker ranks This is needed when master rank updates coordinates for optimization/dynamics
TODO: Implement explicit broadcast if needed. Currently, the fragmented calculation infrastructure may already handle geometry distribution. For unfragmented calculations on master rank only, this is not needed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(system_geometry_t), | intent(inout) | :: | sys_geom | |||
| type(comm_t), | intent(in) | :: | comm |
subroutine sync_geometry_to_workers(sys_geom, comm) !! Synchronize geometry coordinates from master rank to all worker ranks !! This is needed when master rank updates coordinates for optimization/dynamics !! !! TODO: Implement explicit broadcast if needed. Currently, the fragmented !! calculation infrastructure may already handle geometry distribution. !! For unfragmented calculations on master rank only, this is not needed. type(system_geometry_t), intent(inout) :: sys_geom type(comm_t), intent(in) :: comm ! NOTE: For now, we rely on the existing calculation infrastructure ! to handle geometry as needed. If explicit broadcasting is required, ! we can add MPI send/recv logic here later. end subroutine sync_geometry_to_workers