From f9a9ca87704c9a1f7554eababa382941779bf896 Mon Sep 17 00:00:00 2001 From: Angelos Mantzaflaris Date: Wed, 19 Jun 2024 09:58:24 +0200 Subject: [PATCH] move function to hpp --- gsElTimeIntegrator.h | 2 +- gsElTimeIntegrator.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gsElTimeIntegrator.h b/gsElTimeIntegrator.h index 852f9ca..9fb6edc 100644 --- a/gsElTimeIntegrator.h +++ b/gsElTimeIntegrator.h @@ -67,7 +67,7 @@ class gsElTimeIntegrator : public gsBaseAssembler const std::vector > & fixedDoFs); /// return the number of free degrees of freedom - virtual int numDofs() const { return stiffAssembler.numDofs(); } + virtual int numDofs() const; /// returns complete solution vector (displacement + possibly pressure) const gsMatrix & solutionVector() const { return solVector; } diff --git a/gsElTimeIntegrator.hpp b/gsElTimeIntegrator.hpp index e7273a3..60b153b 100644 --- a/gsElTimeIntegrator.hpp +++ b/gsElTimeIntegrator.hpp @@ -124,6 +124,9 @@ gsMatrix gsElTimeIntegrator::implicitNonlinear() return solver.solution(); } +template +int gsElTimeIntegrator::numDofs() const { return stiffAssembler.numDofs(); } + template bool gsElTimeIntegrator::assemble(const gsMatrix & solutionVector, const std::vector > & fixedDoFs)