@@ -472,6 +472,7 @@ public:
472472 CPPUNIT_TEST ( test3DProjectVectorFEHex20 );
473473 CPPUNIT_TEST ( test3DProjectVectorFEHex27 );
474474#ifdef LIBMESH_HAVE_SOLVER
475+ CPPUNIT_TEST ( testSetSystemParameterOverEquationSystem );
475476 CPPUNIT_TEST ( testAssemblyWithDgFemContext );
476477#endif
477478#endif // LIBMESH_DIM > 2
@@ -1313,20 +1314,17 @@ public:
13131314 nli_system .get_linear_solver ()-> set_preconditioner_type (IDENTITY_PRECOND );
13141315
13151316 // Set some parameters to the system that work for the solve
1316- li_system .parameters .set < unsigned int > ("linear solver maximum iterations" ) = 100 ;
1317- nli_system .parameters .set < unsigned int > ("linear solver maximum iterations" ) = 100 ;
1317+ li_system .parameters .set < unsigned int > ("linear solver maximum iterations" ) = 5 ;
1318+ nli_system .parameters .set < unsigned int > ("linear solver maximum iterations" ) = 5 ;
13181319
13191320 // See the solve pass, indicating system parameters are used over equation system parameters
13201321 equation_systems .init ();
13211322 li_system .solve ();
13221323 nli_system .solve ();
13231324
1324- // We set the solution to be 1 everywhere, so the final l1 norm of the
1325- // solution is the product of the number of variables and number of nodes.
1326- Real ref_l1_norm = static_cast < Real > (mesh .n_nodes () * li_system .n_vars ());
1327-
1328- LIBMESH_ASSERT_FP_EQUAL (li_system .solution -> l1_norm (), ref_l1_norm , TOLERANCE * TOLERANCE );
1329- LIBMESH_ASSERT_FP_EQUAL (nli_system .solution -> l1_norm (), ref_l1_norm , TOLERANCE * TOLERANCE );
1325+ // Check that the number of iterations from the systems got obeyed
1326+ CPPUNIT_ASSERT_EQUAL (li_system .n_linear_iterations (), 5 );
1327+ CPPUNIT_ASSERT_EQUAL (nli_system .n_linear_iterations (), 5 );
13301328 }
13311329
13321330 void testAssemblyWithDgFemContext ()
0 commit comments