https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: a0e0911f526108affc83f88c18df004955cd33fe authored by Dmitry Yu. Naumov on 10 July 2023, 14:52:32 UTC
Merge branch 'ResetSolutionAfterRejectedInitialTimeStep' into 'master'
Tip revision: a0e0911
createMeshFromElementSelection.h
/**
 * \file
 *
 * \copyright
 * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include <memory>
#include <string>
#include <vector>

namespace MeshLib
{
class Mesh;
class Element;

/// Creates a new mesh from a vector of elements.
///
/// \note The elements are owned by the returned mesh object as well as the
/// nodes and will be destructed together with the mesh.
std::unique_ptr<Mesh> createMeshFromElementSelection(
    std::string mesh_name, std::vector<Element*> const& elements);
}  // namespace MeshLib
back to top