This example show how to set padding value in FasTensor .
- Author
- Bin Dong (dbin@.nosp@m.lbl..nosp@m.gov)
- Version
- 0.1
- Date
- 2021-05-28
- Copyright
- Copyright (c) 2021
#include <iostream>
#include <stdarg.h>
#include <vector>
#include <stdlib.h>
using namespace std;
{
oStencil = (iStencil(0, -1) + iStencil(0, 0) + iStencil(0, 1)) / 3.0;
return oStencil;
}
int main(
int argc,
char *argv[])
{
std::vector<int> chunk_size = {4, 4};
std::vector<int> overlap_size = {1, 1};
Array<float> *A = new Array<float>("EP_HDF5:tutorial.h5:/data", chunk_size, overlap_size);
A->SetOverlapPadding(0);
Array<float> *B = new Array<float>("EP_HDF5:tutorial_ma.h5:/data");
delete A;
delete B;
return 0;
}
Definition: ft_stencil.h:100
void FT_Finalize()
Definition: ft.cpp:107
void FT_Init(int argc, char *argv[], MPI_COMM_TYPE au_mpi_comm_user)
Definition: ft.cpp:92
int main(int argc, char *argv[])
Definition: ft_example_padding.cpp:108
Stencil< float > udf_ma(const Stencil< float > &iStencil)
Definition: ft_example_padding.cpp:101
Definition: ft_array.h:113