Skip to content
Snippets Groups Projects
Commit 2f3f807d authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[skip ci] pep8

parent 352b7a58
No related branches found
No related tags found
No related merge requests found
...@@ -134,11 +134,11 @@ def apply_jacobian_timer(): ...@@ -134,11 +134,11 @@ def apply_jacobian_timer():
if is_linear(): if is_linear():
declaration = ["{} j({});".format(t_v, v), "j=0.0;"] declaration = ["{} j({});".format(t_v, v), "j=0.0;"]
evaluation = ["{}.jacobian_apply({}, j);".format(n_go, v),] evaluation = ["{}.jacobian_apply({}, j);".format(n_go, v)]
else: else:
declaration = ["{} j0({});".format(t_v, v), "j0=0.0;", declaration = ["{} j0({});".format(t_v, v), "j0=0.0;",
"{} j1({});".format(t_v, v), "j1=0.0;"] "{} j1({});".format(t_v, v), "j1=0.0;"]
evaluation = ["{}.nonlinear_jacobian_apply({}, j0, j1);".format(n_go, v),] evaluation = ["{}.nonlinear_jacobian_apply({}, j0, j1);".format(n_go, v)]
if get_option('instrumentation_level') >= 2: if get_option('instrumentation_level') >= 2:
evaluation = ["HP_TIMER_START(apply_jacobian);"] + evaluation + ["HP_TIMER_STOP(apply_jacobian);", "DUMP_TIMER({}, apply_jacobian, {}, true);".format(get_option("instrumentation_level"), timestream)] evaluation = ["HP_TIMER_START(apply_jacobian);"] + evaluation + ["HP_TIMER_STOP(apply_jacobian);", "DUMP_TIMER({}, apply_jacobian, {}, true);".format(get_option("instrumentation_level"), timestream)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment