Octopus
mesh.F90 File Reference

Go to the source code of this file.

Modules

module  mesh_oct_m
 This module defines the meshes, which are used in Octopus.
 

Data Types

type  mesh_oct_m::mesh_t
 Describes mesh distribution to nodes. More...
 
type  mesh_oct_m::mesh_plane_t
 define a grid on a plane. More...
 
type  mesh_oct_m::mesh_line_t
 This data type defines a line, and a regular grid defined on this line (or rather, on a portion of this line). NB: only works for 2D grids. More...
 

Functions/Subroutines

subroutine mesh_oct_m::mesh_init (this)
 
subroutine, public mesh_oct_m::mesh_double_box (space, mesh, alpha, db)
 finds the dimension of a box doubled in the non-periodic dimensions More...
 
subroutine, public mesh_oct_m::mesh_write_info (this, iunit, namespace)
 
pure subroutine, public mesh_oct_m::mesh_r (mesh, ip, rr, origin, coords)
 return the distance to the origin for a given grid point More...
 
subroutine mesh_oct_m::mesh_r_global (mesh, ipg, rr, origin, coords)
 return the distance to the origin for a given grid point More...
 
integer function, public mesh_oct_m::mesh_nearest_point (mesh, pos, dmin, rankmin)
 Returns the index of the point which is nearest to a given vector position pos. More...
 
subroutine, public mesh_oct_m::mesh_discretize_values_to_mesh (mesh, values)
 Assign a set of values to their nearest discrete points on the mesh. More...
 
real(real64) function, public mesh_oct_m::mesh_gcutoff (mesh)
 mesh_gcutoff returns the "natural" band limitation of the grid mesh, in terms of the maximum G vector. For a cubic regular grid, it is M_PI/spacing. More...
 
subroutine, public mesh_oct_m::mesh_write_fingerprint (mesh, dir, filename, mpi_grp, namespace, ierr)
 
subroutine, public mesh_oct_m::mesh_read_fingerprint (mesh, dir, filename, mpi_grp, namespace, read_np_part, read_np, bits, type, offset, nn, ierr)
 This function reads the fingerprint of a mesh written in filename. If the meshes are equal (same fingerprint) return values are 0, otherwise it returns the size of the mesh stored. fingerprint cannot be read, it returns ierr /= 0. More...
 
subroutine, public mesh_oct_m::mesh_check_dump_compatibility (mesh, dir, filename, namespace, mpi_grp, grid_changed, grid_reordered, map, ierr)
 
recursive subroutine, public mesh_oct_m::mesh_end (this)
 
integer(int64) function, public mesh_oct_m::mesh_periodic_point (mesh, space, ip)
 This function returns the point inside the grid corresponding to a boundary point when PBCs are used. In case the point does not have a correspondence (i.e. other BCs are used in that direction), the same point is returned. Note that this function returns a global point number when parallelization in domains is used. More...
 
integer(int64) function, public mesh_oct_m::mesh_periodic_point_global (mesh, space, ipg_in)
 
real(real64) pure function, public mesh_oct_m::mesh_global_memory (mesh)
 
real(real64) pure function, public mesh_oct_m::mesh_local_memory (mesh)
 
real(real64) function, dimension(1:mesh%box%dim), public mesh_oct_m::mesh_x_global (mesh, ipg)
 
logical pure function, public mesh_oct_m::mesh_compact_boundaries (mesh)
 
subroutine, public mesh_oct_m::mesh_check_symmetries (mesh, symm, periodic_dim)
 
integer(int64) function, public mesh_oct_m::mesh_global_index_from_coords (mesh, ix)
 This function returns the true global index of the point for a given vector of integer coordinates. More...
 
subroutine, public mesh_oct_m::mesh_global_index_to_coords (mesh, ipg, ix)
 Given a global point index, this function returns the set of integer coordinates of the point. More...
 
integer function, public mesh_oct_m::mesh_local_index_from_coords (mesh, ix)
 This function returns the local index of the point for a given vector of integer coordinates. More...
 
subroutine, public mesh_oct_m::mesh_local_index_to_coords (mesh, ip, ix)
 Given a local point index, this function returns the set of integer coordinates of the point. More...
 
integer(int64) function, public mesh_oct_m::mesh_local2global (mesh, ip)
 This function returns the global mesh index for a given local index. More...
 
integer function, public mesh_oct_m::mesh_global2local (mesh, ipg)
 This function returns the local mesh index for a given global index. More...
 
subroutine, public mesh_oct_m::mesh_minmaxloc (mesh, min_or_max, rank_min_or_max, op)
 Given a local min/max this returns the global min/max and the rank where this is located. More...
 
subroutine mesh_oct_m::dmesh_allreduce_0 (mesh, aa)
 
subroutine mesh_oct_m::dmesh_allreduce_1 (mesh, aa, dim)
 
subroutine mesh_oct_m::dmesh_allreduce_2 (mesh, aa, dim)
 
subroutine mesh_oct_m::dmesh_allreduce_3 (mesh, aa, dim)
 
subroutine mesh_oct_m::dmesh_allreduce_4 (mesh, aa)
 
subroutine mesh_oct_m::dmesh_allreduce_5 (mesh, aa)
 
subroutine mesh_oct_m::zmesh_allreduce_0 (mesh, aa)
 
subroutine mesh_oct_m::zmesh_allreduce_1 (mesh, aa, dim)
 
subroutine mesh_oct_m::zmesh_allreduce_2 (mesh, aa, dim)
 
subroutine mesh_oct_m::zmesh_allreduce_3 (mesh, aa, dim)
 
subroutine mesh_oct_m::zmesh_allreduce_4 (mesh, aa)
 
subroutine mesh_oct_m::zmesh_allreduce_5 (mesh, aa)
 
subroutine mesh_oct_m::imesh_allreduce_0 (mesh, aa)
 
subroutine mesh_oct_m::imesh_allreduce_1 (mesh, aa, dim)
 
subroutine mesh_oct_m::imesh_allreduce_2 (mesh, aa, dim)
 
subroutine mesh_oct_m::imesh_allreduce_3 (mesh, aa, dim)
 
subroutine mesh_oct_m::imesh_allreduce_4 (mesh, aa)
 
subroutine mesh_oct_m::imesh_allreduce_5 (mesh, aa)
 
subroutine mesh_oct_m::lmesh_allreduce_0 (mesh, aa)
 
subroutine mesh_oct_m::lmesh_allreduce_1 (mesh, aa, dim)
 
subroutine mesh_oct_m::lmesh_allreduce_2 (mesh, aa, dim)
 
subroutine mesh_oct_m::lmesh_allreduce_3 (mesh, aa, dim)
 
subroutine mesh_oct_m::lmesh_allreduce_4 (mesh, aa)
 
subroutine mesh_oct_m::lmesh_allreduce_5 (mesh, aa)