12 REAL*8,
ALLOCATABLE :: q_init(:,:)
16 REAL*8 :: riemann_interface
42 USE geometry, ONLY : x0 , xn , x_comp , comp_cells , b_cent
44 USE parameters, ONLY : n_vars , verbose_level, batimetry_function_flag
54 REAL*8 :: qp(n_vars,comp_cells) , qj(n_vars)
61 riemann_int_search:
DO i = 1,comp_cells
63 IF ( x_comp(i) .LT. riemann_interface )
THEN
69 EXIT riemann_int_search
73 END DO riemann_int_search
89 CALL
qp_to_qc( qp(:,i) , b_cent(i) , qj )
93 IF ( verbose_level .GE. 1 )
WRITE(*,*) i,b_cent(i),qp
107 DO i = i1+1,comp_cells
111 CALL
qp_to_qc( qp(:,i) , b_cent(i) , qj )
115 IF ( verbose_level .GE. 1 )
WRITE(*,*) i,b_cent(i),qp
119 IF ( verbose_level .GE. 1 )
READ(*,*)
137 USE geometry, ONLY : x0 , xn , x_comp , comp_cells , b_cent
139 USE parameters, ONLY : n_vars , verbose_level, batimetry_function_flag
145 REAL*8 :: qp(n_vars,comp_cells) , qj(n_vars)
162 CALL
qp_to_qc( qp(:,j) , b_cent(j) , qj )
166 IF ( verbose_level .GE. 1 )
WRITE(*,*) j,b_cent(j),qp(:,j)
170 IF ( verbose_level .GE. 1 )
READ(*,*)
190 REAL*8,
INTENT(IN) :: x
191 REAL*8,
INTENT(IN) :: bj
215 REAL*8,
INTENT(IN) :: x
216 REAL*8,
INTENT(IN) :: bj
real *8 function batimetry_function(x)
Batimetry function.
subroutine initial_conditions
Problem initialization.
subroutine riemann_problem
Riemann problem initialization.
subroutine qp_to_qc(qp, B, qc)
Physical to conservative variables.
real *8 function velocity_function(x, Bj)
Velocity function.
real *8 function water_function(x, Bj)
Water function.