Skip to content
Snippets Groups Projects
Commit 0e1c46bf authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Reduce code divergence.

parent fca9ffb8
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,10 @@ modelRun(MPI_Comm comm)
int bufferSize;
#ifdef USE_MPI
const char *fname = "example_resource_copy_mpi.grb";
cdiPioSerializeSetMPI();
#else
const char *fname = "example_resource_copy.grb";
#endif
int gridID = defineGrid();
......@@ -203,11 +206,7 @@ modelRun(MPI_Comm comm)
struct idPair temp = defineVlist(gridID, zaxisID, taxisID);
int vlistID = temp.id1;
#ifdef USE_MPI
int streamID = streamOpenWrite("example_resource_copy_mpi.grb", CDI_FILETYPE_GRB);
#else
int streamID = streamOpenWrite("example_resource_copy.grb", CDI_FILETYPE_GRB);
#endif
int streamID = streamOpenWrite(fname, CDI_FILETYPE_GRB);
if (streamID < 0) xabort("Could not open file");
defineStream(streamID, vlistID);
vlistDestroy(temp.id1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment