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

Function abort

Util/scripts/write_probdata.py:139–146  ·  view source on GitHub ↗

abort exits when there is an error. A dummy stub file is written out, which will cause a compilation failure

(outfile)

Source from the content-addressed store, hash-verified

137
138
139def abort(outfile):
140 """ abort exits when there is an error. A dummy stub file is written
141 out, which will cause a compilation failure """
142
143 fout = open(outfile, "w")
144 fout.write("There was an error parsing the parameter files")
145 fout.close()
146 sys.exit(1)
147
148
149def write_probin(prob_param_files, cxx_prefix):

Callers 1

write_probinFunction · 0.85

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected