https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 23d5f4eb8ac31de0d97e38061f019f1300e54785 authored by wenqing on 14 September 2023, 12:56:13 UTC
Merge branch 'improvement' into 'master'
Tip revision: 23d5f4e
transformMeshToNodePartitionedMesh.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
 */

#include <memory>

#pragma once

namespace MeshLib
{
class Mesh;
class NodePartitionedMesh;

/// Function computes all information necessary to transform the MeshLib::Mesh
/// mesh into a NodePartitionedMesh subdomain mesh. Additional to the usual
/// name, nodes and elements, the following information is computed:
/// - a vector of global node ids of the subdomain mesh,
/// - the number of global nodes (the sum of number of nodes of all subdomain
/// meshes)
/// - the number of regular nodes (the sum of number of non-ghost nodes of all
/// subdomain meshes)
/// - a vector containing the number of regular base nodes per rank
/// - a vector containing the number of regular higher order nodes per rank
std::unique_ptr<MeshLib::NodePartitionedMesh>
transformMeshToNodePartitionedMesh(NodePartitionedMesh const* const bulk_mesh,
                                   Mesh const* const subdomain_mesh);
}  // namespace MeshLib
back to top