Permalink
Browse files

Merge pull request #12830 from lindsayad/fixup-12738

Eliminate MooseArray leaks and adjust jxw-displacement test
  • Loading branch information...
permcody committed Feb 5, 2019
2 parents 6f88c9e + 0fbe0e0 commit 3cd6e5ac2872fc25aad918fac594636af87ae31b
Showing with 15 additions and 0 deletions.
  1. +13 −0 framework/src/base/Assembly.C
  2. +2 −0 test/tests/kernels/jxw_grad_test_dep_on_displacements/tests
@@ -183,6 +183,18 @@ Assembly::~Assembly()
for (auto & it : _vector_fe_shape_data_face_neighbor)
delete it.second;

for (auto & it : _ad_grad_phi_data)
it.second.release();

for (auto & it : _ad_vector_grad_phi_data)
it.second.release();

for (auto & it : _ad_grad_phi_data_face)
it.second.release();

for (auto & it : _ad_vector_grad_phi_data_face)
it.second.release();

delete _current_side_elem;
delete _current_neighbor_side_elem;

@@ -195,6 +207,7 @@ Assembly::~Assembly()
_ad_JxW_face.release();
_ad_normals.release();
_ad_q_points_face.release();
_curvatures.release();
_ad_curvatures.release();
}

@@ -9,6 +9,7 @@
run_sim = True
petsc_version = '>=3.9'
requirement = "We shall automatically capture the dependence of things like JxW and grad_test on (second order) displacements"
max_parallel = 2 # The finite differencing in `-snes_test_jacobian` is a little finicky. This test failed **only** the distributed mesh sweep with p = 3
[../]
[./jxw_jacobian_2]
type = 'PetscJacobianTester'
@@ -19,5 +20,6 @@
petsc_version = '>=3.9'
cli_args = 'GlobalParams/order=FIRST Mesh/elem_type=QUAD4'
requirement = "We shall automatically capture the dependence of things like JxW and grad_test on (first order) displacements"
max_parallel = 2 # The finite differencing in `-snes_test_jacobian` is a little finicky. The above test failed **only** the distributed mesh sweep with p = 3 so we'll mark this one too
[../]
[]

0 comments on commit 3cd6e5a

Please sign in to comment.