orsa_integrator.cc File Reference

#include "orsa_integrator.h"

Include dependency graph for orsa_integrator.cc:

Go to the source code of this file.

Namespaces

namespace  orsa

Functions

void make_new_integrator (Integrator **i, const IntegratorType type)


Function Documentation

void make_new_integrator Integrator **  i,
const IntegratorType  type
 

Definition at line 29 of file orsa_integrator.cc.

References orsa::DISSIPATIVERUNGEKUTTA, orsa::LEAPFROG, orsa::RA15, orsa::RUNGEKUTTA, and orsa::STOER.

Referenced by OrsaFile::Read(), and Evolution::SetIntegrator().

00029                                                                        {
00030     
00031     delete (*i);
00032     (*i) = 0;
00033     
00034     switch (type) {
00035     case STOER:                 (*i) = new Stoer;                  break;
00036       // case BULIRSCHSTOER:         (*i) = new BulirschStoer;          break;
00037     case RUNGEKUTTA:            (*i) = new RungeKutta;             break;
00038     case DISSIPATIVERUNGEKUTTA: (*i) = new DissipativeRungeKutta;  break;
00039     case RA15:                  (*i) = new Radau15;                break;
00040     case LEAPFROG:              (*i) = new Leapfrog;               break;
00041     }
00042   }


Generated on Tue Jan 11 15:26:59 2005 for liborsa by  doxygen 1.4.0