packages/SPn/mesh/Mesh.i.hh
//---------------------------------------------------------------------------//
/*!
 * \brief Returns the width of cell in a given direction
 *
 * \return cell width in cm
 */
\brief Returns the width of cell in a given direction
\return cell width in cm
\ brief Returns the width of cell in a given direction \ return cell width in cm
double Mesh::width(size_type ijk, int dim) const
{
    REQUIRE(dim < 3);
    REQUIRE(static_cast<int>(ijk) < num_cells_dim(dim));
    ENSURE(d_width[dim][ijk] > 0);
    ENSURE(profugus::soft_equiv(d_width[dim][ijk], d_edges[dim][ijk+1]
                                 -d_edges[dim][ijk] ) );
    return d_width[dim][ijk];
}
double Mesh :: width ( size_type ijk , int dim ) const { REQUIRE ( dim < 3 ) ; REQUIRE ( static_cast < int > ( ijk ) < num_cells_dim ( dim ) ) ; ENSURE ( d_width [ dim ] [ ijk ] > 0 ) ; ENSURE ( profugus :: soft_equiv ( d_width [ dim ] [ ijk ] , d_edges [ dim ] [ ijk + 1 ] - d_edges [ dim ] [ ijk ] ) ) ; return d_width [ dim ] [ ijk ] ; }
\brief Returns the width of cell in a given direction
 \return cell width in cm
\ brief Returns the width of cell in a given direction \ return cell width in cm