Commit 0d8446e4 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge declaration and initialization.

parent 002fd7a7
......@@ -321,14 +321,13 @@ modelRun(struct model_config setup, MPI_Comm comm)
}
for (size_t i = 0; i < (size_t)nVars; ++i)
{
uint32_t cksum;
int code;
cksum = memcrc_finish(&varDesc[i].checksum_state,
(off_t)((varDesc[i].size
* sizeof (var[0])
+ sizeof (int) * 2)
* (size_t)setup.nts));
code = vlistInqVarCode(vlistID, varDesc[i].id);
uint32_t cksum
= memcrc_finish(&varDesc[i].checksum_state,
(off_t)((varDesc[i].size
* sizeof (var[0])
+ sizeof (int) * 2)
* (size_t)setup.nts));
int code = vlistInqVarCode(vlistID, varDesc[i].id);
if (fprintf(tablefp, "%08lx %d\n", (unsigned long)cksum,
code) < 0)
{
......
Supports Markdown
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