コード例 #1
0
ファイル: VTKUnstructured.cpp プロジェクト: flbernard/bitpit
/*!  
 *  sets the size of the unstructured grid for a homogenous grid.
 *  @param[in]  ncells_     number of cells
 *  @param[in]  npoints_    number of points
 *  @param[in]  type_       typeof element in grid
 */
void VTKUnstructuredGrid::setDimensions( uint64_t ncells_, uint64_t npoints_, VTKElementType type_ ){

    setElementType( type_ );
    setDimensions( ncells_, npoints_ );

    return ;
};
コード例 #2
0
ファイル: VTKUnstructured.cpp プロジェクト: optimad/bitpit
/*!  
 *  Constructor for grid with homogeneous element type
 *  sets input parameters and calls default constructor
 *  @param[in] dir Directory of vtk file with final "/"
 *  @param[in] name Name of vtk file without suffix
 *  @param[in] type Type of element
 */
VTKUnstructuredGrid::VTKUnstructuredGrid( std::string dir, std::string name, VTKElementType type ):VTKUnstructuredGrid( dir, name ){

    setElementType( type ) ;
    return ;

};