@@ -472,6 +472,7 @@ public:
472
472
CPPUNIT_TEST ( test3DProjectVectorFEHex20 );
473
473
CPPUNIT_TEST ( test3DProjectVectorFEHex27 );
474
474
#ifdef LIBMESH_HAVE_SOLVER
475
+ CPPUNIT_TEST ( testSetSystemParameterOverEquationSystem );
475
476
CPPUNIT_TEST ( testAssemblyWithDgFemContext );
476
477
#endif
477
478
#endif // LIBMESH_DIM > 2
@@ -1313,20 +1314,17 @@ public:
1313
1314
nli_system .get_linear_solver ()-> set_preconditioner_type (IDENTITY_PRECOND );
1314
1315
1315
1316
// 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 ;
1318
1319
1319
1320
// See the solve pass, indicating system parameters are used over equation system parameters
1320
1321
equation_systems .init ();
1321
1322
li_system .solve ();
1322
1323
nli_system .solve ();
1323
1324
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 );
1330
1328
}
1331
1329
1332
1330
void testAssemblyWithDgFemContext ()
0 commit comments