Example #1
0
    def print_statistics(self, verbose=NORMAL):
        """
        Prints the run-time statistics for the problem.
        """
        Explicit_ODE.print_statistics(self, verbose)  #Calls the base class

        self.log_message('\nSolver options:\n', verbose)
        self.log_message(' Solver                  : LSODAR ', verbose)
        self.log_message(
            ' Absolute tolerances     : {}'.format(self.options["atol"]),
            verbose)
        self.log_message(
            ' Relative tolerances     : {}'.format(self.options["rtol"]),
            verbose)
        if self.rkstarter == 1:
            self.log_message(
                ' Starter                 : {}'.format('classical'), verbose)
        else:
            self.log_message(
                ' Starter                 : Runge-Kutta order {}'.format(
                    self.rkstarter), verbose)
        if self.maxordn < 12 or self.maxords < 5:
            self.log_message(
                ' Maximal order Adams     : {}'.format(self.maxordn), verbose)
            self.log_message(
                ' Maximal order BDF       : {}'.format(self.maxords), verbose)
        if self.maxh > 0.:
            self.log_message(' Maximal stepsize maxh   : {}'.format(self.maxh),
                             verbose)
        self.log_message('', verbose)
Example #2
0
 def print_statistics(self, verbose):
     """
     Should print the statistics.
     """
     Explicit_ODE.print_statistics(self, verbose) #Calls the base class
     
     self.log_message('\nSolver options:\n',                                              verbose)
     self.log_message(' Solver             : RungeKutta34',                               verbose)
     self.log_message(' Solver type        : Adaptive',                                   verbose)
     self.log_message(' Relative tolerance : ' + str(self.options["rtol"]),        verbose)
     self.log_message(' Absolute tolerance : ' + str(self._compact_atol()) + '\n', verbose)
Example #3
0
 def print_statistics(self, verbose=NORMAL):
     """
     Prints the run-time statistics for the problem.
     """
     Explicit_ODE.print_statistics(self, verbose) #Calls the base class
     
     self.log_message('\nSolver options:\n',                                      verbose)
     self.log_message(' Solver                  : Dopri5 ',          verbose)
     self.log_message(' Tolerances (absolute)   : ' + str(self._compact_atol()),  verbose)
     self.log_message(' Tolerances (relative)   : ' + str(self.options["rtol"]),  verbose)
     self.log_message('',                                                         verbose)