MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / toStringView

Function toStringView

src/Geometry/PartitioningLib.cpp:58–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::string_view toStringView(PartitionerType type) {
59 switch (type) {
60#if defined(USE_PARMETIS)
61 case PartitionerType::Parmetis:
62 return "Parmetis"sv;
63 case PartitionerType::ParmetisGeometric:
64 return "ParmetisGeometric"sv;
65#endif
66#if defined(USE_PTSCOTCH)
67 case PartitionerType::PtScotch:
68 return "PtScotch"sv;
69 case PartitionerType::PtScotchQuality:
70 return "PtScotchQuality"sv;
71 case PartitionerType::PtScotchBalance:
72 return "PtScotchBalance"sv;
73 case PartitionerType::PtScotchBalanceQuality:
74 return "PtScotchBalanceQuality"sv;
75 case PartitionerType::PtScotchSpeed:
76 return "PtScotchSpeed"sv;
77 case PartitionerType::PtScotchBalanceSpeed:
78 return "PtScotchBalanceSpeed"sv;
79#endif
80#if defined(USE_PARHIP)
81 case PartitionerType::ParHIPUltrafastMesh:
82 return "ParHIPUltrafastMesh"sv;
83 case PartitionerType::ParHIPFastMesh:
84 return "ParHIPFastMesh"sv;
85 case PartitionerType::ParHIPEcoMesh:
86 return "ParHIPEcoMesh"sv;
87 case PartitionerType::ParHIPUltrafastSocial:
88 return "ParHIPUltrafastSocial"sv;
89 case PartitionerType::ParHIPFastSocial:
90 return "ParHIPFastSocial"sv;
91 case PartitionerType::ParHIPEcoSocial:
92 return "ParHIPEcoSocial"sv;
93#endif
94 default:
95 break;
96 }
97 return "None"sv;
98}
99
100} // namespace seissol

Callers 1

partitionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected