FLASH-X
Doxygen Generated Documentation From Interface Source Code
Functions/Subroutines
Particles_getGlobalNum.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine Particles_getGlobalNum (globalNumParticles)
 

Function/Subroutine Documentation

◆ Particles_getGlobalNum()

subroutine Particles_getGlobalNum ( integer  globalNumParticles)

Returns the global (total) number of particles in the simulation after computing it by calling an MPI reduction routine.

Needed for input/output across all processors.

globalNumParticles : integer number of particles across all processors

SIDE EFFECTS

The default implementation writes to the log file a line with the current global number of particles when first called, and then whenever the number has changed since the previous time.

Definition at line 33 of file Particles_getGlobalNum.F90.