Particles_initPositions( integer, INTENT(in) :: myPE, logical, INTENT(inout) :: partPosInitialized, logical, INTENT(out) :: updateRefine)
Initialize particle locations. There are the versions currently available. Lattice creates particles which are evenly distributed in space WithDensity creates particles distributed according to the global distribution of density. FromFile reads them in from a file
myPE : My processor ID partPosInitialized : boolean. Upon entry it is true if all particles have been successfully intialized, and there is no need for further action. Upon exit it has is true if it successfully initialized all the particles locally. The routine for configuring the initial AMR grid "gr_expandDomain" determines if all particles initialization was globally successful. When AMR is not being used, or when refinement based upon Particles is turned off, this routine is called directly from Driver_initFlash with partPosInitialized set to .false. so that particles are initialized. In such instances, the value at output has no meaning. updateRefine : is true if the routine wished to retain the already initialized particles instead of reinitializing them as the grid refine.
Each initialization version has parameters. See the Config files