Skip to content

Commit

Permalink
ugly init but working
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Rovinelli authored and tophmatthews committed May 27, 2020
1 parent 7961ede commit 2bac9b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/src/problems/FEProblemBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,8 @@ FEProblemBase::reinitDirac(const Elem * elem, THREAD_ID tid)
_scalar_zero[tid].resize(FORTYTHIRD, 0);
_zero[tid].resize(max_qpts, 0);
_grad_zero[tid].resize(max_qpts, RealGradient(0.));
_grad_phi_zero[tid].resize(max_qpts, {0., 0., 0.});
_grad_test_zero[tid].resize(max_qpts, {0., 0., 0.});
_second_zero[tid].resize(max_qpts, RealTensor(0.));
_vector_zero[tid].resize(max_qpts, RealGradient(0.));
_vector_curl_zero[tid].resize(max_qpts, RealGradient(0.));
Expand Down Expand Up @@ -4642,6 +4644,8 @@ FEProblemBase::createQRules(QuadratureType type, Order order, Order volume_order
_zero[tid].resize(max_qpts, 0);
_ad_zero[tid].resize(max_qpts, 0);
_grad_zero[tid].resize(max_qpts, RealGradient(0.));
_grad_phi_zero[tid].resize(max_qpts, {0., 0., 0.});
_grad_test_zero[tid].resize(max_qpts, {0., 0., 0.});
_ad_grad_zero[tid].resize(max_qpts, ADRealGradient(0));
_second_zero[tid].resize(max_qpts, RealTensor(0.));
_ad_second_zero[tid].resize(max_qpts, ADRealTensorValue(0));
Expand Down

0 comments on commit 2bac9b6

Please sign in to comment.