Updates the total count of Lagrangian objects.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lagrangian_set), | intent(inout) | :: | this |
A set of Lagrangian objects |
impure subroutine lagrangian_set_UpdateCount(this) !> Updates the total count of Lagrangian objects. implicit none class(lagrangian_set), intent(inout) :: this !! A set of Lagrangian objects ! Work variables integer :: ierr associate(mpi=>this%parallel) call MPI_ALLGATHER(this%count_,1,mpi%INTEGER,this%count_proc,1,mpi%INTEGER,mpi%comm%g,ierr) end associate this%count=sum(this%count_proc) return end subroutine lagrangian_set_UpdateCount