Skip to content

Commit 1c35768

Browse files
authored
Remove mosaic_init from run_part call (#314)
1 parent 359f12f commit 1c35768

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/run_part.F90

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ subroutine f_run_part( &
2020
aero_state_ptr_c, &
2121
gas_data_ptr_c, &
2222
gas_state_ptr_c, &
23-
run_part_opt_ptr_c &
23+
run_part_opt_ptr_c, &
24+
camp_core_ptr_c, &
25+
photolysis_ptr_c &
2426
) bind(C)
2527

2628
type(c_ptr), intent(in) :: scenario_ptr_c
@@ -44,18 +46,20 @@ subroutine f_run_part( &
4446
type(c_ptr), intent(in) :: run_part_opt_ptr_c
4547
type(run_part_opt_t), pointer :: run_part_opt_ptr_f => null()
4648

49+
type(c_ptr), intent(in) :: camp_core_ptr_c
50+
type(camp_core_t), pointer :: camp_core_ptr_f => null()
51+
type(c_ptr), intent(in) :: photolysis_ptr_c
52+
type(photolysis_t), pointer :: photolysis_ptr_f => null()
53+
4754
call c_f_pointer(scenario_ptr_c, scenario_ptr_f)
4855
call c_f_pointer(env_state_ptr_c, env_state_ptr_f)
4956
call c_f_pointer(aero_data_ptr_c, aero_data_ptr_f)
5057
call c_f_pointer(aero_state_ptr_c, aero_state_ptr_f)
5158
call c_f_pointer(gas_data_ptr_c, gas_data_ptr_f)
5259
call c_f_pointer(gas_state_ptr_c, gas_state_ptr_f)
5360
call c_f_pointer(run_part_opt_ptr_c, run_part_opt_ptr_f)
54-
55-
if (env_state_ptr_f%elapsed_time < run_part_opt_ptr_f%del_t) then
56-
call mosaic_init(env_state_ptr_f, aero_data_ptr_f, run_part_opt_ptr_f%del_t, &
57-
run_part_opt_ptr_f%do_optical)
58-
end if
61+
call c_f_pointer(camp_core_ptr_c, camp_core_ptr_f)
62+
call c_f_pointer(photolysis_ptr_c, photolysis_ptr_f)
5963

6064
call run_part( &
6165
scenario_ptr_f, &
@@ -64,7 +68,9 @@ subroutine f_run_part( &
6468
aero_state_ptr_f, &
6569
gas_data_ptr_f, &
6670
gas_state_ptr_f, &
67-
run_part_opt_ptr_f &
71+
run_part_opt_ptr_f, &
72+
camp_core_ptr_f, &
73+
photolysis_ptr_f &
6874
)
6975

7076
end subroutine

0 commit comments

Comments
 (0)