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

Clean examples for new API.

parent 5d142f76
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -141,9 +141,6 @@ modelRun(MPI_Comm commModel)
#endif
}
}
#ifdef USE_MPI
pioEndTimestepping();
#endif
streamClose(streamID);
vlistDestroy(vlistID);
taxisDestroy(taxisID);
......
......@@ -220,12 +220,6 @@ CONTAINS
#endif
END DO
#ifdef USE_MPI
! For parallel IO:
! Preparation for local cleanup
CALL pioEndTimestepping ()
#endif
! Close the output stream
CALL streamClose(streamID)
......
......@@ -163,13 +163,9 @@ modelRun(MPI_Comm commModel)
hoursPassingHack(&vdate, &vtime, hourStep);
taxisDefVdate(taxisID, vdate);
taxisDefVtime(taxisID, vtime);
/* temporary fix for problem calling streamDefTimestep after
* streamWriteVarPart
* FIXME: this can be merged with the loop below again once
* per-stream RDMA windows are realized */
for (i = 0; i < nStreams; i++) streamDefTimestep(streamID[i], tsID);
for (i = 0; i < nStreams; i++)
{
streamDefTimestep(streamID[i], tsID);
for (j = 0; j < nVars; j++)
{
#ifdef USE_MPI
......@@ -196,7 +192,6 @@ modelRun(MPI_Comm commModel)
}
#ifdef USE_MPI
pioEndTimestepping();
for (size_t streamIdx = 0; streamIdx < (size_t) nStreams; ++streamIdx)
for (size_t varIdx = 0; varIdx < (size_t) nVars; ++varIdx) xt_idxlist_delete(varDeco[streamIdx][varIdx].partDesc);
#endif
......
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