Skip to content

Commit 3061e6d

Browse files
committed
Remove unwanted test parameters
1 parent 0c7dd9a commit 3061e6d

5 files changed

Lines changed: 8 additions & 225 deletions

File tree

tests/unit/opflow/constraint_jacobian/equality/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,13 @@ if(EXAGO_ENABLE_IPOPT)
4646
list(APPEND dependencies IPOPT)
4747
endif()
4848

49-
# Set up HIOP solver tests if enabled (deprecated)
50-
if(EXAGO_ENABLE_HIOP)
51-
list(APPEND solvers HIOP)
52-
list(APPEND models POWER_BALANCE_HIOP)
53-
list(APPEND dependencies HIOP)
54-
endif()
55-
5649
# Set up HIOPSPARSE solver tests if enabled
5750
if(TARGET HiOp::SPARSE)
5851
list(APPEND solvers HIOPSPARSE)
5952
list(APPEND models POWER_BALANCE_POLAR)
6053
list(APPEND dependencies HIOP_SPARSE)
6154
endif()
6255

63-
# Set up RAJA support tests if enabled (deprecated)
64-
if(EXAGO_ENABLE_RAJA)
65-
list(APPEND solvers HIOP)
66-
list(APPEND models PBPOLRAJAHIOP)
67-
list(APPEND dependencies HIOP)
68-
endif()
69-
7056
if(EXAGO_RUN_TESTS)
7157
foreach(
7258
model

tests/unit/opflow/constraint_jacobian/equality/cecj.cpp

Lines changed: 0 additions & 189 deletions
This file was deleted.

tests/unit/opflow/constraint_jacobian/equality/jac_eq_acopf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ int main(int argc, char **argv) {
8484
PetscCall(OPFLOWGetConstraintJacobian(opflowtest, &J_eq, &J_ineq));
8585
PetscCall(OPFLOWComputeConstraintJacobian(opflowtest, X, J_eq, J_ineq));
8686

87-
PetscViewerPushFormat(PETSC_VIEWER_STDOUT_SELF, PETSC_VIEWER_ASCII_DENSE);
88-
PetscCall(MatView(J_eq_ref, PETSC_VIEWER_STDOUT_SELF));
89-
PetscCall(VecView(X, PETSC_VIEWER_STDOUT_SELF));
90-
PetscCall(MatView(J_eq, PETSC_VIEWER_STDOUT_SELF));
87+
// PetscViewerPushFormat(PETSC_VIEWER_STDOUT_SELF, PETSC_VIEWER_ASCII_DENSE);
88+
// PetscCall(MatView(J_eq_ref, PETSC_VIEWER_STDOUT_SELF));
89+
// PetscCall(VecView(X, PETSC_VIEWER_STDOUT_SELF));
90+
// PetscCall(MatView(J_eq, PETSC_VIEWER_STDOUT_SELF));
9191

9292
PetscCall(MatAXPY(J_eq, -1.0, J_eq_ref, UNKNOWN_NONZERO_PATTERN));
9393
PetscReal norm = 0.0;

tests/unit/opflow/constraint_jacobian/inequality/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,13 @@ if(EXAGO_ENABLE_IPOPT)
4646
list(APPEND dependencies IPOPT)
4747
endif()
4848

49-
# Set up HIOP solver tests if enabled (deprecated)
50-
if(EXAGO_ENABLE_HIOP)
51-
list(APPEND solvers HIOP)
52-
list(APPEND models POWER_BALANCE_HIOP)
53-
list(APPEND dependencies HIOP)
54-
endif()
55-
5649
# Set up HIOPSPARSE solver tests if enabled
5750
if(TARGET HiOp::SPARSE)
5851
list(APPEND solvers HIOPSPARSE)
5952
list(APPEND models POWER_BALANCE_POLAR)
6053
list(APPEND dependencies HIOP_SPARSE)
6154
endif()
6255

63-
# Set up RAJA support tests if enabled (deprecated)
64-
if(EXAGO_ENABLE_RAJA)
65-
list(APPEND solvers HIOP)
66-
list(APPEND models PBPOLRAJAHIOP)
67-
list(APPEND dependencies HIOP)
68-
endif()
69-
7056
if(EXAGO_RUN_TESTS)
7157
foreach(
7258
model

tests/unit/opflow/constraint_jacobian/inequality/jac_ineq_acopf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ int main(int argc, char **argv) {
8585
PetscCall(OPFLOWGetConstraintJacobian(opflowtest, &J_eq, &J_ineq));
8686
PetscCall(OPFLOWComputeConstraintJacobian(opflowtest, X, J_eq, J_ineq));
8787

88-
PetscViewerPushFormat(PETSC_VIEWER_STDOUT_SELF, PETSC_VIEWER_ASCII_DENSE);
89-
PetscCall(MatView(J_ineq_ref, PETSC_VIEWER_STDOUT_SELF));
90-
PetscCall(VecView(X, PETSC_VIEWER_STDOUT_SELF));
91-
PetscCall(MatView(J_ineq, PETSC_VIEWER_STDOUT_SELF));
88+
// PetscViewerPushFormat(PETSC_VIEWER_STDOUT_SELF, PETSC_VIEWER_ASCII_DENSE);
89+
// PetscCall(MatView(J_ineq_ref, PETSC_VIEWER_STDOUT_SELF));
90+
// PetscCall(VecView(X, PETSC_VIEWER_STDOUT_SELF));
91+
// PetscCall(MatView(J_ineq, PETSC_VIEWER_STDOUT_SELF));
9292

9393
PetscCall(MatAXPY(J_ineq, -1.0, J_ineq_ref, UNKNOWN_NONZERO_PATTERN));
9494
PetscReal norm = 0.0;

0 commit comments

Comments
 (0)