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
6a169e28
Commit
6a169e28
authored
8 years ago
by
PICHON Gregoire
Browse files
Options
Downloads
Plain Diff
Merge default
parents
66e8f85f
e5a47e18
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
spm_read_driver.c
+1
-1
1 addition, 1 deletion
spm_read_driver.c
z_spm_laplacian.c
+2
-2
2 additions, 2 deletions
z_spm_laplacian.c
z_spm_scal.c
+0
-6
0 additions, 6 deletions
z_spm_scal.c
with
3 additions
and
9 deletions
spm_read_driver.c
+
1
−
1
View file @
6a169e28
...
@@ -287,7 +287,7 @@ spmReadDriver( pastix_driver_t driver,
...
@@ -287,7 +287,7 @@ spmReadDriver( pastix_driver_t driver,
pastix_int_t
nnz
;
pastix_int_t
nnz
;
if
(
mpirank
==
0
)
{
if
(
mpirank
==
0
)
{
nnz
=
spm
->
colptr
[
spm
->
gN
]
-
spm
->
colptr
[
0
]
;
nnz
=
spm
->
nnz
;
}
}
MPI_Bcast
(
spm
,
2
*
sizeof
(
int
)
+
3
*
sizeof
(
pastix_int_t
),
MPI_CHAR
,
0
,
comm
);
MPI_Bcast
(
spm
,
2
*
sizeof
(
int
)
+
3
*
sizeof
(
pastix_int_t
),
MPI_CHAR
,
0
,
comm
);
...
...
This diff is collapsed.
Click to expand it.
z_spm_laplacian.c
+
2
−
2
View file @
6a169e28
...
@@ -146,7 +146,7 @@ z_spmLaplacian2D( pastix_spm_t *spm,
...
@@ -146,7 +146,7 @@ z_spmLaplacian2D( pastix_spm_t *spm,
pastix_int_t
i
,
j
,
k
;
pastix_int_t
i
,
j
,
k
;
pastix_int_t
nnz
=
(
2
*
(
dim1
)
-
1
)
*
dim2
+
(
dim2
-
1
)
*
dim1
;
pastix_int_t
nnz
=
(
2
*
(
dim1
)
-
1
)
*
dim2
+
(
dim2
-
1
)
*
dim1
;
spm
->
mtxtype
=
Pastix
Symmetric
;
spm
->
mtxtype
=
Pastix
Hermitian
;
spm
->
flttype
=
PastixComplex64
;
spm
->
flttype
=
PastixComplex64
;
spm
->
fmttype
=
PastixCSC
;
spm
->
fmttype
=
PastixCSC
;
spm
->
gnnz
=
nnz
;
spm
->
gnnz
=
nnz
;
...
@@ -262,7 +262,7 @@ z_spmLaplacian3D( pastix_spm_t *spm,
...
@@ -262,7 +262,7 @@ z_spmLaplacian3D( pastix_spm_t *spm,
pastix_int_t
i
,
j
,
k
,
l
;
pastix_int_t
i
,
j
,
k
,
l
;
pastix_int_t
nnz
=
(
2
*
(
dim1
)
-
1
)
*
dim2
*
dim3
+
(
dim2
-
1
)
*
dim1
*
dim3
+
dim2
*
dim1
*
(
dim3
-
1
);
pastix_int_t
nnz
=
(
2
*
(
dim1
)
-
1
)
*
dim2
*
dim3
+
(
dim2
-
1
)
*
dim1
*
dim3
+
dim2
*
dim1
*
(
dim3
-
1
);
spm
->
mtxtype
=
Pastix
Symmetric
;
spm
->
mtxtype
=
Pastix
Hermitian
;
spm
->
flttype
=
PastixComplex64
;
spm
->
flttype
=
PastixComplex64
;
spm
->
fmttype
=
PastixCSC
;
spm
->
fmttype
=
PastixCSC
;
spm
->
gnnz
=
nnz
;
spm
->
gnnz
=
nnz
;
...
...
This diff is collapsed.
Click to expand it.
z_spm_scal.c
+
0
−
6
View file @
6a169e28
...
@@ -41,15 +41,9 @@ z_spmScal( pastix_spm_t *spm )
...
@@ -41,15 +41,9 @@ z_spmScal( pastix_spm_t *spm )
nnz
=
spm
->
nnz
;
nnz
=
spm
->
nnz
;
values
=
spm
->
values
;
values
=
spm
->
values
;
norm
=
z_spmNorm
(
PastixFrobeniusNorm
,
spm
);
norm
=
z_spmNorm
(
PastixFrobeniusNorm
,
spm
);
printf
(
"NORM IN %.3g
\n
"
,
norm
);
for
(
i
=
0
;
i
<
nnz
;
i
++
){
for
(
i
=
0
;
i
<
nnz
;
i
++
){
values
[
i
]
/=
norm
;
values
[
i
]
/=
norm
;
}
}
norm
=
z_spmNorm
(
PastixFrobeniusNorm
,
spm
);
printf
(
"NORM OUT %.3g
\n
"
,
norm
);
}
}
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