File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,13 @@ where
191191 }
192192 }
193193
194+ /// Sets the output type
195+ ///
196+ /// See [`OutputType`] for more details.
197+ pub fn set_output ( & mut self , out_type : OutputType ) {
198+ self . out_type = out_type;
199+ }
200+
194201 /// Computes the initial step size.
195202 fn hinit ( & self ) -> T {
196203 let ( rows, cols) = self . y . shape_generic ( ) ;
@@ -538,7 +545,7 @@ where
538545 }
539546 }
540547 } else {
541- self . results . push ( self . x0 , y_next. clone ( ) ) ;
548+ self . results . push ( self . x , y_next. clone ( ) ) ;
542549 }
543550 }
544551
Original file line number Diff line number Diff line change @@ -183,6 +183,13 @@ where
183183 }
184184 }
185185
186+ /// Sets the output type
187+ ///
188+ /// See [`OutputType`] for more details.
189+ pub fn set_output ( & mut self , out_type : OutputType ) {
190+ self . out_type = out_type;
191+ }
192+
186193 /// Computes the initial step size
187194 fn hinit ( & self ) -> T {
188195 let ( rows, cols) = self . y . shape_generic ( ) ;
Original file line number Diff line number Diff line change @@ -22,3 +22,4 @@ pub use dopri5::Dopri5;
2222pub use rk4:: Rk4 ;
2323
2424pub use dop_shared:: System ;
25+ pub use dop_shared:: OutputType ;
You can’t perform that action at this time.
0 commit comments