Debian Codegraph @

packages/seacas/applications/exodiff/map.h

raw
1 // Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 #pragma once
7 #include "exo_read.h"
8
9 enum class MapType { FILE_ORDER = 0, PARTIAL, USE_FILE_IDS, DISTANCE };
10
11 template <typename INT>
12 void Compute_Maps(std::vector<INT> &node_map, std::vector<INT> &elmt_map, Exo_Read<INT> &file1,
13 Exo_Read<INT> &file2);
14
15 template <typename INT>
16 void Compute_Partial_Maps(std::vector<INT> &node_map, std::vector<INT> &elmt_map,
17 Exo_Read<INT> &file1, Exo_Read<INT> &file2);
18
19 template <typename INT>
20 void Compute_FileId_Maps(std::vector<INT> &node_map, std::vector<INT> &elmt_map,
21 Exo_Read<INT> &file1, Exo_Read<INT> &file2);
22
23 template <typename INT>
24 void Dump_Maps(const std::vector<INT> &node_map, const std::vector<INT> &elmt_map,
25 Exo_Read<INT> &file1);
26
27 template <typename INT>
28 bool Check_Maps(const std::vector<INT> &node_map, const std::vector<INT> &elmt_map,
29 const Exo_Read<INT> &file1, const Exo_Read<INT> &file2);
30
31 template <typename INT>
32 bool Compare_Maps(Exo_Read<INT> &file1, Exo_Read<INT> &file2, const std::vector<INT> &node_map,
33 const std::vector<INT> &elmt_map, bool partial_flag);