amr-wind/physics/BoussinesqBubble.cpp
/** Initialize the velocity and temperature fields at the beginning of the
 *  simulation.
 *
 *  \sa amr_wind::BoussinesqBubbleFieldInit
 */
Initialize the velocity and temperature fields at the beginning of the
simulation.


Initialize the velocity and temperature fields at the beginning of the simulation .
void BoussinesqBubble::initialize_fields(int level, const amrex::Geometry& geom)
{
    auto& velocity = m_velocity(level);
    auto& density = m_density(level);
    auto& scalars = (*m_temperature)(level);
    for (amrex::MFIter mfi(density); mfi.isValid(); ++mfi) {
        const auto& vbx = mfi.validbox();
        (*m_field_init)(
            vbx, geom, velocity.array(mfi), density.array(mfi),
            scalars.array(mfi));
    }
}
void BoussinesqBubble :: initialize_fields ( int level , const amrex :: Geometry & geom ) { auto & velocity = m_velocity ( level ) ; auto & density = m_density ( level ) ; auto & scalars = ( * m_temperature ) ( level ) ; for ( amrex :: MFIter mfi ( density ) ; mfi . isValid ( ) ; ++ mfi ) { const auto & vbx = mfi . validbox ( ) ; ( * m_field_init ) ( vbx , geom , velocity . array ( mfi ) , density . array ( mfi ) , scalars . array ( mfi ) ) ; } }
Initialize the velocity and temperature fields at the beginning of the
  simulation.
Initialize the velocity and temperature fields at the beginning of the simulation .