From: Guido Kanschat Date: Wed, 27 Jun 2001 12:34:30 +0000 (+0000) Subject: memory bug removed X-Git-Tag: v8.0.0~19031 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39fc6fab17b7c066723b624cbcb8567c7c6dd3ab;p=dealii.git memory bug removed git-svn-id: https://svn.dealii.org/trunk@4764 0785d39b-7218-0410-832d-ea1e28bc413d --- 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) ||