def test_reduced_mesh_load_elliptic_matrix(mesh, load_tempdir): test_logger.log(DEBUG, "*** Elliptic case, matrix, online computation ***") V = EllipticFunctionSpace(mesh) reduced_mesh = ReducedMesh((V, V)) reduced_mesh.load(load_tempdir, "test_reduced_mesh_elliptic_matrix") _test_reduced_mesh_elliptic_matrix(V, reduced_mesh)
def test_reduced_mesh_load_collapsed_vector(mesh, load_tempdir): test_logger.log(DEBUG, "*** Collapsed case, vector, online computation ***") (V, _) = CollapsedFunctionSpaces(mesh) reduced_mesh = ReducedMesh((V, )) reduced_mesh.load(load_tempdir, "test_reduced_mesh_collapsed_vector") _test_reduced_mesh_collapsed_vector(V, reduced_mesh)
def test_reduced_mesh_load_collapsed_matrix(mesh, load_tempdir): test_logger.log(DEBUG, "*** Collapsed case, matrix, online computation ***") (V, U) = CollapsedFunctionSpaces(mesh) reduced_mesh = ReducedMesh((V, U)) reduced_mesh.load(load_tempdir, "test_reduced_mesh_collapsed_matrix") _test_reduced_mesh_collapsed_matrix(V, U, reduced_mesh)
def test_reduced_mesh_load_mixed_vector(mesh, load_tempdir): test_logger.log(DEBUG, "*** Mixed case, vector, online computation ***") V = MixedFunctionSpace(mesh) reduced_mesh = ReducedMesh((V, )) reduced_mesh.load(load_tempdir, "test_reduced_mesh_mixed_vector") _test_reduced_mesh_mixed_vector(V, reduced_mesh)
def test_reduced_mesh_load_mixed_matrix(mesh, load_tempdir): log(PROGRESS, "*** Mixed case, matrix, online computation ***") V = MixedFunctionSpace(mesh) reduced_mesh = ReducedMesh((V, V)) reduced_mesh.load(load_tempdir, "test_reduced_mesh_mixed_matrix") _test_reduced_mesh_mixed_matrix(V, reduced_mesh)
def test_reduced_mesh_load_elliptic_function(mesh, load_tempdir): log(PROGRESS, "*** Elliptic case, function, online computation ***") V = EllipticFunctionSpace(mesh) reduced_mesh = ReducedMesh((V, )) reduced_mesh.load(load_tempdir, "test_reduced_mesh_elliptic_function") _test_reduced_mesh_elliptic_function(V, reduced_mesh)