From 39fc6fab17b7c066723b624cbcb8567c7c6dd3ab Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 27 Jun 2001 12:34:30 +0000 Subject: [PATCH] memory bug removed git-svn-id: https://svn.dealii.org/trunk@4764 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/legendre.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/base/source/legendre.cc b/deal.II/base/source/legendre.cc index 81c74a4a41..4fbf97ceb3 100644 --- a/deal.II/base/source/legendre.cc +++ b/deal.II/base/source/legendre.cc @@ -36,13 +36,16 @@ namespace template void -Legendre::compute_coefficients (const unsigned int k) +Legendre::compute_coefficients (unsigned int k) { // first make sure that no other // thread intercepts the operation // of this function coefficients_lock.acquire (); + // The first 2 coefficients are hard-coded + if (k==0) + k=1; // check: does the information // already exist? if ((coefficients.size() < k+1) || -- 2.39.5