Skip to content

Commit

Permalink
Merge pull request xiaoyeli#162 from abagusetty/bug_fix_trf3Dpartition
Browse files Browse the repository at this point in the history
Fix the sizeof and add casting to trf3d partition structs
  • Loading branch information
liuyangzhuan authored May 11, 2024
2 parents 2573a07 + 6aa225d commit 4c573ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SRC/complex16/pzgssvx3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ void pzgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,
if (symb_comm != MPI_COMM_NULL)
MPI_Comm_free(&symb_comm);
if ( Fact != SamePattern_SameRowPerm){
LUstruct->trf3Dpart = SUPERLU_MALLOC(sizeof(dtrf3Dpartition_t));
LUstruct->trf3Dpart = (ztrf3Dpartition_t *)SUPERLU_MALLOC(sizeof(ztrf3Dpartition_t));
// computes the new partition for 3D factorization here
trf3Dpartition=LUstruct->trf3Dpart;
znewTrfPartitionInit(nsupers, LUstruct, grid3d);
Expand Down
2 changes: 1 addition & 1 deletion SRC/double/pdgssvx3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ void pdgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,
if (symb_comm != MPI_COMM_NULL)
MPI_Comm_free(&symb_comm);
if ( Fact != SamePattern_SameRowPerm){
LUstruct->trf3Dpart = SUPERLU_MALLOC(sizeof(dtrf3Dpartition_t));
LUstruct->trf3Dpart = (dtrf3Dpartition_t *)SUPERLU_MALLOC(sizeof(dtrf3Dpartition_t));
// computes the new partition for 3D factorization here
trf3Dpartition=LUstruct->trf3Dpart;
dnewTrfPartitionInit(nsupers, LUstruct, grid3d);
Expand Down
2 changes: 1 addition & 1 deletion SRC/single/psgssvx3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ void psgssvx3d(superlu_dist_options_t *options, SuperMatrix *A,
if (symb_comm != MPI_COMM_NULL)
MPI_Comm_free(&symb_comm);
if ( Fact != SamePattern_SameRowPerm){
LUstruct->trf3Dpart = SUPERLU_MALLOC(sizeof(dtrf3Dpartition_t));
LUstruct->trf3Dpart = (strf3Dpartition_t *)SUPERLU_MALLOC(sizeof(strf3Dpartition_t));
// computes the new partition for 3D factorization here
trf3Dpartition=LUstruct->trf3Dpart;
snewTrfPartitionInit(nsupers, LUstruct, grid3d);
Expand Down

0 comments on commit 4c573ca

Please sign in to comment.