Skip to content

Commit

Permalink
Seems to be working
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Apr 18, 2024
1 parent 5c554bd commit b35062c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions Source/Fortran/FermiOperatorModule.F90
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ SUBROUTINE ComputeDenseFOE(H, ISQ, trace, K, inv_temp_in, &

!! Scale the eigenvectors
CALL MatrixDiagonalScale(vecs, gathered_list)
CALL FilterMatrix(vecs, params%threshold)

!! Multiply Back Together
CALL TransposeMatrix(vecs, vecsT)
Expand Down
12 changes: 2 additions & 10 deletions Source/Fortran/distributed_includes/FilterMatrix.f90
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
!! Local Data
TYPE(ProcessGrid_t) :: grid_temp
LOGICAL :: is_complex_temp
INTEGER :: II, size_temp
INTEGER :: II

CALL GetMatrixTripletList(this, tlist)
CALL ConstructTripletList(new_list)
Expand All @@ -13,10 +11,4 @@
END IF
END DO

size_temp = this%actual_matrix_dimension
grid_temp = this%process_grid
is_complex_temp = this%is_complex
CALL DestructMatrix(this)
CALL ConstructEmptyMatrix(this, size_temp, grid_temp, is_complex_temp)

CALL FillMatrixFromTripletList(this, new_list)
CALL FillMatrixFromTripletList(this, new_list, preduplicated_in=.TRUE.)

0 comments on commit b35062c

Please sign in to comment.