MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / resize

Method resize

Src/Base/AMReX_IArrayBox.cpp:79–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void
80IArrayBox::resize (const Box& b, int N, Arena* ar)
81{
82 BaseFab<int>::resize(b,N,ar);
83 // For debugging purposes
84 if ( do_initval ) {
85#if defined(AMREX_USE_GPU)
86 if (Gpu::inLaunchRegion() && arena()->isDeviceAccessible()) {
87 setVal<RunOn::Device>(std::numeric_limits<int>::max());
88 Gpu::streamSynchronize();
89 } else
90#endif
91 {
92 setVal<RunOn::Host>(std::numeric_limits<int>::max());
93 }
94 }
95}
96
97std::unique_ptr<IntDescriptor>
98IArrayBox::getDataDescriptor ()

Callers 1

readFromMethod · 0.95

Calls 3

inLaunchRegionFunction · 0.85
streamSynchronizeFunction · 0.85
isDeviceAccessibleMethod · 0.45

Tested by

no test coverage detected