On Wednesday 16 December 2009 23:32:04 Anders Logg wrote: > Thanks! > > Strange that the files were not gzipped. I thought they would be when > saved as foo.xml.gz from DOLFIN, but apparently not. > > Looks like a bug.
No it isn't. The xml library we use automagically unzip any zipped files. When we save zip files we do it by explicitly writing the strings to file. We need to provide a proper zip algorithm. boost provide such frameworks with its ostream library. I is quite neat, but of course it makes heavy use of templates. I used it in a previous version of TriTetMesh, but abandoned it because I could not figure out template related stuff. It should be quite straight forward for a C++ Guru to include for our xml files. Johan > -- > Anders > > On Thu, Dec 17, 2009 at 06:06:21AM -0000, nore...@launchpad.net wrote: > > ------------------------------------------------------------ > > revno: 4376 > > committer: Johan Hake <hake....@gmail.com> > > branch nick: dolfin > > timestamp: Wed 2009-12-16 22:03:18 -0800 > > message: > > Updated tensor-weighted-poisson demo with new syntax for compiled > > Expression - Also gziped data files which were not gziped before > > modified: > > demo/pde/tensor-weighted-poisson/python/c00.xml.gz > > demo/pde/tensor-weighted-poisson/python/c01.xml.gz > > demo/pde/tensor-weighted-poisson/python/c11.xml.gz > > demo/pde/tensor-weighted-poisson/python/demo.py > > demo/pde/tensor-weighted-poisson/python/mesh.xml.gz > > > > > > > > === modified file 'demo/pde/tensor-weighted-poisson/python/c00.xml.gz' > > Binary files > > demo/pde/tensor-weighted-poisson/python/c00.xml.gz 2009-12-16 13:56:35 > > +0000 and demo/pde/tensor-weighted-poisson/python/c00.xml.gz > > 2009-12-17 > > 06:03:18 +0000 differ === modified file > > 'demo/pde/tensor-weighted-poisson/python/c01.xml.gz' Binary files > > demo/pde/tensor-weighted-poisson/python/c01.xml.gz 2009-12-16 13:56:35 > > +0000 and demo/pde/tensor-weighted-poisson/python/c01.xml.gz > > 2009-12-17 > > 06:03:18 +0000 differ === modified file > > 'demo/pde/tensor-weighted-poisson/python/c11.xml.gz' Binary files > > demo/pde/tensor-weighted-poisson/python/c11.xml.gz 2009-12-16 13:56:35 > > +0000 and demo/pde/tensor-weighted-poisson/python/c11.xml.gz > > 2009-12-17 > > 06:03:18 +0000 differ === modified file > > 'demo/pde/tensor-weighted-poisson/python/demo.py' --- > > demo/pde/tensor-weighted-poisson/python/demo.py 2009-12-16 14:05:58 > > +0000 > > +++ demo/pde/tensor-weighted-poisson/python/demo.py 2009-12-17 06:03:18 > > +0000 @@ -59,7 +59,7 @@ > > Conductivity() : Expression(3) {} > > > > // Function for evaluating expression on each cell > > - void eval(dolfin::Array<double>& values, const Data& data) const > > + void eval(Array<double>& values, const Data& data) const > > { > > values[0] = (*c00)[data.cell().index()]; > > values[1] = (*c01)[data.cell().index()]; > > @@ -67,9 +67,9 @@ > > } > > > > // The data stored in mesh functions > > - dolfin::MeshFunction<double>* c00; > > - dolfin::MeshFunction<double>* c01; > > - dolfin::MeshFunction<double>* c11; > > + MeshFunction<double>* c00; > > + MeshFunction<double>* c01; > > + MeshFunction<double>* c11; > > > > }; > > """ > > > > === modified file 'demo/pde/tensor-weighted-poisson/python/mesh.xml.gz' > > Binary files > > demo/pde/tensor-weighted-poisson/python/mesh.xml.gz 2009-12-16 13:56:35 > > +0000 and demo/pde/tensor-weighted-poisson/python/mesh.xml.gz > > 2009-12-17 > > 06:03:18 +0000 differ > _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp