Skip to content

Commit 843d38f

Browse files
committed
Fix implicit SAVE on files_loaded/ios/ios2, fileNames buffer size, and unused Cantera imports
1 parent 4e5a51f commit 843d38f

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

examples/2D_premixed_flame_vortex/case.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
import math
66
import os
77

8-
import cantera as ct
9-
108
current_dir = os.path.dirname(os.path.abspath(__file__))
119
ctfile = "h2o2.yaml"
12-
sol_L = ct.Solution(ctfile)
13-
sol_L.TPX = 300, 101325, "H:1"
1410

1511
L = 0.016
1612
Nx = 1023

examples/2D_premixed_landau_insta/case.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
import math
66
import os
77

8-
import cantera as ct
9-
108
current_dir = os.path.dirname(os.path.abspath(__file__))
119
ctfile = "h2o2.yaml"
12-
sol_L = ct.Solution(ctfile)
13-
sol_L.TPX = 300, 101325, "H:1"
1410

1511
Lx = 0.0155147
1612
Ly = 0.00775735

src/common/include/ExtrusionHardcodedIC.fpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
real(wp) :: dummy_x, dummy_y, dummy_z, x0, y0
4343
integer :: global_offset_x, global_offset_y !< MPI subdomain offset
4444
real(wp) :: delta_x, delta_y
45-
character(len=150), dimension(sys_size) :: fileNames !< Arrays to store all data from files
45+
character(len=300), dimension(sys_size) :: fileNames !< Arrays to store all data from files
4646
character(len=200) :: errmsg
4747
real(wp), allocatable :: stored_values(:,:,:)
4848
real(wp), allocatable :: x_coords(:), y_coords(:)
4949
logical :: files_loaded = .false.
5050
real(wp) :: domain_xstart, domain_xend, domain_ystart, domain_yend
5151
character(len=20) :: file_num_str !< For storing the file number as a string
5252
character(len=20) :: zeros_part !< For the trailing zeros part
53-
integer :: ios = 0
54-
integer :: ios2 = 0
53+
integer :: ios
54+
integer :: ios2
5555
#:enddef
5656

5757
#:def HardcodedReadValues()
@@ -201,4 +201,6 @@
201201
if (allocated(y_coords)) then
202202
@:DEALLOCATE(y_coords)
203203
end if
204+
205+
files_loaded = .false.
204206
#:enddef

0 commit comments

Comments
 (0)