Skip to content

Commit 7a94ddc

Browse files
committed
Merge branch '45-add-symmetrization-operation-in-example-2' into 'master'
Resolve "add symmetrization operation in example 2" Closes #45 See merge request chase/chase-library/ChASE!68
2 parents 3d93846 + 87333ad commit 7a94ddc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

examples/2_input_output/2_input_output.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,20 @@ int do_chase(ChASE_DriverProblemConfig& conf)
370370
std::cout << "matrix are loaded in " << elapsed.count()
371371
<< " seconds" << std::endl;
372372

373+
374+
if(!single.checkSymmetryEasy())
375+
{
376+
single.symOrHermMatrix('L');
377+
}
378+
373379
#ifdef USE_NSIGHT
374380
nvtxRangePop();
375381
#endif
376382
PerformanceDecoratorChase<T> performanceDecorator(&single);
377383
#ifdef USE_MPI
378384
MPI_Barrier(MPI_COMM_WORLD);
379385
#endif
386+
380387
chase::Solve(&performanceDecorator);
381388
// chase::Solve(&single);
382389
#ifdef USE_MPI

0 commit comments

Comments
 (0)