Skip to content

Commit 4610a8f

Browse files
author
Anand
committed
split grid read
1 parent 65c52c3 commit 4610a8f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/pre_process/m_clean.f90

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module m_clean
3434
implicit none
3535

3636
private; public :: s_initialize_modules, s_initialize_mpi_domain, s_finalize_modules, &
37-
s_apply_initial_condition, s_save_data
37+
s_apply_initial_condition, s_save_data, s_read_grid
3838

3939
contains
4040

@@ -80,6 +80,10 @@ subroutine s_initialize_modules()
8080
s_write_data_files => s_write_parallel_data_files
8181
end if
8282

83+
end subroutine s_initialize_modules
84+
85+
subroutine s_read_grid()
86+
8387
if (old_grid) then
8488
call s_read_grid_data_files()
8589
call s_check_grid_data_files()
@@ -93,7 +97,8 @@ subroutine s_initialize_modules()
9397
call s_check_grid_data_files()
9498
end if
9599
end if
96-
end subroutine s_initialize_modules
100+
101+
end subroutine s_read_grid
97102

98103
subroutine s_apply_initial_condition(start, finish, proc_time, time_avg, time_final, file_exists)
99104

src/pre_process/p_main.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ program p_main
2525

2626
call s_initialize_modules()
2727

28+
call s_read_grid()
29+
2830
allocate (proc_time(0:num_procs - 1))
2931

3032
call s_apply_initial_condition(start, finish, proc_time, time_avg, time_final, file_exists)

0 commit comments

Comments
 (0)