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
d87566f3
Commit
d87566f3
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Keep removing PASTIX_FOPEN
parent
264ded35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spm_io.c
+13
-2
13 additions, 2 deletions
spm_io.c
spm_read_driver.c
+5
-1
5 additions, 1 deletion
spm_read_driver.c
with
18 additions
and
3 deletions
spm_io.c
+
13
−
2
View file @
d87566f3
...
...
@@ -470,7 +470,13 @@ spmLoad( pastix_spm_t *spm,
int
local_stream
=
0
;
if
(
infile
==
NULL
)
{
PASTIX_FOPEN
(
infile
,
"matrix.spm"
,
"r"
);
infile
=
fopen
(
"matrix.spm"
,
"r"
);
if
(
infile
==
NULL
)
{
pastix_error_print
(
"spmLoad: Impossible to open the file matrix.spm
\n
"
);
return
PASTIX_ERR_FILE
;
}
local_stream
=
1
;
}
...
...
@@ -808,7 +814,12 @@ spmSave( const pastix_spm_t *spm,
int
local_stream
=
0
;
if
(
outfile
==
NULL
)
{
PASTIX_FOPEN
(
outfile
,
"matrix.spm"
,
"w"
);
outfile
=
fopen
(
"matrix.spm"
,
"w"
);
if
(
outfile
==
NULL
)
{
pastix_error_print
(
"spmSave: Impossible to open the file matrix.spm
\n
"
);
return
PASTIX_ERR_FILE
;
}
local_stream
=
1
;
}
...
...
This diff is collapsed.
Click to expand it.
spm_read_driver.c
+
5
−
1
View file @
d87566f3
...
...
@@ -113,7 +113,11 @@ spmReadDriver( pastix_driver_t driver,
SCOTCH_Graph
sgraph
;
FILE
*
file
;
PASTIX_FOPEN
(
file
,
filename
,
"r"
);
file
=
fopen
(
filename
,
"r"
);
if
(
file
==
NULL
)
{
pastix_error_print
(
"spmReadDriver: impossible to open the file %s
\n
"
,
filename
);
return
PASTIX_ERR_FILE
;
}
/* Check integer compatibility */
if
(
sizeof
(
pastix_int_t
)
!=
sizeof
(
SCOTCH_Num
))
{
...
...
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