Skip to content

Commit

Permalink
Backport fixes (#188) to 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Feb 29, 2024
1 parent 1bc7159 commit 95f6566
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/C/TripletList_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void AppendToTripletList_r_wrp(int *ih_this, const int *index_column,
void SetTripletAt_r_wrp(int *ih_this, const int *index, const int *index_column,
const int *index_row, const double *point_value);
void GetTripletAt_r_wrp(const int *ih_this, const int *index, int *index_column,
const int *index_row, double *point_value);
int *index_row, double *point_value);
void DestructTripletList_r_wrp(int *ih_this);
void SortTripletList_r_wrp(const int *ih_this, const int *matrix_size,
int *h_sorted);
Expand Down
14 changes: 8 additions & 6 deletions Source/Fortran/dense_includes/CheckMemoryPoolValidity.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
IF (.NOT. ALLOCATED(this%pruned_list)) isvalid = .FALSE.
IF (.NOT. ALLOCATED(this%value_array)) isvalid = .FALSE.

!! Check allocation size
IF (.NOT. SIZE(this%value_array,dim=2) .EQ. rows) THEN
isvalid = .FALSE.
END IF
IF (.NOT. SIZE(this%value_array,dim=1) .EQ. columns) THEN
isvalid = .FALSE.
IF (isvalid) THEN
!! Check allocation size
IF (.NOT. SIZE(this%value_array,dim=2) .EQ. rows) THEN
isvalid = .FALSE.
END IF
IF (.NOT. SIZE(this%value_array,dim=1) .EQ. columns) THEN
isvalid = .FALSE.
END IF
END IF

0 comments on commit 95f6566

Please sign in to comment.