Skip to content
Snippets Groups Projects
Commit f390cd46 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent 2c463548
No related branches found
No related tags found
No related merge requests found
...@@ -1461,7 +1461,7 @@ GPoint GFaceCompound::point(double par1, double par2) const ...@@ -1461,7 +1461,7 @@ GPoint GFaceCompound::point(double par1, double par2) const
//curved PN triangle //curved PN triangle
//------------------------- //-------------------------
printf("normals size=%d vertex=%d \n", _normals.size(), lt->tri->getVertex(0)->getNum()); printf("normals size=%d vertex=%d \n", (int)_normals.size(), lt->tri->getVertex(0)->getNum());
const SVector3 n1 = _normals[lt->tri->getVertex(0)]; const SVector3 n1 = _normals[lt->tri->getVertex(0)];
const SVector3 n2 = _normals[lt->tri->getVertex(1)]; const SVector3 n2 = _normals[lt->tri->getVertex(1)];
const SVector3 n3 = _normals[lt->tri->getVertex(2)]; const SVector3 n3 = _normals[lt->tri->getVertex(2)];
......
...@@ -113,14 +113,14 @@ class linearSystemCSR : public linearSystem<scalar> { ...@@ -113,14 +113,14 @@ class linearSystemCSR : public linearSystem<scalar> {
{ {
for(unsigned int i = 0; i < _b->size(); i++) (*_b)[i] = 0.; for(unsigned int i = 0; i < _b->size(); i++) (*_b)[i] = 0.;
} }
virtual double normInfRightHandSide() const{ virtual double normInfRightHandSide() const
{
double nor = 0.; double nor = 0.;
double temp; double temp;
for(int i=0;i<_b->size();i++){ for(unsigned int i = 0; i < _b->size(); i++){
temp = (*_b)[i]; temp = (*_b)[i];
if(temp < 0) temp = -temp; if(temp < 0) temp = -temp;
if(nor < temp) nor = temp; if(nor < temp) nor = temp;
} }
return nor; return nor;
} }
......
...@@ -106,11 +106,11 @@ class linearSystemPETSc : public linearSystem<scalar> { ...@@ -106,11 +106,11 @@ class linearSystemPETSc : public linearSystem<scalar> {
val = s; val = s;
#endif #endif
} }
virtual double normInfRightHandSide() const { virtual double normInfRightHandSide() const
PetscScalar nor; {
PetscReal nor;
_try(VecNorm(_b, NORM_INFINITY, &nor)); _try(VecNorm(_b, NORM_INFINITY, &nor));
return nor; return nor;
} }
virtual void addToMatrix(int row, int col, const scalar &val) virtual void addToMatrix(int row, int col, const scalar &val)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment