Skip to content

Commit 0cefeee

Browse files
committed
Formatting
1 parent 209264c commit 0cefeee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

demo/assembly_bcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import seaborn
4343
import ufl
4444

45-
4645
# -
4746

4847

@@ -341,6 +340,7 @@ def run_parameter_sweep(
341340

342341
# We use `pandas` and `seaborn` to visualize the results
343342

343+
344344
def create_plot(results: dict, outfile: str):
345345
if MPI.COMM_WORLD.rank == 0:
346346
df = pandas.DataFrame.from_dict(results, orient="index")
@@ -372,6 +372,8 @@ def create_plot(results: dict, outfile: str):
372372
plot.set(yscale="log", title="Total assembly")
373373
plt.grid()
374374
plt.savefig(f"{outfile}_total.png")
375+
376+
375377
# We start by running the comparison for an increasing number of degrees of freedom on a fixed grid.
376378
if __name__ == "__main__":
377379
N = 40

demo/assembly_strategies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def run_parameter_sweep(
196196

197197
# We use `pandas` and `seaborn` to visualize the results
198198

199+
199200
def create_plot(results: dict, outfile: str):
200201
if MPI.COMM_WORLD.rank == 0:
201202
df = pandas.DataFrame.from_dict(results, orient="index")
@@ -214,6 +215,7 @@ def create_plot(results: dict, outfile: str):
214215
plt.grid()
215216
plt.savefig(outfile)
216217

218+
217219
# We start by running the comparison for an increasing number of degrees of freedom on a fixed grid.
218220

219221

0 commit comments

Comments
 (0)