Nemo  2.3.46 File Reference
#include "simulation.h"
#include "simenv.h"
#include "metapop.h"


int main (int argc, char **argv)

Detailed Description

Id,v 1.4 2015-07-13 08:52:57 fred Exp


Copyright (C) 2006-2015 Frederic Guillaume

This file is part of Nemo

Nemo is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Nemo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

created on


Function Documentation

int main ( int  argc,
char **  argv 

References fatal(), SimRunner::run(), and SIMenv::setMainSim().

39 {
40  //--------------------------------------------------------------------
42  Metapop *thePop = new Metapop;
43  SimRunner *theSim = SIMenv::setMainSim( thePop );
45  if( !theSim->run(argc, argv) ) fatal(" could not run the simulation!\n");
47  delete theSim;
48  delete thePop;
50  return 0;
51 }
bool run(int ARGC, char **ARGV)
First loop of the simulation, performs the simulations stored in the ParamManager base class...
Top class of the metapopulation structure, contains the patches.
Definition: metapop.h:79
void fatal(const char *str,...)
Performs the setup of the Metapop and SimComponents and runs the simulation.
Definition: simulation.h:53
static SimRunner * setMainSim(Metapop *pop)
Definition: simenv.h:46

Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR