packages/SPn/mesh/Mesh.i.hh
//---------------------------------------------------------------------------//
/*!
 * \brief Return the volume of a cell by cellid.
 *
 * \param cell index
 *
 * \return volume of the cell in cm^3
 */
\brief Return the volume of a cell by cellid.
\param cell index

\return volume of the cell in cm^3
\ brief Return the volume of a cell by cellid . \ param cell index \ return volume of the cell in cm^3
double Mesh::volume(size_type cell) const
{
    REQUIRE(cell < num_cells());
    Dim_Vector ijk = cardinal(cell);
    return (width(ijk[def::I], def::I) * width(ijk[def::J], def::J) *
            width(ijk[def::K], def::K) );
}
double Mesh :: volume ( size_type cell ) const { REQUIRE ( cell < num_cells ( ) ) ; Dim_Vector ijk = cardinal ( cell ) ; return ( width ( ijk [ def :: I ] , def :: I ) * width ( ijk [ def :: J ] , def :: J ) * width ( ijk [ def :: K ] , def :: K ) ) ; }
\brief Return the volume of a cell by cellid.
\ brief Return the volume of a cell by cellid .