Commit c687abf2 by Francois Gygi

print info on species when loading a sample


git-svn-id: http://qboxcode.org/svn/qb/trunk@558 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 43e5cd5c
......@@ -3,7 +3,7 @@
// AtomSet.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: AtomSet.C,v 1.17 2007-10-19 16:24:03 fgygi Exp $
// $Id: AtomSet.C,v 1.18 2007-12-15 00:56:20 fgygi Exp $
#include "AtomSet.h"
#include "Species.h"
......@@ -35,6 +35,12 @@ bool AtomSet::addSpecies(Species* sp, string name)
atom_list.resize(atom_list.size()+1);
is_[name] = spname.size()-1;
if ( ctxt_.onpe0() )
{
cout << endl << " <!-- species " << sp->name() << ":" << endl;
sp->info(cout);
cout << " -->" << endl;
}
return true;
}
......
......@@ -3,7 +3,7 @@
// SpeciesCmd.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SpeciesCmd.C,v 1.8 2007-10-19 16:24:05 fgygi Exp $
// $Id: SpeciesCmd.C,v 1.9 2007-12-15 00:56:20 fgygi Exp $
#include "SpeciesCmd.h"
#include "SpeciesReader.h"
......@@ -35,13 +35,6 @@ int SpeciesCmd::action(int argc, char **argv)
sp_reader.readSpecies(*sp,argv[2]);
sp_reader.bcastSpecies(*sp);
s->atoms.addSpecies(sp,argv[1]);
if ( s->ctxt_.onpe0() )
{
cout << endl << " <!-- species " << sp->name() << ":" << endl;
sp->info(cout);
cout << " -->" << endl;
}
}
catch ( const SpeciesReaderException& e )
{
......
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