ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_TileNoZ.H
Go to the documentation of this file.
1 #ifndef ERF_TILE_NO_Z_H_
2 #define ERF_TILE_NO_Z_H_
3 
4 #include <AMReX.H>
5 
6 /**
7  * Function returns explicit tile size that prevents tiling in z
8  */
9 
10 AMREX_FORCE_INLINE
11 amrex::IntVect TileNoZ ()
12 {
13  if (amrex::TilingIfNotGPU()) {
14  return amrex::IntVect{amrex::FabArrayBase::mfiter_tile_size[0],
15  amrex::FabArrayBase::mfiter_tile_size[1],
16  1024000};
17  }
18  else {
19  return amrex::IntVect::TheZeroVector();
20  }
21 }
22 
23 #endif
AMREX_FORCE_INLINE amrex::IntVect TileNoZ()
Definition: ERF_TileNoZ.H:11