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

Method init_subvolume

src/vec.cpp:1636–1647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636void grid_volume::init_subvolume(ivec is, ivec ie, component c) {
1637 ivec origin(dim, 0);
1638 for (int i = 0; i < 3; i++)
1639 num[i] = 0;
1640 LOOP_OVER_DIRECTIONS(dim, d) {
1641 set_num_direction(d, (ie - is).in_direction(d) / 2);
1642 origin.set_direction(d, is.in_direction(d) - iyee_shift(c).in_direction(d));
1643 }
1644 num_changed();
1645 // center_origin();
1646 set_origin(origin);
1647}
1648
1649} // namespace meep

Callers 1

subvolumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected