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

Function empty_volume

src/vec.cpp:614–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614volume empty_volume(ndim dim) {
615 volume out(dim);
616 LOOP_OVER_DIRECTIONS(dim, d) {
617 out.set_direction_max(d, 0.0);
618 out.set_direction_min(d, 0.0);
619 }
620 return out;
621}
622
623volume grid_volume::dV(const ivec &here, double diameter) const {
624 const double hinva = 0.5 * inva * diameter;

Callers 1

dVMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected