예제 #1
0
 def test_pseudotime(self):
     self.assert_resnorm(
         solver.pseudotime('dofs',
                           residual=self.residual,
                           lhs0=self.lhs0,
                           constrain=self.cons,
                           inertia=self.inertia,
                           timestep=1).solve(tol=self.tol, maxiter=12))
예제 #2
0
 def test_pseudotime(self):
     self.assert_resnorm(
         solver.pseudotime(self.dofs,
                           residual=self.residual,
                           arguments=self.arguments,
                           constrain=self.cons,
                           inertia=self.inertia,
                           timestep=1).solve(tol=self.tol, maxiter=12))
예제 #3
0
 def test_pseudotime_iter(self):
     _test_recursion_cache(
         self, lambda:
         ((types.frozenarray(lhs), info.resnorm)
          for lhs, info in solver.pseudotime('dofs',
                                             residual=self.residual,
                                             lhs0=self.lhs0,
                                             constrain=self.cons,
                                             inertia=self.inertia,
                                             timestep=1)))
예제 #4
0
 def test_pseudotime_iter(self):
     _test_recursion_cache(
         self, lambda:
         ((self.frozen(lhs), info.resnorm)
          for lhs, info in solver.pseudotime(self.dofs,
                                             residual=self.residual,
                                             arguments=self.arguments,
                                             constrain=self.cons,
                                             inertia=self.inertia,
                                             timestep=1)))
예제 #5
0
 def test_pseudotime(self):
   self.assert_resnorm(solver.pseudotime('dofs', residual=self.residual, lhs0=self.lhs0, constrain=self.cons, inertia=self.inertia, timestep=1).solve(tol=self.tol, maxiter=3))
예제 #6
0
 def test_pseudotime_iter(self):
   _test_recursion_cache(self, lambda: ((types.frozenarray(lhs), info.resnorm) for lhs, info in solver.pseudotime('dofs', residual=self.residual, lhs0=self.lhs0, constrain=self.cons, inertia=self.inertia, timestep=1)))