-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some memory optimizations * Additional memory optimizations for dense eigenvalues * Lint
- Loading branch information
1 parent
b2adba2
commit 6050810
Showing
8 changed files
with
89 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
!! Local Data | ||
INTEGER :: II | ||
|
||
CALL ConstructTripletList(new_list) | ||
INTEGER :: II, KK | ||
|
||
CALL GetMatrixTripletList(AMat, tlist) | ||
|
||
!! Determine the size. | ||
!! these loops could be merged using append but I choose not to for the | ||
!! sake of memory. | ||
KK = 0 | ||
DO II = 1, tlist%CurrentSize | ||
IF (MOD(II, AMat%process_grid%num_process_slices) .EQ. & | ||
& AMat%process_grid%my_slice) THEN | ||
KK = KK + 1 | ||
END IF | ||
END DO | ||
CALL ConstructTripletList(new_list, KK) | ||
|
||
!! Fill the Triplet List | ||
KK = 0 | ||
DO II = 1, tlist%CurrentSize | ||
IF (MOD(II, AMat%process_grid%num_process_slices) .EQ. & | ||
& AMat%process_grid%my_slice) THEN | ||
KK = KK + 1 | ||
CALL GetTripletAt(tlist, II, trip) | ||
trip_t%index_row = trip%index_column | ||
trip_t%index_column = trip%index_row | ||
trip_t%point_value = trip%point_value | ||
CALL AppendToTripletList(new_list, trip_t) | ||
new_list%DATA(KK)%index_row = trip%index_column | ||
new_list%DATA(KK)%index_column = trip%index_row | ||
new_list%DATA(KK)%point_value = trip%point_value | ||
END IF | ||
END DO | ||
CALL DestructTripletList(tlist) | ||
|
||
!! Create the matrix | ||
CALL DestructMatrix(TransMat) | ||
CALL ConstructEmptyMatrix(TransMat, AMat) | ||
CALL FillMatrixFromTripletList(TransMat, new_list) | ||
CALL DestructTripletList(new_list) | ||
CALL DestructTripletList(tlist) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters