Skip to content
Snippets Groups Projects
Commit 32211e55 authored by Cristian C Lalescu's avatar Cristian C Lalescu
Browse files

use temporary string for MPI_File_open call

parent 991b6dfb
Branches
No related tags found
No related merge requests found
......@@ -85,10 +85,12 @@ int field_descriptor::read(
MPI_Info info;
MPI_Info_create(&info);
MPI_File f;
char ffname[200];
sprintf(ffname, "%s", fname);
MPI_File_open(
this->comm,
fname,
ffname,
MPI_MODE_RDONLY,
info,
&f);
......@@ -117,10 +119,12 @@ int field_descriptor::write(
MPI_Info info;
MPI_Info_create(&info);
MPI_File f;
char ffname[200];
sprintf(ffname, "%s", fname);
MPI_File_open(
this->comm,
fname,
ffname,
MPI_MODE_CREATE | MPI_MODE_WRONLY,
info,
&f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment