Skip to Main Content
Three-Dimensional Electro-Magnetic Particle Model (3DEMPM), based on the equations of Maxwell and Newton-Lorentz, takes advantages of the Finite-Difference Time-Domain (FDTD) and Particle-In-Cell (PIC) to trace a large quantity of particles in order to gain insight into the physics of them. Although MPI alone can be used to parallelize with 1D decomposition along x-direction, the efficiency decreases with increase of CPUs because there are more communications involved. We combine MPI and OPENMP to reduce the communications in the PC cluster, one node of which shares memory with duel-core. The whole domain is decomposed into several sub-domains, the same number as the nodes. Between the nodes we use MPI to realize the communications, and inside each node the OPENMP is applied to do the parallel computing with no communication. In this way, the higher speed-up is achieved while the communication is reduced.