MCPcopy Create free account
hub / github.com/NanoComp/meep / subvolume

Method subvolume

src/vec.cpp:1626–1634  ·  view source on GitHub ↗

/ / /

Source from the content-addressed store, hash-verified

1624/********************************************************************/
1625/********************************************************************/
1626grid_volume grid_volume::subvolume(ivec is, ivec ie, component c) {
1627 if (!(contains(is) && contains(ie))) meep::abort("invalid extents in subvolume");
1628 grid_volume sub;
1629 sub.dim = dim;
1630 sub.a = a;
1631 sub.inva = inva;
1632 sub.init_subvolume(is, ie, c);
1633 return sub;
1634}
1635
1636void grid_volume::init_subvolume(ivec is, ivec ie, component c) {
1637 ivec origin(dim, 0);

Callers 2

norm2Method · 0.80

Calls 2

abortFunction · 0.85
init_subvolumeMethod · 0.80

Tested by

no test coverage detected