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
9cac0746
Commit
9cac0746
authored
8 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
update spm structure to handle variable DoF
parent
d69836ef
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.h
+17
-13
17 additions, 13 deletions
spm.h
with
17 additions
and
13 deletions
spm.h
+
17
−
13
View file @
9cac0746
...
...
@@ -21,18 +21,23 @@
* @struct pastix_spm_s - Sparse matrix data structure
*/
struct
pastix_spm_s
{
int
mtxtype
;
/*< Matrix structure: PastixGeneral, PastixSymmetric or PastixHermitian. */
int
flttype
;
/*< avals datatype: PastixPattern, PastixFloat, PastixDouble, PastixComplex32 or PastixComplex64 */
int
fmttype
;
/*< Matrix storage format: PastixCSC, PastixCSR, PastixIJV */
pastix_int_t
gN
;
/*< Global number of vertices in the compressed graph */
pastix_int_t
n
;
/*< Local number of vertices in the compressed graph */
pastix_int_t
gnnz
;
/*< Global number of non zeroes in the compressed graph */
pastix_int_t
nnz
;
/*< Local number of non zeroes in the compressed graph */
pastix_int_t
dof
;
/*< Number of degrees of freedom per unknown */
pastix_int_t
*
colptr
;
/*< List of indirections to rows for each vertex */
pastix_int_t
*
rowptr
;
/*< List of edges for each vertex */
pastix_int_t
*
loc2glob
;
/*< Corresponding numbering from local to global */
void
*
values
;
/*< Values stored in the matrix */
int
mtxtype
;
/*< Matrix structure: PastixGeneral, PastixSymmetric
or PastixHermitian. */
int
flttype
;
/*< avals datatype: PastixPattern, PastixFloat, PastixDouble,
PastixComplex32 or PastixComplex64 */
int
fmttype
;
/*< Matrix storage format: PastixCSC, PastixCSR, PastixIJV */
pastix_int_t
gN
;
/*< Global number of vertices in the compressed graph */
pastix_int_t
n
;
/*< Local number of vertices in the compressed graph */
pastix_int_t
gnnz
;
/*< Global number of non zeroes in the compressed graph */
pastix_int_t
nnz
;
/*< Local number of non zeroes in the compressed graph */
pastix_int_t
dof
;
/*< Number of degrees of freedom per unknown,
if > 0, constant degree of freedom
otherwise, irregular degree of freedom (refer to dofs) */
pastix_int_t
*
dofs
;
/*< Number of degrees of freedom per unknown (NULL, if dof > 0) */
pastix_int_t
*
colptr
;
/*< List of indirections to rows for each vertex */
pastix_int_t
*
rowptr
;
/*< List of edges for each vertex */
pastix_int_t
*
loc2glob
;
/*< Corresponding numbering from local to global */
void
*
values
;
/*< Values stored in the matrix */
};
int
...
...
@@ -56,7 +61,6 @@ csc_save( pastix_int_t n,
int
spmLoad
(
pastix_spm_t
*
spm
,
FILE
*
infile
);
int
spmSave
(
pastix_spm_t
*
spm
,
FILE
*
outfile
);
int
spmGenRHS
(
int
type
,
int
nrhs
,
const
pastix_spm_t
*
spm
,
void
*
x
,
int
ldx
,
void
*
b
,
int
ldb
);
int
spmCheckAxb
(
int
nrhs
,
const
pastix_spm_t
*
spm
,
void
*
x0
,
int
ldx0
,
void
*
b
,
int
ldb
,
const
void
*
x
,
int
ldx
);
...
...
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