From 7b5632ea9f6bde7c7a394690434e0e16ef2e89a0 Mon Sep 17 00:00:00 2001 From: Alban de Vaucorbeil Date: Wed, 21 Aug 2024 17:00:37 +1000 Subject: [PATCH] Fix bug with thermo-mechanical and rigid particles. --- src/solid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solid.cpp b/src/solid.cpp index d7da0338..e432ab24 100644 --- a/src/solid.cpp +++ b/src/solid.cpp @@ -307,7 +307,7 @@ void Solid::grow(int nparticles) wf_np.resize(nnodes); wfd_np.resize(nnodes); - if (mat->cp != 0) { + if (mat->cp != 0 || update->method->temp) { T.resize(nparticles); gamma.resize(nparticles); q.resize(nparticles);