@@ -438,6 +438,7 @@ class CompFlow {
438438 {
439439 const auto ndof = g_inputdeck.get < tag::ndof >();
440440 const auto rdof = g_inputdeck.get < tag::rdof >();
441+ bool viscous=false ;
441442
442443 const auto & solidx = g_inputdeck.get < tag::matidxmap, tag::solidx >();
443444
@@ -468,8 +469,8 @@ class CompFlow {
468469
469470 // compute internal surface flux integrals
470471 tk::surfInt ( pref, 1 , m_mat_blk, t, ndof, rdof, inpoel, solidx,
471- coord, fd, geoFace, geoElem, m_riemann, velfn, U, P, ndofel ,
472- dt, R, riemannDeriv );
472+ coord, fd, geoFace, geoElem, m_riemann, visc_flux ,
473+ velfn, U, P, ndofel, dt, R, riemannDeriv, viscous );
473474
474475 // compute optional source term
475476 tk::srcInt ( m_mat_blk, t, ndof, fd.Esuel ().size ()/4 ,
@@ -478,14 +479,14 @@ class CompFlow {
478479 if (ndof > 1 )
479480 // compute volume integrals
480481 tk::volInt ( 1 , t, m_mat_blk, ndof, rdof,
481- fd.Esuel ().size ()/4 , inpoel, coord, geoElem, flux, velfn,
482- U, P, ndofel, R );
482+ fd.Esuel ().size ()/4 , inpoel, coord, geoElem, flux,
483+ visc_flux, velfn, U, P, ndofel, R, viscous );
483484
484485 // compute boundary surface flux integrals
485486 for (const auto & b : m_bc)
486487 tk::bndSurfInt ( pref, 1 , m_mat_blk, ndof, rdof, std::get<0 >(b),
487- fd, geoFace, geoElem, inpoel, coord, t, m_riemann,
488- velfn, std::get<1 >(b), U, P, ndofel, R, riemannDeriv );
488+ fd, geoFace, geoElem, inpoel, coord, t, m_riemann, visc_flux,
489+ velfn, std::get<1 >(b), U, P, ndofel, R, riemannDeriv, viscous );
489490
490491 // compute external (energy) sources
491492 const auto & ic = g_inputdeck.get < tag::ic >();
@@ -1024,6 +1025,17 @@ class CompFlow {
10241025 {
10251026 return {{ ul, Problem::initialize ( ncomp, mat_blk, x, y, z, t ) }};
10261027 }
1028+
1029+ static tk::FluxFn::result_type
1030+ visc_flux ( ncomp_t ncomp,
1031+ const std::vector< EOS >& mat_blk,
1032+ const std::vector< tk::real >& ugp,
1033+ const std::vector< std::array< tk::real, 3 > > & grad_all )
1034+ {
1035+ std::vector< std::array< tk::real, 3 > > fl ( ugp.size (),
1036+ std::array<tk::real, 3 >{{0 , 0 , 0 }});
1037+ return fl;
1038+ }
10271039
10281040 // ! \brief Boundary state function providing the left and right state of a
10291041 // ! face at symmetry boundaries
0 commit comments