@@ -61,51 +61,63 @@ namespace pfasst {
6161 shared_ptr<EncapsulationFactory<scalar,time>> factory;
6262
6363 public:
64- void set_nodes (vector<time> nodes) {
64+
65+ void set_nodes (vector<time> nodes)
66+ {
6567 this ->nodes = nodes;
6668 }
6769
68- const vector<time> get_nodes () const {
70+ const vector<time> get_nodes () const
71+ {
6972 return nodes;
7073 }
7174
72- void set_factory (EncapsulationFactory<scalar,time>* factory) {
75+ void set_factory (EncapsulationFactory<scalar,time>* factory)
76+ {
7377 this ->factory = shared_ptr<EncapsulationFactory<scalar,time>>(factory);
7478 }
7579
76- EncapsulationFactory<scalar,time>* get_factory () const {
80+ EncapsulationFactory<scalar,time>* get_factory () const
81+ {
7782 return factory.get ();
7883 }
7984
80- virtual void set_q (const Encapsulation<scalar,time>* q0, unsigned int m) {
81- throw NotImplementedYet (" sweeper" );
85+ virtual void set_state (const Encapsulation<scalar,time>* q0, unsigned int m)
86+ {
87+ throw NotImplementedYet (" sweeper" );
8288 }
8389
84- virtual Encapsulation<scalar,time>* get_state (unsigned int m) const {
90+ virtual Encapsulation<scalar,time>* get_state (unsigned int m) const
91+ {
8592 throw NotImplementedYet (" sweeper" );
8693 return NULL ;
8794 }
8895
89- virtual Encapsulation<scalar,time>* get_tau (unsigned int m) const {
96+ virtual Encapsulation<scalar,time>* get_tau (unsigned int m) const
97+ {
9098 throw NotImplementedYet (" sweeper" );
9199 return NULL ;
92100 }
93101
94- virtual Encapsulation<scalar,time>* get_pq (unsigned int m) const {
102+ virtual Encapsulation<scalar,time>* get_saved_state (unsigned int m) const
103+ {
95104 throw NotImplementedYet (" sweeper" );
96105 return NULL ;
97106 }
98107
99- virtual Encapsulation<scalar,time>* get_qend () {
108+ virtual Encapsulation<scalar,time>* get_end_state ()
109+ {
100110 return this ->get_state (this ->get_nodes ().size ()-1 );
101111 }
102112
103- virtual void evaluate (int m) {
113+ virtual void evaluate (int m)
114+ {
104115 throw NotImplementedYet (" sweeper" );
105116 }
106117
107- virtual void advance () {
108- this ->set_q (this ->get_qend (), 0 );
118+ virtual void advance ()
119+ {
120+ this ->set_state (this ->get_end_state (), 0 );
109121 }
110122
111123 virtual void integrate (Encapsulation<scalar,time>* dst, time dt) {
@@ -147,7 +159,7 @@ namespace pfasst {
147159 if (initial)
148160 crse_tmp->saxpy (-1.0 , src->get_state (0 ));
149161 else
150- crse_tmp->saxpy (-1.0 , src->get_pq (m));
162+ crse_tmp->saxpy (-1.0 , src->get_saved_state (m));
151163 interpolate (fine_tmp[m], crse_tmp);
152164 }
153165 delete crse_tmp;
0 commit comments