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

Function cost_diff

src/vec.cpp:969–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967}
968
969static double cost_diff(int desired_chunks, std::complex<double> costs) {
970 double left_cost = real(costs) / (desired_chunks / 2);
971 double right_cost = imag(costs) / (desired_chunks - desired_chunks / 2);
972 return right_cost - left_cost;
973}
974
975void grid_volume::tile_split(int &best_split_point, direction &best_split_direction) const {
976 const size_t ntot_thresh = 10;

Callers 1

LOOP_OVER_DIRECTIONSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected