PetaVision  Alpha
PVLayerLoc.h
1 /*
2  * PVLayerLoc.h
3  */
4 
5 #ifndef PVLAYERLOC_H_
6 #define PVLAYERLOC_H_
7 
14 typedef struct PVHalo_ {
15  int lt, rt, dn, up; // padding in {left, right, down, up} directions
16 } PVHalo;
17 
21 typedef struct PVLayerLoc_ {
22  int nbatch, nx, ny, nf; // local number of grid pts in each dimension
23  int nbatchGlobal, nxGlobal, nyGlobal; // total number of grid pts in the global space
24  int kb0, kx0, ky0; // origin of the local layer in global index space
25  PVHalo halo; // padding for memory (must include nb)
26 } PVLayerLoc;
27 
28 #endif /* PVLAYERLOC_H_ */