Skip to content

Commit cc9efd7

Browse files
committed
Remove nonlinear system parameter test
1 parent 862bcb5 commit cc9efd7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/systems/systems_test.C

-16
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <libmesh/cell_tet4.h>
1414
#include <libmesh/zero_function.h>
1515
#include <libmesh/linear_implicit_system.h>
16-
#include <libmesh/nonlinear_implicit_system.h>
1716
#include <libmesh/transient_system.h>
1817
#include <libmesh/quadrature_gauss.h>
1918
#include <libmesh/node_elem.h>
@@ -1292,7 +1291,6 @@ public:
12921291

12931292
// Set some parameters to the equation system that would cause a failed test
12941293
equation_systems.parameters.set<unsigned int>("linear solver maximum iterations") = 0;
1295-
equation_systems.parameters.set<unsigned int>("nonlinear solver absolute residual tolerance") = 1e8;
12961294

12971295
// Setup Linear Implicit system
12981296
LinearImplicitSystem & li_system =
@@ -1304,29 +1302,15 @@ public:
13041302
li_system.get_linear_solver()->set_solver_type(JACOBI);
13051303
li_system.get_linear_solver()->set_preconditioner_type(IDENTITY_PRECOND);
13061304

1307-
// Setup nonlinear Implicit system
1308-
NonlinearImplicitSystem & nli_system =
1309-
equation_systems.add_system<NonlinearImplicitSystem> ("test");
1310-
nli_system.add_variable ("u", libMesh::FIRST);
1311-
nli_system.add_variable ("v", libMesh::FIRST);
1312-
nli_system.add_variable ("w", libMesh::FIRST);
1313-
nli_system.attach_assemble_function (assemble_matrix_and_rhs);
1314-
13151305
// Set some parameters to the system that work for the solve
13161306
li_system.parameters.set<unsigned int>("linear solver maximum iterations") = 5;
1317-
nli_system.parameters.set<unsigned int>("nonlinear solver absolute residual tolerance") = 1e-10;
13181307

13191308
// See the solve pass, indicating system parameters are used over equation system parameters
13201309
equation_systems.init ();
13211310
li_system.solve();
1322-
nli_system.solve();
13231311

13241312
// Check that the number of iterations from the systems got obeyed
13251313
CPPUNIT_ASSERT_EQUAL(li_system.n_linear_iterations(), 5u);
1326-
1327-
// Check that the solution for the nonlinear system is converged
1328-
Real ref_l1_norm = static_cast<Real>(mesh.n_nodes() * li_system.n_vars());
1329-
LIBMESH_ASSERT_FP_EQUAL(nli_system.solution->l1_norm(), ref_l1_norm, TOLERANCE);
13301314
}
13311315

13321316
void testAssemblyWithDgFemContext()

0 commit comments

Comments
 (0)