Skip to content

Commit fdd5c2b

Browse files
committed
format kolmo-law-ns3d
1 parent 0319d0b commit fdd5c2b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

fluidsim/base/output/kolmo_law3d.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ def __init__(self, output):
189189
)
190190

191191
def _init_path_files(self):
192-
193192
path_run = self.output.path_run
194193
self.path_kolmo_law = path_run + "/kolmo_law.h5"
195194
self.path_file = self.path_kolmo_law
@@ -202,9 +201,7 @@ def _init_files(self, arrays_1st_time=None):
202201
result = self.compute()
203202

204203
if mpi.rank == 0:
205-
206204
if not os.path.exists(self.path_kolmo_law):
207-
208205
self._create_file_from_dict_arrays(
209206
self.path_kolmo_law, result, arrays_1st_time
210207
)
@@ -267,7 +264,6 @@ def plot_radial_dependencies(
267264
scale=None,
268265
save="no",
269266
):
270-
271267
state = self.sim.state
272268
params = self.sim.params
273269
keys_state_phys = state.keys_state_phys
@@ -292,7 +288,6 @@ def plot_radial_dependencies(
292288
title = "$ R_\lambda=180, $" + f"$n_x={params.oper.nx}$"
293289

294290
if mpi.rank == 0:
295-
296291
fig1, ax1 = self.output.figure_axe()
297292
if scale == None or scale == "log":
298293
ax1.set_ylim([0.01, 2])
@@ -366,7 +361,6 @@ def plot_hv_dependencies(
366361
tmax=None,
367362
save="no",
368363
):
369-
370364
state = self.sim.state
371365
keys_state_phys = state.keys_state_phys
372366
params = self.sim.params
@@ -408,7 +402,6 @@ def plot_hv_dependencies(
408402
)
409403

410404
if mpi.rank == 0:
411-
412405
fig1, ax1 = self.output.figure_axe()
413406

414407
im = ax1.pcolormesh(
@@ -516,7 +509,6 @@ def plot_Jhv_vector(
516509
tmax=None,
517510
save="no",
518511
):
519-
520512
state = self.sim.state
521513
keys_state_phys = state.keys_state_phys
522514
params = self.sim.params
@@ -668,7 +660,6 @@ def plot_kolmo_law(
668660
Jk_r_from_hv[index] = Jk_r_from_hv[index] / value
669661

670662
def counter_proc(self):
671-
672663
n_store = self.n_store
673664
nh_store = self.nh_store
674665
nv_store = self.nv_store
@@ -710,7 +701,6 @@ def counter_proc(self):
710701
return dict_useful
711702

712703
def counter_tot(self):
713-
714704
count_ind = self.count_ind_rhv
715705
proc_count_r = count_ind["proc_count_r"]
716706
proc_count_hv = count_ind["proc_count_hv"]
@@ -734,7 +724,6 @@ def counter_tot(self):
734724
return tot_count
735725

736726
def azimut_average(self, name):
737-
738727
dict_proc = self.dict_proc
739728
count_ind = self.count_ind_rhv
740729
tot_count_r = self.counter["tot_count_r"][:]

0 commit comments

Comments
 (0)