Increase available length of filenames for parcsr mat and vec (#562)

Increase char array lengths to accommodate longer filenames, e.g. long absolute paths.
This commit is contained in:
Wayne Mitchell 2022-08-16 15:03:13 -07:00 committed by GitHub
parent ce3ecb0daf
commit 6cf11aaa08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -500,7 +500,7 @@ hypre_ParCSRMatrixRead( MPI_Comm comm,
HYPRE_BigInt global_num_rows, global_num_cols;
FILE *fp;
char new_file_d[80], new_file_o[80], new_file_info[80];
char new_file_d[256], new_file_o[256], new_file_info[256];
hypre_MPI_Comm_rank(comm, &my_id);
hypre_MPI_Comm_size(comm, &num_procs);
@ -587,7 +587,7 @@ hypre_ParCSRMatrixPrint( hypre_ParCSRMatrix *matrix,
HYPRE_BigInt global_num_cols;
HYPRE_BigInt *col_map_offd;
HYPRE_Int my_id, i, num_procs;
char new_file_d[80], new_file_o[80], new_file_info[80];
char new_file_d[256], new_file_o[256], new_file_info[256];
FILE *fp;
HYPRE_Int num_cols_offd = 0;
HYPRE_BigInt row_s, row_e, col_s, col_e;

View File

@ -220,7 +220,7 @@ hypre_ParVector*
hypre_ParVectorRead( MPI_Comm comm,
const char *file_name )
{
char new_file_name[80];
char new_file_name[256];
hypre_ParVector *par_vector;
HYPRE_Int my_id;
HYPRE_BigInt partitioning[2];
@ -265,7 +265,7 @@ HYPRE_Int
hypre_ParVectorPrint( hypre_ParVector *vector,
const char *file_name )
{
char new_file_name[80];
char new_file_name[256];
hypre_Vector *local_vector;
MPI_Comm comm;
HYPRE_Int my_id;