Skip to content

Commit

Permalink
Silence one spurious GCC warning in optimized mode.
Browse files Browse the repository at this point in the history
The others are analysis bugs that are better code as written.
  • Loading branch information
jedbrown committed Mar 23, 2011
1 parent 1b4992c commit 5597be7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jacobi/impls/tensor/tensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ static dErr TensorBasisCreate(dJacobi_Tensor *tnsr,dInt rsize,const dReal rcoord
dErr err;

dFunctionBegin;
*basis = NULL;
if (P <= 0) dERROR(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"A TensorBasis must be at least first order, given %d",P);
//if (P > Q) dERROR(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,"Trying to evaluate a basis on a rule with fewer nodes, this will make the mass matrix singular");
if (tnsr->family != dGAUSS_LOBATTO) dERROR(PETSC_COMM_SELF,1,"GaussFamily %s not supported",dGaussFamilies[tnsr->family]);
Expand Down

0 comments on commit 5597be7

Please sign in to comment.