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

Function Extend

Tools/Postprocessing/C_Src/PlotfileToTurb.cpp:35–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static
36void
37Extend (FArrayBox& xfab,
38 FArrayBox& vfab,
39 const Box& domain)
40{
41 Box tbx = vfab.box();
42
43 tbx.setBig(0, domain.bigEnd(0) + 3);
44
45 const int ygrow = BL_SPACEDIM==3 ? 3 : 1;
46
47 tbx.setBig(1, domain.bigEnd(1) + ygrow);
48
49 xfab.resize(tbx,1);
50
51 xfab.copy(vfab);
52 vfab.shift(0, domain.length(0));
53 xfab.copy(vfab);
54 vfab.shift(1, domain.length(1));
55 xfab.copy(vfab);
56 vfab.shift(0, -domain.length(0));
57 xfab.copy(vfab);
58}
59
60int
61main (int argc,

Callers 1

mainFunction · 0.70

Calls 5

shiftMethod · 0.80
boxMethod · 0.45
resizeMethod · 0.45
copyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected