Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
spm
Commits
94584843
Commit
94584843
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Fix spm graph driver by fully initialyzing the spm structure
parent
a15f2982
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
spm_read_driver.c
+5
-3
5 additions, 3 deletions
spm_read_driver.c
with
5 additions
and
3 deletions
spm_read_driver.c
+
5
−
3
View file @
94584843
...
@@ -131,10 +131,12 @@ spmReadDriver( pastix_driver_t driver,
...
@@ -131,10 +131,12 @@ spmReadDriver( pastix_driver_t driver,
SCOTCH_graphData
(
&
sgraph
,
NULL
,
&
(
spm
->
n
),
&
(
spm
->
colptr
),
NULL
,
NULL
,
NULL
,
NULL
,
&
(
spm
->
rowptr
),
NULL
);
SCOTCH_graphData
(
&
sgraph
,
NULL
,
&
(
spm
->
n
),
&
(
spm
->
colptr
),
NULL
,
NULL
,
NULL
,
NULL
,
&
(
spm
->
rowptr
),
NULL
);
fclose
(
file
);
fclose
(
file
);
spm
->
mtxtype
=
PastixGeneral
;
spm
->
flttype
=
PastixPattern
;
spm
->
flttype
=
PastixPattern
;
spm
->
gN
=
spm
->
n
;
spm
->
fmttype
=
PastixCSC
;
spm
->
gnnz
=
spm
->
colptr
[
spm
->
n
];
spm
->
nnz
=
spm
->
colptr
[
spm
->
n
]
-
spm
->
colptr
[
0
]
+
1
;
spm
->
nnz
=
spm
->
gnnz
;
spm
->
dof
=
1
;
spmUpdateComputedFields
(
spm
);
}
}
#else
#else
{
{
...
...
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