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)
for ( i = 0; i < nVars; i++ )
{
#ifdef USE_MPI
int start = varDeco[i].start;
int chunk = varDeco[i].chunkSize;
#else
int chunk = varSize[i];
int start = 0;
#endif
for (j = 0; j < chunk; ++j) var[j] = 2.2;
#ifdef USE_MPI
streamWriteVarPart(streamID, varID[i], var, nmiss,
varDeco[i].partDesc);
#else
streamWriteVar ( streamID, varID[i], &var[start], nmiss );
streamWriteVar ( streamID, varID[i], var, nmiss );
#endif
start = CDI_UNDEFID;
chunk = CDI_UNDEFID;
}
#ifdef USE_MPI
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