Commit 34f0dfc8 by Francois Gygi

print species info when defining a species


git-svn-id: http://qboxcode.org/svn/qb/trunk@387 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 0376a92c
......@@ -3,7 +3,7 @@
// SpeciesCmd.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: SpeciesCmd.C,v 1.4 2004-09-14 22:24:11 fgygi Exp $
// $Id: SpeciesCmd.C,v 1.5 2005-04-29 18:11:31 fgygi Exp $
#include "SpeciesCmd.h"
#include "SpeciesReader.h"
......@@ -34,6 +34,13 @@ 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