ls1-MarDyn
ls1-MarDyn molecular dynamics code
FFTDataContainer_blocks.h
1/*
2 * FFTDataContainer_blocks.h
3 *
4 * Created on: Feb 12, 2016
5 * Author: gallardjm
6 */
7#ifndef FFTDATA_BLOCK_H_
8#define FFTDATA_BLOCK_H_
9
10#include "bhfmm/fft/FFTSettings_preprocessor.h" //tmp include for the typedef FFT_precision
11#include "bhfmm/fft/FFTDataContainer.h"
12#include "bhfmm/fft/tools/fft_utils.h"
13#include <stdlib.h>
14
15/*
16 * Storage for blocks, can be used with scaling Blocks (scalBlock)
17 *
18 * blocks[i] is a matrix reprensenting the ith block
19 * Convention: block 0 contain the terms of lowest order
20 * => source matrix in ascending block (block 0 is the top of the matrix),
21 * tf and target matrices in descending blocks (block 0 is the lower part of the matrix)
22 */
24
25public:
26 FFTDataContainer_blocks(int nbBlocks, int nx, int ny) :
27 _nbBlocks(nbBlocks), _nx(nx), _ny(ny) {
28 }
29
30 FFT_precision*** Re;
31 FFT_precision*** Im;
32 int _nbBlocks;
33 int _nx;
34 int _ny;
35
37 delete_blocks(Re, _nbBlocks);
38 delete_blocks(Im, _nbBlocks);
39 }
40
43 _nx, _ny);
44 copy->Re = copy_blocks(Re, _nbBlocks, _nx, _ny);
45 copy->Im = copy_blocks(Im, _nbBlocks, _nx, _ny);
46
47 return copy;
48 }
49};
50
51#endif
Definition: FFTDataContainer_blocks.h:23
FFTDataContainer * copyContainer()
Definition: FFTDataContainer_blocks.h:41
Definition: FFTDataContainer.h:14