Ejemplo n.º 1
0
int main(int argc, char *argv[])
{
  nest::Network *pNet = 0;

  /** 
   * Create the interpreter object. Due to its dependence
   * on various static objects (e.g. of class Name), the
   * interpreter engine MUST NOT be global.
   */
  SLIInterpreter engine;

  neststartup(argc, argv, engine, pNet);

  // start the interpreter session
  int exitcode = engine.execute();

  nestshutdown();

  // delete the Network before modules are deleted by interpreter's destructor
  // because otherwise models defined in a module might still be referenced by
  // the Network
  delete pNet;

  return exitcode;
}
Ejemplo n.º 2
0
int main(int argc, char *argv[])
{
#ifdef HAVE_MPI
  nest::Communicator::init(&argc, &argv);
#endif

#ifdef _OPENMP
  omp_set_num_threads(1);
#endif

  nest::Network *pNet = 0;

  /** 
   * Create the interpreter object. Due to its dependence
   * on various static objects (e.g. of class Name), the
   * interpreter engine MUST NOT be global.
   */
  SLIInterpreter engine;

  neststartup(argc, argv, engine, pNet);

  // start the interpreter session
  int exitcode = engine.execute();

#ifdef HAVE_MPI
  nest::Communicator::finalize();
#endif

  // delete the Network before modules are deleted by interpreter's destructor
  // because otherwise models defined in a module might still be referenced by
  // the Network
  delete pNet;

  return exitcode;
}
Ejemplo n.º 3
0
int
main( int argc, char* argv[] )
{
  /**
   * Create the interpreter object. Due to its dependence
   * on various static objects (e.g. of class Name), the
   * interpreter engine MUST NOT be global.
   */
  SLIInterpreter engine;

  neststartup( &argc, &argv, engine );

  // start the interpreter session
  int exitcode = engine.execute();

  nestshutdown( exitcode );

  return exitcode;
}