|
FML
|
Class for holding grids and performing real-to-complex and complex-to-real FFTs using FFTW with MPI. More...
#include <FFTWGrid.h>
Public Member Functions | |
| FFTWGrid ()=default | |
| operator bool () const | |
| Has the grid been allocated. | |
| FFTWGrid (int Nmesh, int n_extra_x_slices_left=0, int n_extra_x_slices_right=0) | |
| Constructor. | |
| FFTWGrid (const FFTWGrid &rhs)=default | |
| FFTWGrid & | operator= (const FFTWGrid &rhs)=default |
| FFTWGrid (FFTWGrid &&rhs) noexcept | |
| FFTWGrid & | operator= (FFTWGrid &&rhs) noexcept |
| FloatType * | get_real_grid_left () |
| FloatType * | get_real_grid () |
| The left most slice (slice ix = -nleft_extra,...,-2,-1) | |
| FloatType * | get_real_grid_right () |
| The main grid (slice ix = 0...NLocal_x-1) | |
| FloatType * | get_real_grid_by_slice (int slice) |
| The right grid (slice ix = NLocal_x,NLocal_x+1,...,NLocal_x+nright_extra-1) | |
| ComplexType * | get_fourier_grid () |
| Get the ix'th slice (i.e. -nleft_extra <= ix < NLocal_x+nright_extra) | |
| my_fftw_complex * | get_fftw_grid () |
| The Fourier grid (aligns with the main real grid) | |
| void | free () |
| The fftw_complex cast of get_fourier_gride. | |
| void | fftw_r2c () |
| Perform real-to-complex fourier transform. | |
| void | fftw_c2r () |
| Perform complex-to-real fourier transform. | |
| void | fill_real_grid (const FloatType val) |
| Fill the whole real-grid with a constant value. | |
| void | fill_fourier_grid (const ComplexType val) |
| Fill the whole fourier-grid with a constant value. | |
| void | fill_real_grid (const std::function< FloatType(std::array< double, N > &)> &func) |
| Fill the main grid from a function specifying the value at a given position. | |
| void | fill_fourier_grid (const std::function< ComplexType(std::array< double, N > &)> &func) |
| Fill the main grid from a function specifying the value at a given fourier wave-vector. | |
| std::array< int, N > | get_coord_from_index (const IndexIntType index_real) const |
| Get the (local) cell coordinates from a local index. | |
| std::array< int, N > | get_fourier_coord_from_index (const IndexIntType index_fourier) const |
| Get the (local) cell coordinates from a local index. | |
| IndexIntType | get_index_real (const std::array< int, N > &coord) const |
| From integer (local) coordinate of a cell in Local_nx x [0,Nmesh)^(Ndim-1) to (local) index in allocated grid. | |
| IndexIntType | get_index_fourier (const std::array< int, N > &coord) const |
| From integer (local) coordinate in fourier grid in Local_nx x [0,Nmesh)^(Ndim-2) x [0,Nmesh/2+1) to index in allocated grid. | |
| FloatType | get_real (const std::array< int, N > &coord) const |
| Fetch value in grid by (local) integer coordinate. | |
| FloatType | get_real_from_index (const IndexIntType index) const |
| Fetch value in grid by (local) index. | |
| ComplexType | get_fourier (const std::array< int, N > &coord) const |
| Fetch value in fourier grid by (local) integer coordinate. | |
| ComplexType | get_fourier_from_index (const IndexIntType index) const |
| Fetch value in fourier grid by (local) index. | |
| std::array< double, N > | get_real_position (const std::array< int, N > &coord) const |
| The (global) position of a real grid-cell in [0,1)^Ndim. | |
| std::array< double, N > | get_fourier_wavevector (const std::array< int, N > &coord) const |
| Get the wave-vector of a grid-cell in Fourier space (for physical [k] multiply by 1/Boxsize) | |
| std::array< double, N > | get_fourier_wavevector_from_index (const IndexIntType index) const |
| Get the wave-vector of a grid-cell in Fourier space (for physical [k] multiply by 1/Boxsize) | |
| std::array< int, N > | get_fourier_integer_wavevector_from_index (const IndexIntType index) const |
| void | set_real (const std::array< int, N > &coord, const FloatType value) |
| Set value in grid from (local) integer coordinate in Local_nx x [0,Nmesh)^(Ndim-1) | |
| void | set_real_from_index (const IndexIntType ind, const FloatType value) |
| Set value in grid from (local) index. | |
| void | add_real (const std::array< int, N > &coord, const FloatType value) |
| Add to value in grid. | |
| void | set_fourier (const std::array< int, N > &coord, const ComplexType value) |
| Set value of cell in fourier grid using (local) coordinate in Local_nx x [0,Nmesh)^(Ndim-2) x [0,Nmesh/2+1) | |
| void | set_fourier_from_index (const IndexIntType ind, const ComplexType value) |
| Set value of cell in fourier grid using (local) index. | |
| int | get_n_extra_slices_left () const |
| How many extra slices we have allocated to the left. | |
| int | get_n_extra_slices_right () const |
| How many extra slices we have allocated to the right. | |
| int | get_nmesh () const |
| Number of grid-cells per dimension. | |
| int | get_ndim () const |
| Dimension of the grid. | |
| ptrdiff_t | get_local_nx () const |
| Number of local x-slices in the real grid. | |
| ptrdiff_t | get_local_x_start () const |
| The x-slice the first local slice has in the global grid. | |
| ptrdiff_t | get_ntot_real () const |
| The number of active real cells (with padding) | |
| ptrdiff_t | get_ntot_fourier () const |
| Total number of active Fourier space grid-nodes [ e.g. Local_nx * N * N * ... * (N/2 + 1) ]. | |
| ptrdiff_t | get_ntot_fourier_alloc () const |
| Total number of Fourier space grid-nodes we allocate (same as above + the extra slices) | |
| void | get_fourier_wavevector_and_norm_by_index (const IndexIntType ind, std::array< double, N > &kvec, double &kmag) const |
| From index in the grid get the k-vector and the magnitude of it. | |
| void | get_fourier_wavevector_and_norm2_by_index (const IndexIntType ind, std::array< double, N > &kvec, double &kmag2) const |
| From index in the grid get the k-vector and the norm of it (square magnitude) | |
| RealRange | get_real_range (int islice_begin=0, int islice_end=0) const |
| Range iterator for going through all active cells in the main real real grid by index [ e.g. | |
| FourierRange | get_fourier_range (int islice_begin=0, int islice_end=0) const |
| Range iterator for going through all active cells in the main fourier grid by index [ e.g. | |
| ptrdiff_t | get_ntot_real_slice_alloc () const |
| The number of cells per slice that we alloc. Useful to jump from slice to slice. | |
| bool | nan_in_grids () const |
| Check if we have NaN or Inf anywhere in the allocated grid (including the extra slices) | |
| size_t | allocated_storage_bytes () const |
| Actual retained payload capacity, including halos/padding; excludes object/allocator overhead. | |
| void | communicate_boundaries () |
| Send slices to the neighboring CPUs which stores them in the left and right extra slice storage (with more extra slices than local slices they are forwarded from tasks further away) | |
| void | create_wisdom (int planner_flag, int numthreads=FML::NThreads) |
| This creates FFTW wisdom (but overwrites the arrays so must be done before setting the arrays) | |
| void | load_wisdom (std::string filename) const |
| Load FFTW wisdom. | |
| void | save_wisdom (std::string filename) const |
| Save FFTW wisdom. | |
| void | info () |
| Print some info about the grid. | |
| bool | get_grid_status_real () |
| Get the status of the grid: is it currently a real grid or a fourier grid? | |
| void | set_grid_status_real (bool grid_is_a_real_grid) |
| Set the status of the grid: is it currently a real grid or a fourier grid? | |
| void | add_memory_label (std::string label) |
| For memory logging: add a label to the grid. | |
| void | dump_to_file (std::string fileprefix) |
| Save to file (adds .X to fileprefix where X is ThisTask). | |
| void | load_from_file (std::string fileprefix) |
| Load a grid written by dump_to_file (same number of tasks). | |
| FFTWGrid | clone_empty () const |
| Allocate matching storage with zero owned field values, preserving label/status, halos, FFTW excess allocation contents and real-row padding (not the owned field). | |
| void | reallocate (int Nmesh, int nleft, int nright) |
| FML::INTERPOLATION::SPLINE::Spline | make_fourier_spline (std::function< double(double)> function_of_kBox, std::string label, int sampling_factor=4) const |
| std::function can be slow so for looping through a fourier grid and evaluating a function f(k) in every cell its faster to make a spline and use this instead. | |
| std::function< double(double)> | make_fourier_spline (std::function< double(double)> function_of_kBox, std::string label, int sampling_factor=4) const |
Static Public Member Functions | |
| static size_t | storage_bytes (int nmesh) |
| Local allocation for a zero-halo grid, without allocating a mesh. | |
Class for holding grids and performing real-to-complex and complex-to-real FFTs using FFTW with MPI.
Templated on dimension.
The real and fourier grid is stored in the same array to save memory and all transforms are done in-place. Keeps track of the status of the grid, i.e. if its in real-space or fourier-space (set with set_grid_status_real)
The default constructor arguments in (Nmesh, n_extra_left, n_extra_right) is:
N : Dimension of the grid
Nmesh : Number of grid-nodes per dimension (assuming the same)
n_extra : Alloc extra slices of the grid in the x-dimension (left and/or right)
Compile-time defines:
BOUNDSCHECK_FFTWGRID : bound checks when setting and getting values
SINGLE_PRECISION_FFTW : use float instead of double
LONG_DOUBLE_PRECISION_FFTW : use load double instead of double
DEBUG_FFTWGRID : Show some info while running
USE_FFTW_THREADS : Use threads if possible. With this we assume the maximum number of threads If you want to use fewer then you can call create_wisdom(..., nthreads) to change this
See FFTWGlobal.h for type definitions and the defines that deal with the precision we want.
External variables/methods we rely on:
ThisTask : The MPI task number
NTasks : Number of MPI tasks
assert_mpi(Expr, Msg)
T power(T base, int exponent);
The grid-stucture is only compatible with in-place FFTW transforms so for using the methods that FT from one grid to another we copy the grid and transforms that.
Definition at line 98 of file FFTWGrid.h.
|
default |
| FML::GRID::FFTWGrid< N >::FFTWGrid | ( | int | Nmesh, |
| int | n_extra_x_slices_left = 0, | ||
| int | n_extra_x_slices_right = 0 ) |
Constructor.
| [in] | Nmesh | Total number of grid-cells per dimension |
| [in] | n_extra_x_slices_left | Number of extra x-slices to the left of the grid (for keeping boundary data from neighbor) |
| [in] | n_extra_x_slices_right | Number of extra x-slices to the right of the grid (for keeping boundary data from neighbor) |
Definition at line 947 of file FFTWGrid.h.
|
default |
|
noexcept |
Definition at line 918 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::add_memory_label | ( | std::string | label | ) |
For memory logging: add a label to the grid.
Definition at line 404 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::add_real | ( | const std::array< int, N > & | coord, |
| const FloatType | value ) |
Add to value in grid.
Definition at line 1190 of file FFTWGrid.h.
|
inline |
Actual retained payload capacity, including halos/padding; excludes object/allocator overhead.
Definition at line 310 of file FFTWGrid.h.
|
inline |
Allocate matching storage with zero owned field values, preserving label/status, halos, FFTW excess allocation contents and real-row padding (not the owned field).
Definition at line 351 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::communicate_boundaries | ( | ) |
Send slices to the neighboring CPUs which stores them in the left and right extra slice storage (with more extra slices than local slices they are forwarded from tasks further away)
Definition at line 829 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::create_wisdom | ( | int | planner_flag, |
| int | numthreads = FML::NThreads ) |
This creates FFTW wisdom (but overwrites the arrays so must be done before setting the arrays)
Definition at line 611 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::dump_to_file | ( | std::string | fileprefix | ) |
Save to file (adds .X to fileprefix where X is ThisTask).
A raw copy of the grid meant for checkpointing: read it back with load_from_file with the same number of tasks. Aborts (assert_mpi) if the file cannot be written
Definition at line 1492 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fftw_c2r | ( | ) |
Perform complex-to-real fourier transform.
Definition at line 1132 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fftw_r2c | ( | ) |
Perform real-to-complex fourier transform.
Definition at line 1077 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fill_fourier_grid | ( | const ComplexType | val | ) |
Fill the whole fourier-grid with a constant value.
Definition at line 762 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fill_fourier_grid | ( | const std::function< ComplexType(std::array< double, N > &)> & | func | ) |
Fill the main grid from a function specifying the value at a given fourier wave-vector.
Definition at line 775 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fill_real_grid | ( | const FloatType | val | ) |
Fill the whole real-grid with a constant value.
Definition at line 721 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::fill_real_grid | ( | const std::function< FloatType(std::array< double, N > &)> & | func | ) |
Fill the main grid from a function specifying the value at a given position.
Definition at line 736 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::free | ( | ) |
The fftw_complex cast of get_fourier_gride.
Free all the memory associated with the grid and reset it to an empty grid (as if default constructed, only the label is kept)
Definition at line 1453 of file FFTWGrid.h.
| std::array< int, N > FML::GRID::FFTWGrid< N >::get_coord_from_index | ( | const IndexIntType | index_real | ) | const |
Get the (local) cell coordinates from a local index.
Definition at line 996 of file FFTWGrid.h.
| my_fftw_complex * FML::GRID::FFTWGrid< N >::get_fftw_grid | ( | ) |
The Fourier grid (aligns with the main real grid)
Definition at line 1224 of file FFTWGrid.h.
| ComplexType FML::GRID::FFTWGrid< N >::get_fourier | ( | const std::array< int, N > & | coord | ) | const |
Fetch value in fourier grid by (local) integer coordinate.
Definition at line 1201 of file FFTWGrid.h.
| std::array< int, N > FML::GRID::FFTWGrid< N >::get_fourier_coord_from_index | ( | const IndexIntType | index_fourier | ) | const |
Get the (local) cell coordinates from a local index.
Definition at line 1287 of file FFTWGrid.h.
| ComplexType FML::GRID::FFTWGrid< N >::get_fourier_from_index | ( | const IndexIntType | index | ) | const |
Fetch value in fourier grid by (local) index.
Definition at line 1207 of file FFTWGrid.h.
| ComplexType * FML::GRID::FFTWGrid< N >::get_fourier_grid | ( | ) |
Get the ix'th slice (i.e. -nleft_extra <= ix < NLocal_x+nright_extra)
Definition at line 551 of file FFTWGrid.h.
| std::array< int, N > FML::GRID::FFTWGrid< N >::get_fourier_integer_wavevector_from_index | ( | const IndexIntType | index | ) | const |
Definition at line 1395 of file FFTWGrid.h.
| FourierRange FML::GRID::FFTWGrid< N >::get_fourier_range | ( | int | islice_begin = 0, |
| int | islice_end = 0 ) const |
Range iterator for going through all active cells in the main fourier grid by index [ e.g.
for(auto and real_index: grid.real_range()) ] If you add the slice numbers we only loop over the given slice range For the Fourier range islice denotes the ikx value
Definition at line 507 of file FFTWGrid.h.
| std::array< double, N > FML::GRID::FFTWGrid< N >::get_fourier_wavevector | ( | const std::array< int, N > & | coord | ) | const |
Get the wave-vector of a grid-cell in Fourier space (for physical [k] multiply by 1/Boxsize)
Definition at line 1347 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::get_fourier_wavevector_and_norm2_by_index | ( | const IndexIntType | ind, |
| std::array< double, N > & | kvec, | ||
| double & | kmag2 ) const |
From index in the grid get the k-vector and the norm of it (square magnitude)
Definition at line 1299 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::get_fourier_wavevector_and_norm_by_index | ( | const IndexIntType | ind, |
| std::array< double, N > & | kvec, | ||
| double & | kmag ) const |
From index in the grid get the k-vector and the magnitude of it.
Definition at line 1279 of file FFTWGrid.h.
| std::array< double, N > FML::GRID::FFTWGrid< N >::get_fourier_wavevector_from_index | ( | const IndexIntType | index | ) | const |
Get the wave-vector of a grid-cell in Fourier space (for physical [k] multiply by 1/Boxsize)
Definition at line 1358 of file FFTWGrid.h.
| bool FML::GRID::FFTWGrid< N >::get_grid_status_real | ( | ) |
Get the status of the grid: is it currently a real grid or a fourier grid?
Definition at line 561 of file FFTWGrid.h.
| IndexIntType FML::GRID::FFTWGrid< N >::get_index_fourier | ( | const std::array< int, N > & | coord | ) | const |
From integer (local) coordinate in fourier grid in Local_nx x [0,Nmesh)^(Ndim-2) x [0,Nmesh/2+1) to index in allocated grid.
Definition at line 1052 of file FFTWGrid.h.
| IndexIntType FML::GRID::FFTWGrid< N >::get_index_real | ( | const std::array< int, N > & | coord | ) | const |
From integer (local) coordinate of a cell in Local_nx x [0,Nmesh)^(Ndim-1) to (local) index in allocated grid.
Definition at line 1024 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_local_nx | ( | ) | const |
Number of local x-slices in the real grid.
Definition at line 1255 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_local_x_start | ( | ) | const |
The x-slice the first local slice has in the global grid.
Definition at line 1260 of file FFTWGrid.h.
| int FML::GRID::FFTWGrid< N >::get_n_extra_slices_left | ( | ) | const |
How many extra slices we have allocated to the left.
Definition at line 1468 of file FFTWGrid.h.
| int FML::GRID::FFTWGrid< N >::get_n_extra_slices_right | ( | ) | const |
How many extra slices we have allocated to the right.
Definition at line 1473 of file FFTWGrid.h.
| int FML::GRID::FFTWGrid< N >::get_ndim | ( | ) | const |
| int FML::GRID::FFTWGrid< N >::get_nmesh | ( | ) | const |
Number of grid-cells per dimension.
Definition at line 1230 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_ntot_fourier | ( | ) | const |
Total number of active Fourier space grid-nodes [ e.g. Local_nx * N * N * ... * (N/2 + 1) ].
Definition at line 1245 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_ntot_fourier_alloc | ( | ) | const |
Total number of Fourier space grid-nodes we allocate (same as above + the extra slices)
Definition at line 1250 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_ntot_real | ( | ) | const |
The number of active real cells (with padding)
Definition at line 1240 of file FFTWGrid.h.
| ptrdiff_t FML::GRID::FFTWGrid< N >::get_ntot_real_slice_alloc | ( | ) | const |
The number of cells per slice that we alloc. Useful to jump from slice to slice.
Definition at line 716 of file FFTWGrid.h.
| FloatType FML::GRID::FFTWGrid< N >::get_real | ( | const std::array< int, N > & | coord | ) | const |
Fetch value in grid by (local) integer coordinate.
Definition at line 1176 of file FFTWGrid.h.
| FloatType FML::GRID::FFTWGrid< N >::get_real_from_index | ( | const IndexIntType | index | ) | const |
| FloatType * FML::GRID::FFTWGrid< N >::get_real_grid | ( | ) |
The left most slice (slice ix = -nleft_extra,...,-2,-1)
Definition at line 532 of file FFTWGrid.h.
| FloatType * FML::GRID::FFTWGrid< N >::get_real_grid_by_slice | ( | int | slice | ) |
The right grid (slice ix = NLocal_x,NLocal_x+1,...,NLocal_x+nright_extra-1)
Definition at line 537 of file FFTWGrid.h.
| FloatType * FML::GRID::FFTWGrid< N >::get_real_grid_left | ( | ) |
Definition at line 527 of file FFTWGrid.h.
| FloatType * FML::GRID::FFTWGrid< N >::get_real_grid_right | ( | ) |
| std::array< double, N > FML::GRID::FFTWGrid< N >::get_real_position | ( | const std::array< int, N > & | coord | ) | const |
The (global) position of a real grid-cell in [0,1)^Ndim.
Definition at line 1265 of file FFTWGrid.h.
| RealRange FML::GRID::FFTWGrid< N >::get_real_range | ( | int | islice_begin = 0, |
| int | islice_end = 0 ) const |
Range iterator for going through all active cells in the main real real grid by index [ e.g.
for(auto and real_index: grid.real_range()) ] If you add the slice numbers we only loop over the given slice range
Definition at line 488 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::info | ( | ) |
Print some info about the grid.
Definition at line 566 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::load_from_file | ( | std::string | fileprefix | ) |
Load a grid written by dump_to_file (same number of tasks).
Aborts (assert_mpi) if the file cannot be read, is truncated or does not match the current domain decomposition
Definition at line 1532 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::load_wisdom | ( | std::string | filename | ) | const |
Load FFTW wisdom.
Definition at line 641 of file FFTWGrid.h.
| FML::INTERPOLATION::SPLINE::Spline FML::GRID::FFTWGrid< N >::make_fourier_spline | ( | std::function< double(double)> | function_of_kBox, |
| std::string | label, | ||
| int | sampling_factor = 4 ) const |
std::function can be slow so for looping through a fourier grid and evaluating a function f(k) in every cell its faster to make a spline and use this instead.
This method makes such a spline.
| [in] | function_of_kBox | The function f(kBox) |
| [in] | label | The label given to the spline. Useful for giving error messages if the spline ever throw errors |
| [in] | sampling_factor | How many points per integer wavenumber should we sample the function at when making the spline? |
Definition at line 1632 of file FFTWGrid.h.
|
inline |
Definition at line 390 of file FFTWGrid.h.
| bool FML::GRID::FFTWGrid< N >::nan_in_grids | ( | ) | const |
Check if we have NaN or Inf anywhere in the allocated grid (including the extra slices)
Definition at line 1478 of file FFTWGrid.h.
|
explicit |
Has the grid been allocated.
Definition at line 399 of file FFTWGrid.h.
|
default |
|
noexcept |
Definition at line 923 of file FFTWGrid.h.
|
inline |
Definition at line 379 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::save_wisdom | ( | std::string | filename | ) | const |
Save FFTW wisdom.
Definition at line 657 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::set_fourier | ( | const std::array< int, N > & | coord, |
| const ComplexType | value ) |
Set value of cell in fourier grid using (local) coordinate in Local_nx x [0,Nmesh)^(Ndim-2) x [0,Nmesh/2+1)
Definition at line 1217 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::set_fourier_from_index | ( | const IndexIntType | ind, |
| const ComplexType | value ) |
Set value of cell in fourier grid using (local) index.
Definition at line 1212 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::set_grid_status_real | ( | bool | grid_is_a_real_grid | ) |
Set the status of the grid: is it currently a real grid or a fourier grid?
Definition at line 556 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::set_real | ( | const std::array< int, N > & | coord, |
| const FloatType | value ) |
Set value in grid from (local) integer coordinate in Local_nx x [0,Nmesh)^(Ndim-1)
Definition at line 1184 of file FFTWGrid.h.
| void FML::GRID::FFTWGrid< N >::set_real_from_index | ( | const IndexIntType | ind, |
| const FloatType | value ) |
Set value in grid from (local) index.
Definition at line 1196 of file FFTWGrid.h.
|
inlinestatic |
Local allocation for a zero-halo grid, without allocating a mesh.
Definition at line 313 of file FFTWGrid.h.