On Thu, Jun 19, 2014 at 5:14 PM, Roy Stogner <royst...@ices.utexas.edu> wrote: > > On Thu, 19 Jun 2014, John Peterson wrote: > >> On Thu, Jun 19, 2014 at 4:58 PM, Manav Bhatia <bhatiama...@gmail.com> >> wrote: >>> >>> I think that was it. I had to move the ExodusII_IO out of the for loop. >> >> >> OK, I think if you call write_timestep and the file is not already >> open, it overwrites whatever was there by calling >> exio_helper->create(fname). >> >> This might explain what you were seeing. > > > Hmm... should we consider this a bug? "Just move the constructor out > of the for loop" might have been a decent workaround here, but it > won't be in cases where e.g. someone wants to append to an existing > file after a restart.
The appending capability should already be supported, but it's not turned on by default. So: for (unsigned int i_step = 0; i_step<100; i_step) { ExodusII_IO exio(mesh); exio.append(true); exio.write_timestep("transient_data.exo", eq_sys, i, i*.01); } *should* work, but I'm not sure if we want to encourage this repeated creation/deletion pattern when it's not necessary. -- John ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users