Skip to content
Snippets Groups Projects
Commit dc876735 authored by David Seus's avatar David Seus
Browse files

continue setting up the mesh study example

parent 53cee3d2
Branches
Tags
No related merge requests found
......@@ -562,11 +562,12 @@ for mesh_resolution in resolutions:
simulation.initialise()
# simulation.write_exact_solution_to_xdmf()
errornorms = simulation.run(analyse_condition=analyse_condition)
for subdomain_index in errornorms.keys():
for phase, different_errornorm in errornorms[subdomain_index].items():
for errortype, errornorm in errornorms[subdomain_index][phase].items():
eoc_filename = "{}_error".format(output_string)
eocfile = open("eoc", "a")
eocfile.write( str(dx) + " " + str(err) + "\n" )
output = simulation.run(analyse_condition=analyse_condition)
for subdomain_index in output.keys():
mesh_h = output['mesh_size']
for phase, different_errornorms in output[subdomain_index]['errornorm'].items():
for errortype, errornorm in different_errornorms.items():
eoc_filename = "{}_{}-errornorm-for-{}".format(output_string, errortype, phase)
eocfile = open("eoc_filename", "a")
eocfile.write( str(mesh_h) + " " + str(errornorm) + "\n" )
eocfile.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment