From 6905bc8c7f5a05673f0c72aea76cf33c75ac9bf6 Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Sun, 30 May 2021 18:54:10 +0300 Subject: [PATCH] Fix one more missing template declaration Continuation of the work started in bf9b81c4 (MR !1652) --- src/gromacs/mdlib/coupling.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/gromacs/mdlib/coupling.cpp b/src/gromacs/mdlib/coupling.cpp index 8a9b6d3f5c..d0f06c4848 100644 --- a/src/gromacs/mdlib/coupling.cpp +++ b/src/gromacs/mdlib/coupling.cpp @@ -1031,6 +1031,8 @@ void pressureCouplingCalculateScalingMatrix(FILE* fplog, matrix mu, double* baros_integral) { + // If the support here increases, we need to also add the template declarations + // for new cases below. static_assert(pressureCouplingType == PressureCoupling::Berendsen || pressureCouplingType == PressureCoupling::CRescale, "pressureCouplingCalculateScalingMatrix is only implemented for Berendsen and " @@ -1093,6 +1095,28 @@ void pressureCouplingCalculateScalingMatrix(FILE* fplog, } } +template void pressureCouplingCalculateScalingMatrix(FILE*, + int64_t, + const t_inputrec*, + real, + const tensor, + const matrix, + const matrix, + const matrix, + matrix, + double*); + +template void pressureCouplingCalculateScalingMatrix(FILE*, + int64_t, + const t_inputrec*, + real, + const tensor, + const matrix, + const matrix, + const matrix, + matrix, + double*); + template void pressureCouplingScaleBoxAndCoordinates(const t_inputrec* ir, const matrix mu, -- 2.22.0