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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
59770592
Commit
59770592
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
49534e9d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Solver/linearSystemCSR.cpp
+2
-2
2 additions, 2 deletions
Solver/linearSystemCSR.cpp
with
2 additions
and
2 deletions
Solver/linearSystemCSR.cpp
+
2
−
2
View file @
59770592
...
@@ -201,7 +201,7 @@ static int cmpij(INDEX_TYPE ai, INDEX_TYPE aj, INDEX_TYPE bi, INDEX_TYPE bj)
...
@@ -201,7 +201,7 @@ static int cmpij(INDEX_TYPE ai, INDEX_TYPE aj, INDEX_TYPE bi, INDEX_TYPE bj)
}
}
template
<
class
scalar
>
template
<
class
scalar
>
static
void
_sort2_xkws
(
unsigned
long
n
,
double
arr
[],
INDEX_TYPE
ai
[],
INDEX_TYPE
aj
[])
static
void
_sort2_xkws
(
unsigned
long
n
,
scalar
arr
[],
INDEX_TYPE
ai
[],
INDEX_TYPE
aj
[])
{
{
unsigned
long
i
,
ir
=
n
,
j
,
k
,
l
=
1
;
unsigned
long
i
,
ir
=
n
,
j
,
k
,
l
=
1
;
int
*
istack
,
jstack
=
0
;
int
*
istack
,
jstack
=
0
;
...
@@ -310,7 +310,7 @@ void sortColumns_(int NbLines, int nnz, INDEX_TYPE *ptr, INDEX_TYPE *jptr,
...
@@ -310,7 +310,7 @@ void sortColumns_(int NbLines, int nnz, INDEX_TYPE *ptr, INDEX_TYPE *jptr,
if
(
_position
==
0
)
break
;
if
(
_position
==
0
)
break
;
}
}
}
}
_sort2_xkws
<
double
>
(
nnz
,
a
,
ptr
,
ai
);
_sort2_xkws
<
scalar
>
(
nnz
,
a
,
ptr
,
ai
);
jptr
[
0
]
=
0
;
jptr
[
0
]
=
0
;
for
(
int
i
=
1
;
i
<=
NbLines
;
i
++
){
for
(
int
i
=
1
;
i
<=
NbLines
;
i
++
){
jptr
[
i
]
=
jptr
[
i
-
1
]
+
count
[
i
-
1
];
jptr
[
i
]
=
jptr
[
i
-
1
]
+
count
[
i
-
1
];
...
...
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