@@ -54,7 +54,6 @@ module fv_control_mod
54
54
use fv_mp_mod, only: mp_start, domain_decomp, mp_assign_gid, global_nest_domain
55
55
use fv_mp_mod, only: broadcast_domains, mp_barrier, is_master, setup_master, grids_master_procs, tile_fine
56
56
use fv_mp_mod, only: MAX_NNEST, MAX_NTILE
57
- ! use test_cases_mod, only: test_case, bubble_do, alpha, nsolitons, soliton_Umax, soliton_size
58
57
use test_cases_mod, only: read_namelist_test_case_nml
59
58
use fv_timing_mod, only: timing_on, timing_off, timing_init, timing_prt
60
59
use mpp_domains_mod, only: domain2D
@@ -389,7 +388,7 @@ subroutine fv_control_init(Atm, dt_atmos, this_grid, grids_on_this_pe, p_split)
389
388
Atm(n)% nml_filename = ' input.nml'
390
389
endif
391
390
if (.not. file_exists(Atm(n)% nml_filename)) then
392
- call mpp_error(FATAL, " Could not find nested grid namelist " // Atm(n)% nml_filename)
391
+ call mpp_error(FATAL, " Could not find namelist " // Atm(n)% nml_filename)
393
392
endif
394
393
enddo
395
394
@@ -445,22 +444,10 @@ subroutine fv_control_init(Atm, dt_atmos, this_grid, grids_on_this_pe, p_split)
445
444
446
445
call set_namelist_pointers(Atm(this_grid))
447
446
call fv_diag_init_gn(Atm(this_grid))
448
- #ifdef INTERNAL_FILE_NML
449
- if (this_grid .gt. 1 ) then
450
- write (Atm(this_grid)% nml_filename,' (A4, I2.2)' ) ' nest' , this_grid
451
- if (.not. file_exists(' input_' // trim (Atm(this_grid)% nml_filename)// ' .nml' )) then
452
- call mpp_error(FATAL, " Could not find nested grid namelist " // ' input_' // trim (Atm(this_grid)% nml_filename)// ' .nml' )
453
- endif
454
- else
455
- Atm(this_grid)% nml_filename = ' '
456
- endif
457
- call read_input_nml(Atm(this_grid)% nml_filename) ! re-reads into internal namelist
458
- #endif
447
+ call read_input_nml(alt_input_nml_path= Atm(this_grid)% nml_filename) ! re-reads into internal namelist
459
448
call read_namelist_fv_grid_nml
460
449
call read_namelist_fv_core_nml(Atm(this_grid)) ! do options processing here too?
461
- call read_namelist_test_case_nml(Atm(this_grid)% nml_filename)
462
- ! TODO test_case_nml moved to test_cases
463
- call read_namelist_test_case_nml(Atm(this_grid)% nml_filename)
450
+ call read_namelist_test_case_nml
464
451
call mpp_get_current_pelist(Atm(this_grid)% pelist, commID= commID) ! for commID
465
452
call mp_start(commID,halo_update_type)
466
453
@@ -1050,7 +1037,6 @@ subroutine read_namelist_fv_core_nml(Atm)
1050
1037
198 format (A,i2.2 ,A,i4.4 ,' x' ,i4.4 ,' x' ,i1.1 ,' -' ,f9.3 )
1051
1038
199 format (A,i3.3 )
1052
1039
1053
- ! if (.not. (nested .or. regional)) alpha = alpha*pi !TODO for test_case_nml
1054
1040
1055
1041
! allocate(Atm%neststruct%child_grids(size(Atm))) !TODO want to remove
1056
1042
! Atm(N)%neststruct%child_grids = .false.
0 commit comments