MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / main

Function main

Source/driver/parse_castro_params.py:305–319  ·  view source on GitHub ↗

the main driver

()

Source from the content-addressed store, hash-verified

303
304
305def main():
306 """the main driver"""
307 parser = argparse.ArgumentParser()
308 parser.add_argument("-o", type=str, default=None,
309 help="output directory for the generated files")
310 parser.add_argument("-s", type=str, default="params",
311 help="name for the name struct that will hold the parameters")
312 parser.add_argument("--without-castro-class", action="store_true", help="don't include Castro:: in the struct namespace")
313 parser.add_argument("input_file", type=str, nargs=1,
314 help="input file containing the list of parameters we will define")
315
316 args = parser.parse_args()
317
318 p = read_param_file(args.input_file[0])
319 write_headers_and_source(p, args.o, args.s, args.without_castro_class)
320
321if __name__ == "__main__":
322 main()

Callers 1

Calls 2

read_param_fileFunction · 0.85
write_headers_and_sourceFunction · 0.85

Tested by

no test coverage detected