URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2009-02-10 Fabien Freling <fabien.freling(a)lrde.epita.fr>
Fix save function for cloud.
* mln/io/cloud/save.hh: Fix (save_data).
---
save.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: trunk/milena/mln/io/cloud/save.hh
===================================================================
--- trunk/milena/mln/io/cloud/save.hh (revision 3338)
+++ trunk/milena/mln/io/cloud/save.hh (revision 3339)
@@ -64,10 +64,10 @@
inline
void save_data(const p_array<P>& arr, std::ofstream& file)
{
- std::ostringstream sline;
mln_piter(p_array<P>) p(arr);
for_all(p)
{
+ std::ostringstream sline;
algebra::vec<P::dim,float> v = p.to_site().to_vec();
sline << v[0];
for (unsigned i = 1; i < P::dim; ++i)