Skip to content

Commit c098c87

Browse files
authored
Merge pull request #2598 from ERGO-Code/hipo-metis-change
Metis interface back to normal
2 parents a65e195 + ceee3fa commit c098c87

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

highs/ipm/hipo/factorhighs/Analyse.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,8 @@ Int Analyse::getPermutation() {
121121

122122
if (log_) log_->printDevInfo("Running Metis\n");
123123

124-
#ifdef METIS_THREAD_SAFE
125-
// Thread-safe version of Metis that stores state of random-number generator
126-
// in local variable.
127-
if (log_) log_->printDevInfo("Using thread-safe Metis\n");
128-
unsigned rng_state = kMetisSeed;
129-
Int status =
130-
METIS_NodeND_ts(&n_, temp_ptr.data(), temp_rows.data(), NULL, options,
131-
perm_.data(), iperm_.data(), &rng_state);
132-
#else
133-
// Default version of Metis. This gives non-deterministic results if multiple
134-
// matrices are reordered concurrently.
135-
if (log_) log_->printDevInfo("Using non-thread-safe Metis\n");
136124
Int status = METIS_NodeND(&n_, temp_ptr.data(), temp_rows.data(), NULL,
137125
options, perm_.data(), iperm_.data());
138-
#endif
139126

140127
if (log_) log_->printDevInfo("Metis done\n");
141128
if (status != METIS_OK) {

0 commit comments

Comments
 (0)