Skip to content

Commit

Permalink
Specify the name of each created species
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Derouillat committed Jun 30, 2017
1 parent b10f0e3 commit a9218d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Species/SpeciesFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class SpeciesFactory {
std::string species_type("");

PyTools::extract("species_type",species_type,"Species",ispec);
if (patch->isMaster()) MESSAGE(1, "Creating Species : " << species_type );


unsigned int tot_species_number = PyTools::nComponents("Species");
if(species_type.empty()) {
Expand Down Expand Up @@ -342,8 +344,6 @@ class SpeciesFactory {
std::vector<Species*> retSpecies;
retSpecies.resize(0);

if (patch->isMaster()) MESSAGE(1, "Creating Species :" );

// read from python namelist
unsigned int tot_species_number = PyTools::nComponents("Species");
for (unsigned int ispec = 0; ispec < tot_species_number; ispec++) {
Expand Down

0 comments on commit a9218d6

Please sign in to comment.