From c866ee8048a65b87b36de2ffae3bc852c202800c Mon Sep 17 00:00:00 2001 From: Oriol Colomes Date: Tue, 5 Oct 2021 17:31:12 +0200 Subject: [PATCH] Updated StokesAutodiff --- .../TransientFEsTests/StokesEquationAutoDiffTests.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/TransientFEsTests/StokesEquationAutoDiffTests.jl b/test/TransientFEsTests/StokesEquationAutoDiffTests.jl index b4d9fa0..a1d0a25 100644 --- a/test/TransientFEsTests/StokesEquationAutoDiffTests.jl +++ b/test/TransientFEsTests/StokesEquationAutoDiffTests.jl @@ -1,4 +1,4 @@ -module StokesEquationTests +module StokesEquationAutoDiffTests using Gridap using ForwardDiff @@ -6,7 +6,7 @@ using LinearAlgebra using Test using GridapODEs.ODETools using GridapODEs.TransientFETools -using Gridap.FESpaces: get_algebraic_operator +using Gridap.FESpaces using Gridap.Arrays: test_array # using GridapODEs.ODETools: ThetaMethodLinear @@ -76,11 +76,11 @@ dy = get_fe_basis(Y) dx = get_trial_fe_basis(X₀) xh = FEFunction(X₀,rand(num_free_dofs(X₀))) -cell_j = get_array(jac(0.5,xh,xh,dx,dy)) -cell_j_t = get_array(jac_t(0.5,xh,xh,dx,dy)) +cell_j = get_array(jac(0.5,(xh,xh),dx,dy)) +cell_j_t = get_array(jac_t(0.5,(xh,xh),dx,dy)) -cell_j_auto = get_array(jacobian(x->res(0.5,x,xh,dy),xh)) -cell_j_t_auto = get_array(jacobian(x->res(0.5,xh,x,dy),xh)) +cell_j_auto = get_array(jacobian(x->res(0.5,(x,xh),dy),xh)) +cell_j_t_auto = get_array(jacobian(x->res(0.5,(xh,x),dy),xh)) test_array(cell_j_auto,cell_j,≈) test_array(cell_j_t_auto,cell_j_t,≈)