Skip to content

Commit 432f915

Browse files
committed
step 2 - kymo_data_file outline
1 parent 7312231 commit 432f915

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

src/post_process/m_data_output.fpp

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ module m_data_output
3131
s_open_formatted_database_file, &
3232
s_open_intf_data_file, &
3333
s_open_energy_data_file, &
34+
s_open_kymo_data_file, &
3435
s_write_grid_to_formatted_database_file, &
3536
s_write_variable_to_formatted_database_file, &
3637
s_write_intf_data_file, &
3738
s_write_energy_data_file, &
39+
s_write_kymo_data_file, &
3840
s_close_formatted_database_file, &
3941
s_close_intf_data_file, &
4042
s_close_energy_data_file, &
43+
s_close_kymo_data_file, &
4144
s_finalize_data_output_module
4245

4346
! Including the Silo Fortran interface library that features the subroutines
@@ -570,7 +573,23 @@ contains
570573
571574
end subroutine s_open_energy_data_file ! ----------------------------------------
572575
573-
subroutine s_write_grid_to_formatted_database_file(t_step) ! -----------
576+
subroutine s_open_kymo_data_file() ! ------------------------
577+
578+
character(LEN=path_len + 3*name_len) :: file_path !<
579+
!! Relative path to a file in the case directory
580+
581+
write (file_path, '(A)') '/kymo_data.dat'
582+
file_path = trim(case_dir)//trim(file_path)
583+
584+
! Opening the simulation data file
585+
open (251, FILE=trim(file_path), &
586+
FORM='formatted', &
587+
POSITION='append', &
588+
STATUS='unknown')
589+
590+
end subroutine s_open_kymo_data_file ! ----------------------------------------
591+
592+
subroutine s_write_grid_to_formatted_database_file(t_step) ! -----------
574593
575594
! Description: The general objective of this subroutine is to write the
576595
! necessary grid data to the formatted database file, for
@@ -1168,6 +1187,11 @@ contains
11681187
11691188
end subroutine s_write_energy_data_file
11701189
1190+
subroutine s_write_kymo_data_file
1191+
1192+
1193+
end subroutine s_write_kymo_data_file
1194+
11711195
subroutine s_close_formatted_database_file() ! -------------------------
11721196
! Description: The purpose of this subroutine is to close any formatted
11731197
! database file(s) that may be opened at the time-step that
@@ -1207,6 +1231,12 @@ contains
12071231
12081232
end subroutine s_close_energy_data_file !---------------------
12091233
1234+
subroutine s_close_kymo_data_file()
1235+
1236+
close (251)
1237+
1238+
end subroutine s_close_kymo_data_file
1239+
12101240
subroutine s_finalize_data_output_module() ! -------------------------
12111241
! Description: Deallocation procedures for the module
12121242

src/post_process/m_start_up.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ subroutine s_save_data(t_step, varname, pres, c, H)
210210
end if
211211

212212
if (kymograph) then
213-
call s_write_kymo_data_file(q_prim_vf)
213+
call s_write_kymo_data_file()
214214
end if
215215

216216
! Adding the grid to the formatted database file

0 commit comments

Comments
 (0)