69 integer :: batch_capacity = 1
70 integer :: batch_size = 1
74 integer :: batch_axis = 1
75 real(real64),
pointer,
contiguous :: dRS(:, :, :, :) => null()
76 complex(real64),
pointer,
contiguous :: zRS(:, :, :, :) => null()
77 complex(real64),
pointer,
contiguous :: FS(:, :, :, :) => null()
78 logical :: forced_alloc = .false.
79 logical :: in_device_memory = .false.
80 type(accel_mem_t) :: real_space_buffer
81 type(accel_mem_t) :: fourier_space_buffer
109 type(cube_t),
intent(in) :: cube
110 trivial = cube%cube_map_present .and.
allocated(cube%cube_map%map)
111 if (.not. trivial)
return
115 trivial = cube%cube_map%is_trivial .and. &
116 cube%cube_map%nmap == cube%rs_n(2) * cube%rs_n(3) .and. &
117 cube%cube_map%map(
mcm_count, 1) == cube%rs_n(1) .and. &
118 cube%cube_map%map(1, 1) + cube%center(1) == 1 .and. &
119 cube%cube_map%map(2, 1) + cube%center(2) == 1 .and. &
120 cube%cube_map%map(3, 1) + cube%center(3) == 1
125#include "cube_function_inc.F90"
128#include "complex.F90"
129#include "cube_function_inc.F90"
subroutine zcube_to_mesh_2(cube, cf, mesh, mf, view)
Convert a set of functions from the cube to the mesh.
real(real64) function, public dcube_function_surface_average(cube, cf)
This function calculates the surface average of any function.
complex(real64) function, public zcube_function_surface_average(cube, cf)
This function calculates the surface average of any function.
subroutine dcube_to_mesh_2(cube, cf, mesh, mf, view)
Convert a set of functions from the cube to the mesh.
subroutine dcube_to_mesh_1(cube, cf, mesh, mf)
Convert a single function from the cube to the mesh.
subroutine, public dcube_to_submesh(cube, cf, sm, mf)
subroutine dmesh_to_cube_2(mesh, mf, cube, cf, view)
Convert a set of functions from the mesh to the cube.
subroutine, public dcube_function_allgather(cube, cf, cf_local, order, gatherfs)
subroutine, public zcube_to_mesh_parallel(cube, cf, mesh, mf, map)
subroutine, public dcube_function_alloc_rs(cube, cf, in_device, force_alloc)
Allocates locally the real space grid, if PFFT library is not used. Otherwise, it assigns the PFFT re...
subroutine zmesh_to_cube_2(mesh, mf, cube, cf, view)
Convert a set of functions from the mesh to the cube.
subroutine zmesh_to_cube_1(mesh, mf, cube, cf)
Convert a single function from the mesh to the cube.
subroutine, public zcube_to_submesh(cube, cf, sm, mf)
subroutine, public zmesh_to_cube_parallel(mesh, mf, cube, cf, map)
The next two subroutines convert a function between the normal mesh and the cube in parallel.
subroutine, public dcube_function_free_rs(cube, cf)
Deallocates the real space grid.
subroutine dmesh_to_cube_1(mesh, mf, cube, cf)
Convert a single function from the mesh to the cube.
subroutine, public dsubmesh_to_cube(sm, mf, cube, cf)
The next two subroutines convert a function between a submesh and the cube.
subroutine, public zsubmesh_to_cube(sm, mf, cube, cf)
The next two subroutines convert a function between a submesh and the cube.
subroutine, public zcube_function_allgather(cube, cf, cf_local, order, gatherfs)
subroutine, public dmesh_to_cube_parallel(mesh, mf, cube, cf, map)
The next two subroutines convert a function between the normal mesh and the cube in parallel.
subroutine, public zcube_function_free_rs(cube, cf)
Deallocates the real space grid.
pure logical function cube_map_is_trivial(cube)
True when the cube_map describes a trivial mesh->cube identity: the mesh is X-fastest with one full-X...
subroutine, public dcube_to_mesh_parallel(cube, cf, mesh, mf, map)
subroutine, public zcube_function_alloc_rs(cube, cf, in_device, force_alloc)
Allocates locally the real space grid, if PFFT library is not used. Otherwise, it assigns the PFFT re...
subroutine zcube_to_mesh_1(cube, cf, mesh, mf)
Convert a single function from the cube to the mesh.
Fast Fourier Transform module. This module provides a single interface that works with different FFT ...
This module is intended to contain "only mathematical" functions and procedures.
integer, parameter, public mcm_count
This module defines the meshes, which are used in Octopus.
Some general things and nomenclature:
This module is an helper to perform ring-pattern communications among all states.