@@ -565,6 +565,38 @@ impl<E: Environment> ExplicitODE<E> {
565565 pub fn get_env ( & self ) -> & E {
566566 & self . env
567567 }
568+
569+ pub fn get_step_size ( & self ) -> f64 {
570+ self . step_size
571+ }
572+
573+ pub fn get_times ( & self ) -> usize {
574+ self . times
575+ }
576+
577+ pub fn get_method ( & self ) -> ExMethod {
578+ self . method
579+ }
580+
581+ pub fn get_stop_condition ( & self ) -> fn ( & Self ) -> bool {
582+ self . stop_cond
583+ }
584+
585+ pub fn get_has_stopped ( & self ) -> bool {
586+ self . has_stopped
587+ }
588+
589+ pub fn get_init_cond ( & self ) -> & State < f64 > {
590+ & self . init_cond
591+ }
592+
593+ pub fn get_bound_cond1 ( & self ) -> & ( State < f64 > , BoundaryCondition ) {
594+ & self . bound_cond1
595+ }
596+
597+ pub fn get_bound_cond2 ( & self ) -> & ( State < f64 > , BoundaryCondition ) {
598+ & self . bound_cond2
599+ }
568600}
569601
570602impl < E : Environment > ODE < E > for ExplicitODE < E > {
@@ -834,6 +866,42 @@ impl<E: Environment> ImplicitODE<E> {
834866 pub fn get_env ( & self ) -> & E {
835867 & self . env
836868 }
869+
870+ pub fn get_step_size ( & self ) -> f64 {
871+ self . step_size
872+ }
873+
874+ pub fn get_times ( & self ) -> usize {
875+ self . times
876+ }
877+
878+ pub fn get_method ( & self ) -> ImMethod {
879+ self . method
880+ }
881+
882+ pub fn get_stop_condition ( & self ) -> fn ( & Self ) -> bool {
883+ self . stop_cond
884+ }
885+
886+ pub fn get_has_stopped ( & self ) -> bool {
887+ self . has_stopped
888+ }
889+
890+ pub fn get_init_cond ( & self ) -> & State < f64 > {
891+ & self . init_cond
892+ }
893+
894+ pub fn get_bound_cond1 ( & self ) -> & ( State < f64 > , BoundaryCondition ) {
895+ & self . bound_cond1
896+ }
897+
898+ pub fn get_bound_cond2 ( & self ) -> & ( State < f64 > , BoundaryCondition ) {
899+ & self . bound_cond2
900+ }
901+
902+ pub fn get_rtol ( & self ) -> f64 {
903+ self . rtol
904+ }
837905}
838906
839907/// Value of 3f64.sqrt()
0 commit comments