Skip to content

Commit

Permalink
move function to hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
filiatra committed Jun 19, 2024
1 parent 16f1655 commit f9a9ca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gsElTimeIntegrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class gsElTimeIntegrator : public gsBaseAssembler<T>
const std::vector<gsMatrix<T> > & 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<T> & solutionVector() const { return solVector; }
Expand Down
3 changes: 3 additions & 0 deletions gsElTimeIntegrator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ gsMatrix<T> gsElTimeIntegrator<T>::implicitNonlinear()
return solver.solution();
}

template <class T>
int gsElTimeIntegrator<T>::numDofs() const { return stiffAssembler.numDofs(); }

template <class T>
bool gsElTimeIntegrator<T>::assemble(const gsMatrix<T> & solutionVector,
const std::vector<gsMatrix<T> > & fixedDoFs)
Expand Down

0 comments on commit f9a9ca8

Please sign in to comment.