[Debian-astro-commits] [gyoto] 27/221: MPI: use a buffer instead of a temporary file when cloning remotely

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 9020a896378525685268cb77691a390233fdfb5f
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Fri Oct 10 16:38:34 2014 +0200

    MPI: use a buffer instead of a temporary file when cloning remotely
---
 lib/Scenery.C | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/Scenery.C b/lib/Scenery.C
index db67fe4..86071be 100644
--- a/lib/Scenery.C
+++ b/lib/Scenery.C
@@ -823,14 +823,13 @@ void Gyoto::Scenery::mpiTerminate(bool keep_env) {
 
 void Gyoto::Scenery::mpiClone()
 {
-  char * tmpfile_c="tmp-gyoto-sc.xml";
-  std::string tmpfile(tmpfile_c);
-  Gyoto::Factory(this).write(tmpfile_c);
+  std::string xmldata=
+    Gyoto::Factory(this).format();
   int errcode;
   for (int i=0; i < mpi_workers_->remote_size(); ++i) {
     //mpi_workers_->recv(i, ready, errcode);
     mpi_workers_->send(i, give_task, read_scenery);
-    mpi_workers_->send(i, read_scenery, tmpfile);
+    mpi_workers_->send(i, read_scenery, xmldata);
   }
 
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list