Nemo  2.4.0
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
main.cc File Reference

Nemo2. More...

#include "simulation.h"
#include "simenv.h"
#include "metapop.h"

Functions

int main (int argc, char **argv)
 

Detailed Description

Nemo2.

Copyright (C) 2006-2026 The Authors

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

◆ main()

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

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


Generated for Nemo v2.4.0 by  doxygen 1.9.1 -- Nemo is hosted on  Download Nemo

Locations of visitors to this page
Catalogued on GSR