@@ -72,55 +72,70 @@ contains
7272 ! Simulation Algorithm Parameters ==================================
7373 if (all (model_eqns /= (/ 1 , 2 , 3 , 4 / ))) then
7474 call s_mpi_abort(' Unsupported value of model_eqns. Exiting ...' )
75- elseif (model_eqns == 2 .and. bubbles .and. bubble_model == 1 ) then
76- call s_mpi_abort(' The 5-equation bubbly flow model requires bubble_model = 2 (Keller--Miksis)' )
77- elseif (bubbles .and. nb < 1 ) then
78- call s_mpi_abort(' The Ensemble-Averaged Bubble Model requires nb >= 1' )
79- elseif (bubbles .and. bubble_model == 3 .and. (polytropic .neqv. .true. )) then
80- call s_mpi_abort(' RP bubbles require polytropic compression' )
81- elseif (cyl_coord .and. bubbles) then
82- call s_mpi_abort(' Bubble models untested in cylindrical coordinates' )
83- elseif (model_eqns == 3 .and. bubbles) then
84- call s_mpi_abort(' Bubble models untested with 6-equation model' )
85- elseif (model_eqns == 1 .and. bubbles) then
86- call s_mpi_abort(' Bubble models untested with pi-gamma model' )
87- elseif (model_eqns == 4 .and. num_fluids /= 1 ) then
75+ end if
76+
77+ if (bubbles) then
78+ if (model_eqns == 2 .and. bubble_model == 1 ) then
79+ call s_mpi_abort(' The 5-equation bubbly flow model requires bubble_model = 2 (Keller--Miksis)' )
80+ elseif (nb < 1 ) then
81+ call s_mpi_abort(' The Ensemble-Averaged Bubble Model requires nb >= 1' )
82+ elseif (bubble_model == 3 .and. (polytropic .neqv. .true. )) then
83+ call s_mpi_abort(' RP bubbles require polytropic compression' )
84+ elseif (cyl_coord) then
85+ call s_mpi_abort(' Bubble models untested in cylindrical coordinates' )
86+ elseif (model_eqns == 3 ) then
87+ call s_mpi_abort(' Bubble models untested with 6-equation model' )
88+ elseif (model_eqns == 1 ) then
89+ call s_mpi_abort(' Bubble models untested with pi-gamma model' )
90+ !TODO: Comment this out when testing riemann with hll
91+ elseif (riemann_solver /= 2 ) then
92+ call s_mpi_abort(' Bubble modeling requires riemann_solver = 2' )
93+ elseif (avg_state == 1 ) then
94+ call s_mpi_abort(' Unsupported combination of values of ' // &
95+ ' bubbles and Roe average (please use avg_state = 2). ' // &
96+ ' Exiting ...' )
97+ end if
98+ end if
99+
100+ if (model_eqns == 4 .and. num_fluids /= 1 ) then
88101 call s_mpi_abort(' The 4-equation model implementation is not a multi-component and requires num_fluids = 1' )
89- elseif (bubbles .and. riemann_solver /= 2 ) then
90- call s_mpi_abort( ' Bubble modeling requires riemann_solver = 2 ' )
91- elseif ((bubbles .neqv. .true. ) .and. polydisperse) then
102+ end if
103+
104+ if ((bubbles .neqv. .true. ) .and. polydisperse) then
92105 call s_mpi_abort(' Polydisperse bubble modeling requires the bubble switch to be activated' )
93106 elseif (polydisperse .and. (poly_sigma == dflt_real)) then
94107 call s_mpi_abort(' Polydisperse bubble modeling requires poly_sigma > 0' )
95108 elseif (qbmm .and. (bubbles .neqv. .true. )) then
96109 call s_mpi_abort(' QBMM requires bubbles' )
97110 elseif (qbmm .and. (nnode /= 4 )) then
98111 call s_mpi_abort(' nnode not supported' )
99- elseif (model_eqns == 3 .and. riemann_solver /= 2 ) then
100- call s_mpi_abort(' Unsupported combination of values of ' // &
101- ' model_eqns (6-eq) and riemann_solver (please use riemann_solver = 2). ' // &
102- ' Exiting ...' )
103- elseif (model_eqns == 3 .and. alt_soundspeed) then
104- call s_mpi_abort(' Unsupported combination of values of ' // &
105- ' model_eqns (6-eq) and alt_soundspeed. ' // &
106- ' Exiting ...' )
107- elseif (model_eqns == 3 .and. avg_state == 1 ) then
108- call s_mpi_abort(' Unsupported combination of values of ' // &
109- ' model_eqns (6-eq) and Roe average (please use avg_state = 2). ' // &
110- ' Exiting ...' )
111- elseif (bubbles .and. avg_state == 1 ) then
112- call s_mpi_abort(' Unsupported combination of values of ' // &
113- ' bubbles and Roe average (please use avg_state = 2). ' // &
114- ' Exiting ...' )
115- elseif (model_eqns == 3 .and. wave_speeds == 2 ) then
116- call s_mpi_abort(' Unsupported combination of values of ' // &
117- ' model_eqns (6-eq) and wave_speeds (please use wave_speeds = 1). ' // &
118- ' Exiting ...' )
119- elseif (model_eqns == 3 .and. (cyl_coord .and. p /= 0 )) then
120- call s_mpi_abort(' Unsupported combination of values of ' // &
121- ' model_eqns (6-eq) and cylindrical coordinates. ' // &
122- ' Exiting ...' )
123- elseif (num_fluids /= dflt_int &
112+ end if
113+
114+ if (model_eqns ==3 ) then
115+ if (riemann_solver /= 2 ) then
116+ call s_mpi_abort(' Unsupported combination of values of ' // &
117+ ' model_eqns (6-eq) and riemann_solver (please use riemann_solver = 2). ' // &
118+ ' Exiting ...' )
119+ elseif (alt_soundspeed) then
120+ call s_mpi_abort(' Unsupported combination of values of ' // &
121+ ' model_eqns (6-eq) and alt_soundspeed. ' // &
122+ ' Exiting ...' )
123+ elseif (avg_state == 1 ) then
124+ call s_mpi_abort(' Unsupported combination of values of ' // &
125+ ' model_eqns (6-eq) and Roe average (please use avg_state = 2). ' // &
126+ ' Exiting ...' )
127+ elseif (wave_speeds == 2 ) then
128+ call s_mpi_abort(' Unsupported combination of values of ' // &
129+ ' model_eqns (6-eq) and wave_speeds (please use wave_speeds = 1). ' // &
130+ ' Exiting ...' )
131+ elseif (cyl_coord .and. p /= 0 ) then
132+ call s_mpi_abort(' Unsupported combination of values of ' // &
133+ ' model_eqns (6-eq) and cylindrical coordinates. ' // &
134+ ' Exiting ...' )
135+ end if
136+ end if
137+
138+ if (num_fluids /= dflt_int &
124139 .and. &
125140 (num_fluids < 1 .or. num_fluids > num_fluids)) then
126141 call s_mpi_abort(' Unsupported value of num_fluids. Exiting ...' )
0 commit comments