From 6b58058bca14e2ee48cb86c88e11e6d516b794c6 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 27 Jun 2025 22:38:48 -0400 Subject: [PATCH] memory is accumulated in doubles not ints --- src/MACHDYN/fix_smd_tlsph_reference_configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MACHDYN/fix_smd_tlsph_reference_configuration.cpp b/src/MACHDYN/fix_smd_tlsph_reference_configuration.cpp index f15af121a2..7e620bca7e 100644 --- a/src/MACHDYN/fix_smd_tlsph_reference_configuration.cpp +++ b/src/MACHDYN/fix_smd_tlsph_reference_configuration.cpp @@ -350,7 +350,7 @@ void FixSMD_TLSPH_ReferenceConfiguration::setup(int /*vflag*/) { double FixSMD_TLSPH_ReferenceConfiguration::memory_usage() { int nmax = atom->nmax; - int bytes = nmax * sizeof(int); + double bytes = (double)nmax * sizeof(int); bytes += (double)nmax * maxpartner * sizeof(tagint); // partner array bytes += (double)nmax * maxpartner * sizeof(float); // wf_list bytes += (double)nmax * maxpartner * sizeof(float); // wfd_list