Commit 51c9444d authored by Lars Bilke's avatar Lars Bilke Committed by Dmitry Yu. Naumov
Browse files

[MeL] Add v3-ranges library. Used in MeshLib

parent d96b2875
......@@ -40,6 +40,7 @@ target_link_libraries(
MathLib
VTK::IOXML
VTK::IOLegacy
range-v3
$<$<TARGET_EXISTS:VTK::IOParallelXML>:VTK::IOParallelXML>
$<$<TARGET_EXISTS:MPI::MPI_CXX>:MPI::MPI_CXX>
$<$<TARGET_EXISTS:petsc>:petsc>
......
......@@ -15,6 +15,10 @@
#include "Mesh.h"
#include <memory>
#include <range/v3/range/conversion.hpp>
#include <range/v3/view/enumerate.hpp>
#include <range/v3/view/indirect.hpp>
#include <range/v3/view/map.hpp>
#include <unordered_map>
#include <utility>
......@@ -32,6 +36,8 @@ static std::size_t global_mesh_counter = 0;
namespace MeshLib
{
using namespace ranges;
std::vector<std::vector<Element const*>> findElementsConnectedToNodes(
Mesh const& mesh)
{
......
......@@ -337,6 +337,14 @@ else()
endif()
endif()
CPMAddPackage(
NAME range-v3
GITHUB_REPOSITORY ericniebler/range-v3
VERSION 0.12.0
GIT_TAG 0.12.0
EXCLUDE_FROM_ALL YES
)
if(OGS_BUILD_TESTING OR OGS_BUILD_UTILS)
CPMAddPackage(
NAME vtkdiff GITHUB_REPOSITORY ufz/vtkdiff
......
{
"minimum_version": {
"gcc": "10.2.0",
"clang": "9.0",
"apple_clang": "12.0.0",
"clang": "13.0",
"apple_clang": "13.1.6",
"msvc": {
"year": "2019",
"number": "16",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment