Skip to content

Commit 34b84d4

Browse files
committed
Fix bool --> PetscBool bug.
1 parent b34146f commit 34b84d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/test_pflow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <private/pflowimpl.h>
77
#include <utils.h>
88

9+
#include <pflow.h>
910
#include "pflow/pflow_tests.h"
1011
#include "test_acopf_utils.h"
1112

@@ -50,7 +51,7 @@ int main(int argc, char **argv) {
5051
PetscErrorCode ierr;
5152
PetscBool flg, gen_test_data, write_test_data;
5253
PetscInt iter;
53-
bool converged = false;
54+
PetscBool converged = PETSC_FALSE;
5455
// Vec X, Xl, Xu, G, Gl, Gu, grad, Lambda;
5556
Mat Jac;
5657
int fail = 0;

0 commit comments

Comments
 (0)