Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
f390cd46
Commit
f390cd46
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix compile
parent
2c463548
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/GFaceCompound.cpp
+1
-1
1 addition, 1 deletion
Geo/GFaceCompound.cpp
Solver/linearSystemCSR.h
+5
-5
5 additions, 5 deletions
Solver/linearSystemCSR.h
Solver/linearSystemPETSc.h
+5
-5
5 additions, 5 deletions
Solver/linearSystemPETSc.h
with
11 additions
and
11 deletions
Geo/GFaceCompound.cpp
+
1
−
1
View file @
f390cd46
...
@@ -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
)];
...
...
This diff is collapsed.
Click to expand it.
Solver/linearSystemCSR.h
+
5
−
5
View file @
f390cd46
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Solver/linearSystemPETSc.h
+
5
−
5
View file @
f390cd46
...
@@ -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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment