Skip to content

Commit

Permalink
silence compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward-RSE committed Feb 21, 2024
1 parent 3b52a85 commit 94a5bbb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/windsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ wind_save (filename)
n += fwrite (zdom, sizeof (domain_dummy), geo.ndomain, fptr);
for (ndom = 0; ndom < geo.ndomain; ++ndom)
{
fwrite (zdom[ndom].wind_x, sizeof (double), zdom[ndom].ndim, fptr);
fwrite (zdom[ndom].wind_z, sizeof (double), zdom[ndom].mdim, fptr);
fwrite (zdom[ndom].wind_midx, sizeof (double), zdom[ndom].ndim, fptr);
fwrite (zdom[ndom].wind_midz, sizeof (double), zdom[ndom].mdim, fptr);
n += fwrite (zdom[ndom].wind_x, sizeof (double), zdom[ndom].ndim, fptr);
n += fwrite (zdom[ndom].wind_z, sizeof (double), zdom[ndom].mdim, fptr);
n += fwrite (zdom[ndom].wind_midx, sizeof (double), zdom[ndom].ndim, fptr);
n += fwrite (zdom[ndom].wind_midz, sizeof (double), zdom[ndom].mdim, fptr);

if (zdom[ndom].coord_type == CYLVAR)
{
fwrite (zdom[ndom].wind_z_var, sizeof (double), zdom[ndom].ndim * zdom[ndom].mdim, fptr);
fwrite (zdom[ndom].wind_midz_var, sizeof (double), zdom[ndom].ndim * zdom[ndom].mdim, fptr);
n += fwrite (zdom[ndom].wind_z_var, sizeof (double), zdom[ndom].ndim * zdom[ndom].mdim, fptr);
n += fwrite (zdom[ndom].wind_midz_var, sizeof (double), zdom[ndom].ndim * zdom[ndom].mdim, fptr);
}
}

Expand Down

0 comments on commit 94a5bbb

Please sign in to comment.