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

Method log

src/fields.cpp:745–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void fields::log(const char *prefix) {
746 master_printf("%sFields State:\n", prefix);
747 master_printf("%s a = %g, dt = %g\n", prefix, a, dt);
748 master_printf("%s m = %g, beta = %g\n", prefix, m, beta);
749 master_printf("%s t = %d, phasein_time = %d, is_real = %d\n", prefix, t, phasein_time, is_real);
750 master_printf("\n");
751 master_printf("%s num_chunks = %d (shared=%d)\n", prefix, num_chunks, shared_chunks);
752}
753
754/* implement mirror boundary conditions for i outside 0..n-1: */
755int mirrorindex(int i, int n) { return i >= n ? 2 * n - 1 - i : (i < 0 ? -1 - i : i); }

Callers 6

get_fieldsMethod · 0.80
obj_funcFunction · 0.80
exponential_erosionFunction · 0.80
exponential_dilationFunction · 0.80
geometric_erosionFunction · 0.80
geometric_dilationFunction · 0.80

Calls 1

master_printfFunction · 0.85

Tested by

no test coverage detected