Commit 7bc75acd authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix unused variable.

parent 73b5289c
...@@ -128,21 +128,17 @@ static void modelRun(MPI_Comm commModel) ...@@ -128,21 +128,17 @@ static void modelRun(MPI_Comm commModel)
for ( i = 0; i < nVars; i++ ) for ( i = 0; i < nVars; i++ )
{ {
#ifdef USE_MPI #ifdef USE_MPI
int start = varDeco[i].start;
int chunk = varDeco[i].chunkSize; int chunk = varDeco[i].chunkSize;
#else #else
int chunk = varSize[i]; int chunk = varSize[i];
int start = 0;
#endif #endif
for (j = 0; j < chunk; ++j) var[j] = 2.2; for (j = 0; j < chunk; ++j) var[j] = 2.2;
#ifdef USE_MPI #ifdef USE_MPI
streamWriteVarPart(streamID, varID[i], var, nmiss, streamWriteVarPart(streamID, varID[i], var, nmiss,
varDeco[i].partDesc); varDeco[i].partDesc);
#else #else
streamWriteVar ( streamID, varID[i], &var[start], nmiss ); streamWriteVar ( streamID, varID[i], var, nmiss );
#endif #endif
start = CDI_UNDEFID;
chunk = CDI_UNDEFID;
} }
#ifdef USE_MPI #ifdef USE_MPI
pioWriteTimestep(); pioWriteTimestep();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment