Nemo  2.4.2
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 3 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, see https://www.gnu.org/licenses/.

created on

Date
19.07.2004
Author
fred

Function Documentation

◆ main()

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

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


Generated for Nemo v2.4.2 by  doxygen 1.9.1

Catalogued on GSR