Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
f19f2f54
Commit
f19f2f54
authored
Oct 01, 2021
by
Marcus Mohr
Browse files
Updates Trilinos stuff from createMatrix to toMatrix
parent
3f8d1839
Pipeline
#34526
canceled with stages
in 73 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/trilinos/TrilinosSparseMatrix.hpp
View file @
f19f2f54
...
...
@@ -92,7 +92,8 @@ class TrilinosSparseMatrix
{
proxy
->
addValue
(
idx
,
idx
,
0
);
}
hyteg
::
petsc
::
createMatrix
(
op
,
numerator
,
numerator
,
proxy
,
level_
,
All
);
// hyteg::petsc::createMatrix( op, numerator, numerator, proxy, level_, All );
op
.
toMatrix
(
proxy
,
numerator
,
numerator
,
level_
,
All
);
crsMatrix_
->
fillComplete
();
}
...
...
tests/hyteg/trilinos/TrilinosSparseMatrixTest.cpp
View file @
f19f2f54
...
...
@@ -115,7 +115,8 @@ void compareSparseMatrixMatlabOutput()
trilinosMatrix
.
applyDirichletBoundaryConditions
(
numerator
);
trilinosMatrix
.
exportToMatlabFormat
(
"../../output/TrilinosMatlabExport.m"
,
"MyTrilinosMatrix"
);
PETScSparseMatrix
<
OperatorType
,
P2P1TaylorHoodFunction
>
petscMatrix
(
storage
,
level
);
// PETScSparseMatrix< OperatorType, P2P1TaylorHoodFunction > petscMatrix( storage, level );
PETScSparseMatrix
<
OperatorType
>
petscMatrix
(
storage
,
level
);
petscMatrix
.
createMatrixFromOperator
(
op
,
level
,
numerator
);
petscMatrix
.
applyDirichletBC
(
numerator
,
level
);
petscMatrix
.
print
(
"../../output/PetscMatlabExport.m"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment