Source file modules.F90
This source file contains global data and subroutines which are imported
as F90-modules. Three F90-modules are defined:
-
Module pe_env:
In this module information related to the processing element and environment
is stored and maintained, e.g. index of neighboring proccessors (nb_pe(x,y,z))
to direct the communication, location of the processor's subdomain in each
spatial direction (my_pex, my_pey, my_pez), total number of processors
(n_pes). For initialization the routine init_pe_env has to
be called at start-up of the program, this routine also contains the MPI-initialization.
Furthermore the routines totalsum, totalsmax, totalmin
are defined here, which calculate the sum, the minimium, and the maximum
of a local variable over all processors.
-
Module part_field:
This modul contains the global data, e.g. electric and magnetic field
and the particles' positions and velocities (full-particle code), electron
pressure (hybrid code), ion velocity and pressure (two-fluid code).
-
Module timer:
The module timer provides storage and subroutines for profiling of
the main subroutines. When the code regularly finishes runtime statistics
are printed.
Switches:
-
maxparticles: The switch maxparticles defines the size of the particle
buffers. The particle buffers should be as large as possible to avoid buffer
overflows when the particles accumulate in a certain area in space. Try
to reduce the buffer size if the memory limit of the machine is exceeded.
On the T3E a good choice is #define maxparticles 1600000.