Trisurf Monte Carlo simulator
Samo Penic
2016-02-29 ecdd71929b38a504e2b0ae1a9c105a5e1ac28e4a
src/snapshot.c
@@ -82,7 +82,7 @@
   ts_uint i;
   ts_sprintf(data,"<tria>");
   for(i=0; i<tlist->n;i++){
      ts_sprintf(data,"%u %u %u",tlist->tria[i]->vertex[0]->idx, tlist->tria[i]->vertex[1]->idx, tlist->tria[i]->vertex[2]->idx);
      ts_sprintf(data,"%u %u %u ",tlist->tria[i]->vertex[0]->idx, tlist->tria[i]->vertex[1]->idx, tlist->tria[i]->vertex[2]->idx);
   }
   ts_sprintf(data,"</tria>");
   return TS_SUCCESS;
@@ -92,7 +92,7 @@
   ts_uint i;
   ts_sprintf(data,"<trianeigh>\n");
   for(i=0; i<tlist->n;i++){
      ts_sprintf(data,"%u %u %u",tlist->tria[i]->neigh[0]->idx, tlist->tria[i]->neigh[1]->idx, tlist->tria[i]->neigh[2]->idx);
      ts_sprintf(data,"%u %u %u ",tlist->tria[i]->neigh[0]->idx, tlist->tria[i]->neigh[1]->idx, tlist->tria[i]->neigh[2]->idx);
   }
   ts_sprintf(data,"</trianeigh>\n");
   return TS_SUCCESS;