Skip to content

Commit 7312231

Browse files
committed
outline for kymograph: step 1 - kymograph flag added in post_process
1 parent ef85e33 commit 7312231

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/post_process/m_global_parameters.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ module m_global_parameters
154154
logical :: parallel_io !< Format of the data files
155155
logical :: sim_data
156156
logical :: file_per_process !< output format
157+
logical :: kymograph
157158

158159
integer, allocatable, dimension(:) :: proc_coords !<
159160
!! Processor coordinates in MPI_CART_COMM
@@ -392,6 +393,7 @@ contains
392393
qm_wrt = .false.
393394
schlieren_wrt = .false.
394395
sim_data = .false.
396+
kymograph = .false.
395397
cf_wrt = .false.
396398
ib = .false.
397399

src/post_process/m_mpi_proxy.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ contains
197197
198198
#:for VAR in [ 'cyl_coord', 'mpp_lim', 'mixture_err', &
199199
& 'alt_soundspeed', 'hypoelasticity', 'parallel_io', 'rho_wrt', &
200-
& 'E_wrt', 'pres_wrt', 'gamma_wrt', 'sim_data', &
200+
& 'E_wrt', 'pres_wrt', 'gamma_wrt', 'sim_data', 'kymograph', &
201201
& 'heat_ratio_wrt', 'pi_inf_wrt', 'pres_inf_wrt', 'cons_vars_wrt', &
202202
& 'prim_vars_wrt', 'c_wrt', 'qm_wrt','schlieren_wrt', 'bubbles', 'qbmm', &
203203
& 'polytropic', 'polydisperse', 'file_per_process', 'relax', 'cf_wrt', &

src/post_process/m_start_up.f90

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ subroutine s_read_input_file
8383
relax_model, cf_wrt, sigma, adv_n, ib, num_ibs, &
8484
cfl_adap_dt, cfl_const_dt, t_save, t_stop, n_start, &
8585
cfl_target, surface_tension &
86-
sim_data, hyperelasticity
86+
sim_data, hyperelasticity, kymograph
8787

8888
! Inquiring the status of the post_process.inp file
8989
file_loc = 'post_process.inp'
@@ -205,6 +205,14 @@ subroutine s_save_data(t_step, varname, pres, c, H)
205205
call s_write_energy_data_file(q_prim_vf, q_cons_vf)
206206
end if
207207

208+
if (kymograph .and. proc_rank == 0) then
209+
call s_open_kymo_data_file()
210+
end if
211+
212+
if (kymograph) then
213+
call s_write_kymo_data_file(q_prim_vf)
214+
end if
215+
208216
! Adding the grid to the formatted database file
209217
call s_write_grid_to_formatted_database_file(t_step)
210218

@@ -709,6 +717,10 @@ subroutine s_save_data(t_step, varname, pres, c, H)
709717
call s_close_energy_data_file()
710718
end if
711719

720+
if (kymograph .and. proc_rank == 0) then
721+
call s_close_kymo_data_file()
722+
end if
723+
712724
! Closing the formatted database file
713725
call s_close_formatted_database_file()
714726

0 commit comments

Comments
 (0)