Commit 910dccd6 authored by berenger-bramas's avatar berenger-bramas

Update csv saver.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@429 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 43c0b5f2
......@@ -61,13 +61,23 @@ public:
octreeIterator.gotoBottomLeft();
do{
typename ContainerClass::BasicIterator iter(*octreeIterator.getCurrentListTargets());
//const bool isUsingTsm = (octreeIterator.getCurrentListTargets() != octreeIterator.getCurrentListSrc());
while( iter.hasNotFinished() ){
file << iter.data().getPosition().getX() << "," << iter.data().getPosition().getY() << "," <<
iter.data().getPosition().getZ() << "," << getValue(&iter.data()) << "\n";
iter.gotoNext();
}
const bool isUsingTsm = (octreeIterator.getCurrentListTargets() != octreeIterator.getCurrentListSrc());
if( isUsingTsm ){
typename ContainerClass::BasicIterator iterSources(*octreeIterator.getCurrentListSrc());
while( iterSources.hasNotFinished() ){
file << iterSources.data().getPosition().getX() << "," << iterSources.data().getPosition().getY() << "," <<
iterSources.data().getPosition().getZ() << "," << getValue(&iterSources.data()) << "\n";
iterSources.gotoNext();
}
}
} while(octreeIterator.moveRight());
file.close();
......
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