@@ -18,14 +18,16 @@ namespace pfasst
1818 {
1919
2020 template <typename time = time_precision>
21- class PolyInterpMixin : public pfasst ::ITransfer<time>
21+ class PolyInterpMixin
22+ : public pfasst::ITransfer<time>
2223 {
2324 matrix<time> tmat, fmat;
2425
2526 public:
2627 virtual ~PolyInterpMixin () { }
2728
28- virtual void interpolate (shared_ptr<ISweeper<time>> dst, shared_ptr<const ISweeper<time>> src,
29+ virtual void interpolate (shared_ptr<ISweeper<time>> dst,
30+ shared_ptr<const ISweeper<time>> src,
2931 bool interp_delta_from_initial,
3032 bool interp_initial)
3133 {
@@ -37,7 +39,8 @@ namespace pfasst
3739 this ->interpolate (fine, crse, interp_delta_from_initial, interp_initial);
3840 }
3941
40- virtual void interpolate (shared_ptr<EncapSweeper<time>> fine, shared_ptr<const EncapSweeper<time>> crse,
42+ virtual void interpolate (shared_ptr<EncapSweeper<time>> fine,
43+ shared_ptr<const EncapSweeper<time>> crse,
4144 bool interp_delta_from_initial,
4245 bool interp_initial)
4346 {
@@ -83,7 +86,9 @@ namespace pfasst
8386 for (size_t m = m0; m < nfine; m++) { fine->evaluate (m); }
8487 }
8588
86- virtual void restrict (shared_ptr<ISweeper<time>> dst, shared_ptr<const ISweeper<time>> src, bool restrict_initial)
89+ virtual void restrict (shared_ptr<ISweeper<time>> dst,
90+ shared_ptr<const ISweeper<time>> src,
91+ bool restrict_initial)
8792 {
8893 shared_ptr<EncapSweeper<time>> crse = dynamic_pointer_cast<EncapSweeper<time>>(dst);
8994 assert (crse);
@@ -93,7 +98,9 @@ namespace pfasst
9398 this ->restrict (crse, fine, restrict_initial);
9499 }
95100
96- virtual void restrict (shared_ptr<EncapSweeper<time>> crse, shared_ptr<const EncapSweeper<time>> fine, bool restrict_initial)
101+ virtual void restrict (shared_ptr<EncapSweeper<time>> crse,
102+ shared_ptr<const EncapSweeper<time>> fine,
103+ bool restrict_initial)
97104 {
98105 auto dnodes = crse->get_nodes ();
99106 auto snodes = fine->get_nodes ();
@@ -115,7 +122,8 @@ namespace pfasst
115122 for (size_t m = m0; m < ncrse; m++) { crse->evaluate (m); }
116123 }
117124
118- virtual void fas (time dt, shared_ptr<ISweeper<time>> dst, shared_ptr<const ISweeper<time>> src)
125+ virtual void fas (time dt, shared_ptr<ISweeper<time>> dst,
126+ shared_ptr<const ISweeper<time>> src)
119127 {
120128 shared_ptr<EncapSweeper<time>> crse = dynamic_pointer_cast<EncapSweeper<time>>(dst);
121129 assert (crse);
@@ -125,7 +133,8 @@ namespace pfasst
125133 this ->fas (dt, crse, fine);
126134 }
127135
128- virtual void fas (time dt, shared_ptr<EncapSweeper<time>> crse, shared_ptr<const EncapSweeper<time>> fine)
136+ virtual void fas (time dt, shared_ptr<EncapSweeper<time>> crse,
137+ shared_ptr<const EncapSweeper<time>> fine)
129138 {
130139 size_t ncrse = crse->get_nodes ().size ();
131140 assert (ncrse > 1 );
@@ -135,7 +144,9 @@ namespace pfasst
135144 auto crse_factory = crse->get_factory ();
136145 auto fine_factory = fine->get_factory ();
137146
138- vector<shared_ptr<Encapsulation<time>>> crse_z2n (ncrse - 1 ), fine_z2n (nfine - 1 ), rstr_z2n (ncrse - 1 );
147+ vector<shared_ptr<Encapsulation<time>>> crse_z2n (ncrse - 1 )
148+ , fine_z2n (nfine - 1 )
149+ , rstr_z2n (ncrse - 1 );
139150 for (size_t m = 0 ; m < ncrse - 1 ; m++) { crse_z2n[m] = crse_factory->create (solution); }
140151 for (size_t m = 0 ; m < ncrse - 1 ; m++) { rstr_z2n[m] = crse_factory->create (solution); }
141152 for (size_t m = 0 ; m < nfine - 1 ; m++) { fine_z2n[m] = fine_factory->create (solution); }
@@ -177,12 +188,14 @@ namespace pfasst
177188 }
178189
179190 // required for interp/restrict helpers
180- virtual void interpolate (shared_ptr<Encapsulation<time>> dst, shared_ptr<const Encapsulation<time>> src)
191+ virtual void interpolate (shared_ptr<Encapsulation<time>> dst,
192+ shared_ptr<const Encapsulation<time>> src)
181193 {
182194 throw NotImplementedYet (" mlsdc/pfasst" );
183195 }
184196
185- virtual void restrict (shared_ptr<Encapsulation<time>> dst, shared_ptr<const Encapsulation<time>> src)
197+ virtual void restrict (shared_ptr<Encapsulation<time>> dst,
198+ shared_ptr<const Encapsulation<time>> src)
186199 {
187200 throw NotImplementedYet (" mlsdc/pfasst" );
188201 }
0 commit comments