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

Functions

int main (int argc, char **argv)
 

Detailed Description

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

Nemo2

Copyright (C) 2006-2015 Frederic Guillaume frede.nosp@m.ric..nosp@m.guill.nosp@m.aume.nosp@m.@ieu..nosp@m.uzh..nosp@m.ch

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

Date
19.07.2004
Author
fred

Function Documentation

int main ( int  argc,
char **  argv 
)

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

39 {
40  //--------------------------------------------------------------------
41 
42  Metapop *thePop = new Metapop;
43  SimRunner *theSim = SIMenv::setMainSim( thePop );
44 
45  if( !theSim->run(argc, argv) ) fatal(" could not run the simulation!\n");
46 
47  delete theSim;
48  delete thePop;
49 
50  return 0;
51 }
bool run(int ARGC, char **ARGV)
First loop of the simulation, performs the simulations stored in the ParamManager base class...
Definition: simulation.cc:297
Top class of the metapopulation structure, contains the patches.
Definition: metapop.h:79
void fatal(const char *str,...)
Definition: output.cc:90
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