Commit 4c414595 authored by François Trigaux's avatar François Trigaux
Browse files

🐛 corrected binary io function

parent 49a56d87
......@@ -811,18 +811,12 @@ void gebt_writeSolToBin(Gebt *bm,char* fileName)
fwrite(&(bm->t),sizeof(double),1,fid);
for (i=0;i<bm->nkp;i++)
{
for(j=0;j<NDIM + NDOF_ND;j++)
{
fwrite(bm->sol_pt[k][i],sizeof(double),NDIM+NDOF_ND,fid);
}
fwrite(bm->sol_pt[k][i],sizeof(double),NDIM+NDOF_ND,fid);
}
for (i=0;i<bm->nelem;i++)
{
for(j=0;j<NDIM + bm->ndof_el;j++)
{
fwrite(bm->sol_mb[k][i],sizeof(double),NDIM + bm->ndof_el,fid);
}
fwrite(bm->sol_mb[k][i],sizeof(double),NDIM + bm->ndof_el,fid);
}
fclose(fid);
}
......
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