https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: b6be8b7544842ac12c3dd85b0cb0f6e6282cf111 authored by Tom Fischer on 28 March 2023, 09:33:26 UTC
Merge branch 'ExpandCreateMeshFromElementSelectionForParallelCase' into 'master'
Tip revision: b6be8b7
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 MeL::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 numbers of regular base nodes at rank
// - a vector containing the numbers of regular higher order nodes at rank
std::unique_ptr<MeshLib::NodePartitionedMesh>
transformMeshToNodePartitionedMesh(NodePartitionedMesh const* const bulk_mesh,
                                   Mesh const* const subdomain_mesh);
}
back to top