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

Function structure_dump

tests/dump_load.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::string structure_dump(structure *s, const std::string &filename_prefix,
94 const std::string &output_name) {
95 std::string filename = filename_prefix + "-structure-" + output_name;
96 s->dump(filename.c_str());
97 master_printf("Dumping structure: %s\n", filename.c_str());
98 return filename;
99}
100
101void structure_load(structure *s, const std::string &filename) {
102 master_printf("Loading structure: %s\n", filename.c_str());

Callers 2

test_metalFunction · 0.85
test_periodicFunction · 0.85

Calls 2

master_printfFunction · 0.85
dumpMethod · 0.45

Tested by 2

test_metalFunction · 0.68
test_periodicFunction · 0.68