/[ascend]/trunk/pygtk/integratorreporter.cpp
ViewVC logotype

Diff of /trunk/pygtk/integratorreporter.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 939 by johnpye, Wed Oct 25 07:35:39 2006 UTC revision 940 by johnpye, Fri Nov 24 08:07:33 2006 UTC
# Line 9  extern "C"{ Line 9  extern "C"{
9  #include <stdexcept>  #include <stdexcept>
10  using namespace std;  using namespace std;
11    
12    //---------------------------------------------
13    // NULL INTEGRATOR REPORTER (makes no output at all)
14    
15    IntegratorReporterNull::IntegratorReporterNull(Integrator *integrator) : IntegratorReporterCxx(integrator){
16        // nothing else
17    }
18    
19    IntegratorReporterNull::~IntegratorReporterNull(){
20        // nothing else
21    }
22    
23    int
24    IntegratorReporterNull::initOutput(){
25        return 1;
26    }
27    
28    int IntegratorReporterNull::closeOutput(){
29        return 1;
30    }
31    
32    int IntegratorReporterNull::updateStatus(){
33        return 1;
34    }
35    
36    int IntegratorReporterNull::recordObservedValues(){
37        return 1;
38    }
39    
40    
41    //----------------------------------------------------
42    // DEFAULT INTEGRATOR REPORTER (reporter start and end, outputs time at each step)
43    
44  IntegratorReporterCxx::IntegratorReporterCxx(Integrator *integrator){  IntegratorReporterCxx::IntegratorReporterCxx(Integrator *integrator){
45      // Initialise the C-API structure with flat function pointers      // Initialise the C-API structure with flat function pointers
46      reporter.init = &ascxx_integratorreporter_init;      reporter.init = &ascxx_integratorreporter_init;

Legend:
Removed from v.939  
changed lines
  Added in v.940

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22