Skip to content

Commit 248f1a5

Browse files
author
jajhall
committed
Remove use of if (PDLP_DEBUG_LOG) from pdlp/cupdlp/cupdlp_solver.c
1 parent f817607 commit 248f1a5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

highs/pdlp/cupdlp/cupdlp_solver.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -911,13 +911,9 @@ cupdlp_retcode PDHG_Solve(const cupdlp_int* has_variables, CUPDLPwork *pdhg) {
911911
timers->dSolvingBeg = getTimeStamp();
912912

913913
#if PDLP_DEBUG_LOG
914-
if (PDLP_DEBUG_LOG) {
915-
pdhg->debug_pdlp_log_file_ = fopen("cuPDLP.log", "w");
916-
assert(pdhg->debug_pdlp_log_file_);
917-
debugPdlpDataInitialise(&pdhg->debug_pdlp_data_);
918-
} else {
919-
pdhg->debug_pdlp_log_file_ = NULL;
920-
}
914+
pdhg->debug_pdlp_log_file_ = fopen("cuPDLP.log", "w");
915+
assert(pdhg->debug_pdlp_log_file_);
916+
debugPdlpDataInitialise(&pdhg->debug_pdlp_data_);
921917
#endif
922918
// PDHG_Init_Data does nothing!
923919
PDHG_Init_Data(pdhg);

0 commit comments

Comments
 (0)